aws java sdk for ssm gives java lang NoSuchFieldError SIGNING REGION

0 votes

Following code gives NoSuchFieldError when used in Lambda. The same works in a simple java program. Appreciate any help

AWSSimpleSystemsManagementAsync client = AWSSimpleSystemsManagementAsyncClientBuilder.defaultClient(); 

PutParameterRequest putRequest = new PutParameterRequest(); 

putRequest.setName("testKey");

putRequest.setValue("testValue");

client.putParameter(putRequest);

Digging into the source code shows error at AWSSimpleSystemsManagementClient.java -> request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());

Also tried with AWSSimpleSystemsManagementClientBuilder.standard(); AWSSimpleSystemsManagementClientBuilder.defaultClient();

WSSimpleSystemsManagementClientBuilder.standard().withRegion("us-east-1").build(); returning the same error

Aug 6, 2018 in AWS by bug_seeker
• 15,510 points
7,121 views

1 answer to this question.

0 votes

You may start with Checking that you have don't have a mistmach of aws versions. you might be having the same issue I had, upgrading ssm aws version to 1.11.301 while other components had the 1.11.271 aws core version, causing the same exception. You should make sure versions are aligned.
I know this is not much of a help but all you can do is this.
Give it a try and do let me know whether it worked or not.

answered Aug 6, 2018 by Priyaj
• 58,020 points
Thank you. Fixed my problem.

Related Questions In AWS

0 votes
1 answer

AWS Cloudtrail API for Go SDK showing an error mesage.

You  must add S3 Policy in your ...READ MORE

answered Jun 27, 2018 in AWS by Flying geek
• 3,280 points
1,299 views
0 votes
1 answer

How do I use AWS sdk definitions for TypeScript?

Hey, slight modification with what you have ...READ MORE

answered Dec 3, 2018 in AWS by Archana
• 5,640 points
1,870 views
0 votes
2 answers

Launching an EC2 Instance using AWS SDK Java

package com.ec2application.ec2application; import com.amazonaws.auth.AWSCredentials; import com.amazonaws.auth.AWSStaticCredentialsProvider; import com.amazonaws.auth.BasicAWSCredentials; import com.amazonaws.regions.Regions; import com.amazonaws.services.ec2.AmazonEC2; import ...READ MORE

answered Jan 22, 2019 in AWS by Priyaj
• 58,020 points
6,878 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,024 views
+2 votes
1 answer
+3 votes
3 answers
+1 vote
1 answer

AWS billing information using AWS java sdk

There are no APIs to get AWS ...READ MORE

answered Jul 26, 2018 in AWS by Priyaj
• 58,020 points
796 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP