-
Notifications
You must be signed in to change notification settings - Fork 239
Cannot run lambda function after upgrading aws-lambda-java-events to version 1.1.0 #2
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
Comments
Thanks for posting the example, I was able to reproduce the issue quickly. Interestingly, when I build the same project with the same dependencies using maven, I can't reproduce the error. |
I had a similar problem with 1.1.0 and had to downgrade to 1.0.0:
|
+1 |
Not sure if downgrading to 1.0.0 helped me, but for future searchers, adding this (from the sample project above) helped me:
I also downgraded to 1.0.0, but doing that alone did not help. |
I encountered the same problems as mentioned above but when I bundle the resources as a zip (as mentioned below) it worked for me on v1.1.0. http://docs.aws.amazon.com/lambda/latest/dg/create-deployment-pkg-zip-java.html |
create zip.xml in your src/assembly/zip.xml.
In the pom file.
And then you good to go , it works for me. :) |
Getting this error on v1.1.0. Will this be fixed? |
Apparently, the maven-shade plugin was not running for goal:package. This solution solved for me: https://stackoverflow.com/questions/42208526/maven-shade-plugin-is-not-called-automatically-for-goal-package |
Glad you found your problem. Also, there a new version with more events that I would suggest you use. |
When building against aws-lambda-java-events 1.0.0, my lambda function runs correctly. However, after changing the dependency to 1.1.0, the lambda function fails with a NoClassDefFoundError
I've created a minimal working example that reproduces this problem:
https://github.com/chunyang/lambda-test
The handler
Handler::recordHandler
runs correctly in lambda-test-1.0.0.jar and does not run correctly in lambda-test-1.1.0.jarThe text was updated successfully, but these errors were encountered: