Closed jennings1716 closed 4 years ago
Hi @jennings1716, NoClassDefFound Errors usually indicate conflicting versions of the same dependency in your environment. Can you run mvn dependency:tree
and post the relevant output?
Closing due to no response. Feel free to reopen if you are still experiencing this.
I updated the same version for aws-java-sdk-core and aws-java-sdk-secretsmanager. things got resolved.
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-core</artifactId>
<version>1.12.715</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-secretsmanager</artifactId>
<version>1.12.715</version>
</dependency>
I receive the error when I try to instantiate AWSSNSClient
AmazonSNSClient snsClient = new AmazonSNSClient(credentials); snsClient.setRegion(Region.getRegion(Regions.--)); ObjectMapper Obj = new ObjectMapper(); PublishRequest publishRequest = new PublishRequest(); publishRequest.setTargetArn("arn:aws:sns:-----"); publishRequest.setMessage(transactionId); PublishResult publishResponse = snsClient.publish(publishRequest);