-
Notifications
You must be signed in to change notification settings - Fork 201
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
Trouble deleting a dynamodb item #9
Comments
Bah, sorry to waste your time. This was a local environment issue. |
If you switched from JDK 1.7 to 1.6 and the issue "went away" I think we should probably leave the issue open. I think there's a few places in the code where we're not specific enough / search exhaustively enough through the available methods to choose the correct one to invoke on the AWS SDK Javabean. So for example, I believe maybe in a recent upgrade of the AWS SDK, they added another setKey() method that takes Map.Entry's in addition to simply Maps. http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/dynamodbv2/model/GetItemRequest.html The ordering of methods returned from a call to Class.getDeclaredMethods() is different on different JDKs. On one particular JDK the first setKey method returned works, on another it doesn't. I've seen this once before somewhere else in the code, so I think this might be a similar bug. If you switched JDKs and it worked I'm pretty sure that's what's going on. |
I'm going to attempt to reproduce this (no luck so far). I am using JDK 1.7. I was doing a lot of refactoring in a long-running repl. After restarting the repl, things worked just fine. I am assuming that I had fudged something up that way. I'll update here if I can make this happen again. Thanks! |
I was able to reproduce for a short period. Another function began throwing this same exception. I ran |
I'm pretty sure its a bug, where were dependent on the ordering of methods
|
Naw, thank you, sir. On Thu, Jul 25, 2013 at 11:34 AM, Michael Cohen notifications@github.comwrote:
|
not pretty but.... |
Thank you so much for fixing this. Works like a champ over here. |
Hello!
I'm having some issues when deleting a DynamoDB item using
amazonica.aws.dynamodbv2
.An example:
This fails with a
java.lang.IllegalArgumentException: null
exception.Any ideas here? I am wracking my brain trying to understand what I am doing wrong. Thanks!
The text was updated successfully, but these errors were encountered: