-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to unmarshall exception response with the unmarshallers provided #2795
Comments
Thank you for reaching out @alibk0rd. We'll investigate the root cause of the unmarshalling error and better define the expectation of using JDK 17 with SDK v1. We'll update the README and other related docs with the results of the investigation. |
Ran into this today. JDK 17.03 I turned on log level debug and the root cause seems to be
I might be wrong, but what I read according to the link below, is that this issue is slated to be fixed in Jackson Databind 2.13.4/2.14.0. I tried downgrading a few dependencies as a workaround and no luck. I understand there are a few Of note, this only happens to me when I set the
Update for anyone else who is running into this for Spring Integration edit: Got a few private requests for sharing an example. This is just a starter example to get you going. https://gist.github.com/hsteidel/16446c7df65abeb95e44fd38e4f4dd62 |
Hello everyone, after some deliberation we decided to clarify the scope of JDK support for the Java SDK v1. We added a section to the README: Essentially, the Java SDK v1 will support Java versions from 7 to 16. If you are not able to migrate to Java SDK v2, the README section provides some workarounds based on the error you're experiencing. Please let us know of any error messages that are not on that list, we'll then provide a workaround too. |
It looks like this issue has not been active for more than five days. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please add a comment to prevent automatic closure, or if the issue is already closed please feel free to reopen it. |
This fixes a crash on recent JVMs due to aws/aws-sdk-java#2795
Describe the bug
After upgrading to Java 17, Amazon Java (DynamoDB) SDK fails to unmarshall some errors:
This is masking the real issue/error by failing to unmarshall the details.
Expected Behavior
To have the real/underlying error details in the logs
Current Behavior
Fails to unmarshall the error details, masking the real underlying issue or error
Reproduction Steps
In at least one case the underlying error that the SDK fails to unmarshall is:
The underlying issue is reproduced by trying to recreate an existing DynamoDB table, but the end result is instead an exception of type
AmazonServiceException
with the error message:Masking the root cause.
Possible Solution
The upgrade to SDK v2 as suggested elsewhere is not a viable solution for us as AWS SDK v2 is not supported by Spring AWS framework yet.
Also, DynamoDB SDK v2 is yet to have feature parity with v1 (specifically
DynamoDBMapper
).Additional Information/Context
No response
AWS Java SDK version used
1.12.243
JDK version used
17.0.3
Operating System and version
Linux (Arch) Kernel: 5.18.7-arch1-1
The text was updated successfully, but these errors were encountered: