Skip to content

NoSuchMethodError when using together with latest AWS SDK (1.11.461) #64

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

Closed
anjo-swe opened this issue Dec 4, 2018 · 3 comments
Closed

Comments

@anjo-swe
Copy link

anjo-swe commented Dec 4, 2018

Versions:

  • aws-lambda-java-events: 2.2.4
  • aws-lambda-java-core: 1.2.0

Code:

AWSKMSClientBuilder.defaultClient();

Error:

"errorMessage": "com.amazonaws.client.AwsSyncClientParams.getAdvancedConfig()Lcom/amazonaws/client/builder/AdvancedConfig;",
"errorType": "java.lang.NoSuchMethodError",
"stackTrace": [
  "com.amazonaws.services.kms.AWSKMSClient.<init>(AWSKMSClient.java:454)",
  "com.amazonaws.services.kms.AWSKMSClient.<init>(AWSKMSClient.java:438)",
  "com.amazonaws.services.kms.AWSKMSClientBuilder.build(AWSKMSClientBuilder.java:61)",
  "com.amazonaws.services.kms.AWSKMSClientBuilder.build(AWSKMSClientBuilder.java:27)",
  "com.amazonaws.client.builder.AwsSyncClientBuilder.build(AwsSyncClientBuilder.java:46)",
  "com.amazonaws.services.kms.AWSKMSClientBuilder.defaultClient(AWSKMSClientBuilder.java:45)",
  ...
]

Note: Current workaround is to stay on 1.11.163 for AWS SDK

@camhart
Copy link

camhart commented Jun 11, 2019

1.11.288 is the latest version I can find. This is quite outdated though... anyone have a more recent one?

@mergentkm
Copy link

1.11.288 is the latest version I can find. This is quite outdated though... anyone have a more recent one?

Were you able to figure this out? I am facing the same issue

@carlzogh
Copy link
Contributor

Hey all - aws-lambda-java-events version 3.0.0 was just released with support for all events (including S3) without the inclusion of SDK v1 dependencies.
This should allow you to use any version of the AWS SDK without running into this error as the events library no longer depends on the v1 SDK.

I have also tested @anjo-swe's use case with the latest available version of the KMS v1 SDK 1.11.784 and validated that it now works.

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