java.lang.NoSuchMethodError: com.amazonaws.transform.JsonErrorUnmarshaller: method (Ljava/lang/Class;)V not found

Problem

An exception or error caused a run to abort: com.amazonaws.transform.JsonErrorUnmarshaller

java.lang.NoSuchMethodError: com.amazonaws.transform.JsonErrorUnmarshaller: method <init>(Ljava/lang/Class;)V not found

Solution

AWS had some strangely maintained libraries for lambda

"com.amazonaws" % "aws-lambda-java-core" % AWSLambdaLibsVersion,
"com.amazonaws" % "aws-lambda-java-events" % AWSLambdaLibsVersion,
"1.1.0" // https://github.com/aws/aws-lambda-java-libs

The error was fixed by replacing above with:

"com.amazonaws" % "aws-java-sdk-lambda" % "1.11.109",

 

About Neil Rubens

see http://ActiveIntelligence.org
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


*