Cannot invoke the close
method on DynamoDBLocal client (aws-sdk-java-v2)
#3633
Labels
close
method on DynamoDBLocal client (aws-sdk-java-v2)
#3633
Describe the bug
We are using
com.amazonaws:DynamoDBLocal:1.16.0
.We have the IllegalArgumentException when trying to invoke method
close
on DynamoDBLocal client (instance ofcom.amazonaws.services.dynamodbv2.local.shared.access.LocalDBClient
).Expected Behavior
The client should be closed, the test should be marked as passed.the
Current Behavior
Reproduction Steps
Dependencies
MyTestClass:
Possible Solution
In
com.amazonaws.services.dynamodbv2.local.embedded.DDBExceptionMappingInvocationHandler#invoke
we can see some conditional logic:Here we can see that the client choice for method invocation depends on what class the method belongs to. And the default case is to invoke method on this.impl (instance of
LocalDBClient
and obviously has notclose
method).Additional Information/Context
No response
AWS Java SDK version used
2.18.38
JDK version used
Operating System and version
Windows 10
The text was updated successfully, but these errors were encountered: