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
• 14,960 points
465 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 56,100 points

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,130 points
91 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,280 points
198 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 in AWS by Priyaj
• 56,100 points
191 views
+13 votes
2 answers
0 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
• 56,100 points
72 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.