Skip to content

Conversation

@rli
Copy link
Contributor

@rli rli commented Apr 22, 2025

With f331fb6,

we include jackson as part of core/toolkit, but not amazonq. in theory amazonq should be pulling jackson classes from core, but there appears to be a hard to reproduce edge case where a customer is hitting the same issue with jackson-kotlin deserialization

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Description

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
  • I have added metrics for my changes (if required)

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

With f331fb6,

we include jackson as part of core/toolkit, but not amazonq. in theory amazonq should be pulling jackson classes from core, but there appears to be a hard to reproduce edge case where a customer is hitting the same issue with jackson-kotlin deserialization
@github-actions
Copy link

github-actions bot commented Apr 22, 2025

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@rli rli marked this pull request as ready for review April 25, 2025 22:34
@rli rli requested a review from a team as a code owner April 25, 2025 22:34
@Will-ShaoHua
Copy link
Contributor

confirmed this will fix perfectly

2025-04-14 15:06:19,564 [22388766]   WARN - software.aws.toolkits.jetbrains.services.amazonq.profile.QEndpoints$QRegionEndpoint - Failed to parse amazon.q.endpoints.json: [{"region":"us-east-1","endpoint":"https://q.us-east-1.amazonaws.com/"},                    {"region":"eu-central-1","endpoint":"https://q.eu-central-1.amazonaws.com/"}]
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `software.aws.toolkits.jetbrains.services.amazonq.profile.QEndpoints$QRegionEndpoint` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 3] (through reference chain: java.util.ArrayList[0])
    at com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:67)
    at com.fasterxml.jackson.databind.DeserializationContext.reportBadDefinition(DeserializationContext.java:1887)
    at com.fasterxml.jackson.databind.DatabindContext.reportBadDefinition(DatabindContext.java:414)

@samgst-amazon samgst-amazon merged commit e86b9bf into main Apr 28, 2025
16 checks passed
@samgst-amazon samgst-amazon deleted the rli/jackson-q-dep branch April 28, 2025 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants