Skip to content
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

Upgrade to com.amazonaws:aws-lambda-java-events:3.7.0 breaks compile #48

Open
akutschera opened this issue Mar 25, 2021 · 3 comments
Open

Comments

@akutschera
Copy link

I recently tried to run a Java Lambda that consumes a DynamodbEvent on localstack. My lambda was never called because of

2021-03-25T17:46:47:INFO:localstack.services.awslambda.lambda_api: Error executing Lambda function 
arn:aws:lambda:us-east-1:000000000000:function:localstack-issue: Lambda process returned error status code: 1. Result: . Output:
Exception in thread "main" java.lang.NoSuchMethodError: 'void com.amazonaws.services.lambda.runtime.events.DynamodbEvent$DynamodbStreamRecord.setEventName(com.amazonaws.services.dynamodbv2.model.OperationType)'
     at cloud.localstack.lambda.DDBEventParser.parse(DDBEventParser.java:24)
     at cloud.localstack.LambdaExecutor.main(LambdaExecutor.java:84)

This was probably because my lambda was compiling against com.amazonaws:aws-lambda-java-events:3.7.0 and this project is running with version 2.2.7
This could also be the cause of localstack/localstack#1960
Is there way to make localstack work with lambdas that use aws-lambda-java-events:3.7.0 ?

@ryanwilliamquinn
Copy link

Are there any updates or workarounds for this?

@productivityindustries
Copy link

I'd also like to know if there's any update/workaround on this issue. Thanks

@lakkeger
Copy link

Hi! We just wanted to follow up to see whether your issue has been resolved. Were you able to get it working with the latest version of LocalStack? We would appreciate your feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants