localstack-java-utils icon indicating copy to clipboard operation
localstack-java-utils copied to clipboard

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

Open akutschera opened this issue 4 years ago • 3 comments
trafficstars

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 https://github.com/localstack/localstack/issues/1960 Is there way to make localstack work with lambdas that use aws-lambda-java-events:3.7.0 ?

akutschera avatar Mar 25 '21 19:03 akutschera

Are there any updates or workarounds for this?

ryanwilliamquinn avatar Jun 01 '22 20:06 ryanwilliamquinn

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

productivityindustries avatar Mar 09 '23 17:03 productivityindustries

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!

lakkeger avatar Nov 14 '23 07:11 lakkeger