-
Notifications
You must be signed in to change notification settings - Fork 141
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
GSI Queries can fail with NPE when using an overriding DynamoDBMapperConfig #263
Comments
I had a similar problem, adding |
@kjl-dev I tried both ways suggested above but still getting null pointer exception. Can you post your complete config? |
The error is because the table name is not getting overridden while querying. Meanwhile it is already taken care for other requests. So I was able to work around over that issue by registering a custom AWS Request handler.
|
you also need to add |
@CyberDracula had the same problem. Your hint was my solution :) Thank you! |
Querying a Global Secondary Index will fail if using an overriding DynamoDBMapperConfig that doesnt specify a ConversionSchema and TypeConverterFactory.
Expected Behavior
Querying a Global Secondary Index will not fail if using an overriding DynamoDBMapperConfig that doesnt specify a ConversionSchema and TypeConverterFactory (perhaps by using reasonable defaults).
OR
An appropriate exception is thrown indicating an invalid configuration.
Actual Behavior
Querying a Global Secondary Index of a table when using a custom DynamoDBMapperConfig that does not specify a ConversionSchema and TypeConverterFactory fails with a NullPointerException. Searches on the regular table itself execute correctly.
Steps to Reproduce the Problem
Specifications
Additional Information
spring.main.allow-bean-definition-overriding
The text was updated successfully, but these errors were encountered: