Closed rajasvs closed 3 years ago
@rajasvs what version of the SDK you are using specifically - e.g. version 2.15.64
is the latest.
Also, can you check for dependency version mismatches in your environment? If you're using maven you can run mvn dependency:tree
.
Hi, Thank you for the response. Here is the output of the maven command. Please let me know if you require any other information. C:\Users\rajas.jdks\corretto-11.0.9.1-1\bin\java.exe "-Dmaven.multiModuleProjectDirectory=C:\Users\rajas\Raj\Proposals\To Implement\Basic Health E-Record\spring\Application with Lambda-15dec" "-Dmaven.home=C:\Program Files\JetBrains\IntelliJ IDEA 2020.2.4\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA 2020.2.4\plugins\maven\lib\maven3\bin\m2.conf" "-Dmaven.ext.class.path=C:\Program Files\JetBrains\IntelliJ IDEA 2020.2.4\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2020.2.4\lib\idea_rt.jar=57181:C:\Program Files\JetBrains\IntelliJ IDEA 2020.2.4\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2020.2.4\plugins\maven\lib\maven3\boot\plexus-classworlds-2.6.0.jar;C:\Program Files\JetBrains\IntelliJ IDEA 2020.2.4\plugins\maven\lib\maven3\boot\plexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version=2020.3.1 dependency:tree [INFO] Scanning for projects... [INFO] [INFO] ------------------------< com.webapp3:webapp3 >------------------------- [INFO] Building Application with Lambda-15dec 1.0-SNAPSHOT [INFO] --------------------------------[ war ]--------------------------------- [INFO] [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ webapp3 --- [INFO] com.webapp3:webapp3:war:1.0-SNAPSHOT [INFO] +- javax.servlet:javax.servlet-api:jar:4.0.1:provided [INFO] +- com.amazonaws:aws-lambda-java-core:jar:1.2.1:compile [INFO] +- com.amazonaws:aws-lambda-java-events:jar:3.7.0:compile [INFO] | - joda-time:joda-time:jar:2.6:compile [INFO] +- com.amazonaws:aws-lambda-java-log4j2:jar:1.2.0:compile [INFO] +- com.amazonaws:aws-java-sdk-lambda:jar:1.11.929:compile [INFO] | - com.amazonaws:jmespath-java:jar:1.11.926:compile [INFO] +- com.amazonaws:aws-java-sdk-dynamodb:jar:1.11.929:compile [INFO] | - com.amazonaws:aws-java-sdk-s3:jar:1.11.926:compile [INFO] +- com.amazonaws:aws-java-sdk-api-gateway:jar:1.11.929:compile [INFO] +- com.amazonaws:aws-java-sdk-config:jar:1.11.926:compile [INFO] +- com.amazonaws:aws-java-sdk:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-wellarchitected:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-location:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-iotdeviceadvisor:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-iotfleethub:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-iotwireless:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-greengrassv2:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-prometheus:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-auditmanager:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-healthlake:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-sagemakeredgemanager:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-emrcontainers:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-customerprofiles:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-lookoutforvision:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-connectcontactlens:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-amplifybackend:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-ecrpublic:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-appintegrations:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-sagemakerfeaturestoreruntime:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-devopsguru:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-mwaa:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-networkfirewall:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-appregistry:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-gluedatabrew:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-s3outposts:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-timestreamquery:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-timestreamwrite:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-ssoadmin:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-redshiftdataapi:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-appflow:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-identitystore:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-braket:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-ivs:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-honeycode:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-codeartifact:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-macie2:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-iotsitewise:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-synthetics:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-codestarconnections:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-detective:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-kinesisvideosignalingchannels:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-ebs:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-augmentedairuntime:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-outposts:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-codeguruprofiler:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-codegurureviewer:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-frauddetector:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-kendra:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-networkmanager:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-computeoptimizer:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-accessanalyzer:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-schemas:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-imagebuilder:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-elasticinference:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-iotsecuretunneling:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-appconfig:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-wafv2:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-connectparticipant:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-migrationhubconfig:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-dataexchange:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-sesv2:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-marketplacecatalog:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-ssooidc:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-sso:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-savingsplans:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-codestarnotifications:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-workmailmessageflow:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-qldbsession:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-qldb:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-forecastquery:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-forecast:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-lakeformation:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-eventbridge:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-ec2instanceconnect:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-applicationinsights:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-servicequotas:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-personalizeevents:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-personalize:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-personalizeruntime:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-ioteventsdata:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-iotevents:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-iotthingsgraph:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-groundstation:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-mediapackagevod:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-managedblockchain:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-textract:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-worklink:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-backup:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-docdb:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-apigatewayv2:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-apigatewaymanagementapi:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-kafka:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-appmesh:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-licensemanager:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-securityhub:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-fsx:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-mediaconnect:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-kinesisanalyticsv2:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-comprehendmedical:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-globalaccelerator:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-transfer:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-datasync:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-robomaker:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-amplify:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-quicksight:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-rdsdata:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-route53resolver:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-ram:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-s3control:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-pinpointsmsvoice:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-pinpointemail:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-chime:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-signer:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-dlm:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-macie:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-eks:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-mediatailor:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-neptune:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-pi:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-iot1clickprojects:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-iot1clickdevices:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-iotanalytics:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-acmpca:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-secretsmanager:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-fms:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-connect:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-transcribe:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-autoscalingplans:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-workmail:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-servicediscovery:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-cloud9:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-serverlessapplicationrepository:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-alexaforbusiness:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-resourcegroups:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-comprehend:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-translate:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-sagemaker:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-iotjobsdataplane:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-sagemakerruntime:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-kinesisvideo:jar:1.11.926:compile [INFO] | | +- io.netty:netty-codec-http:jar:4.1.53.Final:compile [INFO] | | - io.netty:netty-handler:jar:4.1.53.Final:compile [INFO] | | - io.netty:netty-resolver:jar:4.1.53.Final:compile [INFO] | +- com.amazonaws:aws-java-sdk-appsync:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-guardduty:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-mq:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-mediaconvert:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-mediastore:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-mediastoredata:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-medialive:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-mediapackage:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-costexplorer:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-pricing:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-mobile:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-cloudhsmv2:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-glue:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-migrationhub:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-dax:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-greengrass:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-athena:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-marketplaceentitlement:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-codestar:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-lexmodelbuilding:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-resourcegroupstaggingapi:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-pinpoint:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-xray:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-opsworkscm:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-support:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-simpledb:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-servicecatalog:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-servermigration:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-simpleworkflow:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-storagegateway:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-route53:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-importexport:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-sts:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-sqs:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-rds:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-redshift:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-elasticbeanstalk:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-glacier:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-iam:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-datapipeline:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-elasticloadbalancing:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-elasticloadbalancingv2:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-emr:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-elasticache:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-elastictranscoder:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-ec2:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-sns:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-budgets:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-cloudtrail:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-cloudwatch:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-logs:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-events:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-cognitoidentity:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-cognitosync:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-directconnect:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-cloudformation:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-cloudfront:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-clouddirectory:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-kinesis:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-opsworks:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-ses:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-autoscaling:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-cloudsearch:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-cloudwatchmetrics:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-codedeploy:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-codepipeline:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-kms:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-ecs:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-ecr:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-cloudhsm:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-ssm:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-workspaces:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-machinelearning:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-directory:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-efs:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-codecommit:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-devicefarm:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-elasticsearch:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-waf:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-marketplacecommerceanalytics:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-inspector:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-iot:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-acm:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-gamelift:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-dms:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-marketplacemeteringservice:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-cognitoidp:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-discovery:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-applicationautoscaling:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-snowball:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-rekognition:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-polly:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-lightsail:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-stepfunctions:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-health:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-costandusagereport:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-codebuild:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-appstream:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-shield:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-batch:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-lex:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-mechanicalturkrequester:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-organizations:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-workdocs:jar:1.11.926:compile [INFO] | +- com.amazonaws:aws-java-sdk-models:jar:1.11.926:compile [INFO] | - com.amazonaws:aws-java-sdk-swf-libraries:jar:1.11.22:compile [INFO] +- com.amazonaws:aws-java-sdk-core:jar:1.11.926:compile [INFO] | +- commons-logging:commons-logging:jar:1.1.3:compile [INFO] | +- org.apache.httpcomponents:httpclient:jar:4.5.13:compile [INFO] | | +- org.apache.httpcomponents:httpcore:jar:4.4.13:compile [INFO] | | - commons-codec:commons-codec:jar:1.11:compile [INFO] | +- software.amazon.ion:ion-java:jar:1.0.2:compile [INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.6.7.4:compile [INFO] | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.6.0:compile [INFO] | | - com.fasterxml.jackson.core:jackson-core:jar:2.6.7:compile [INFO] | - com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:2.6.7:compile [INFO] +- software.amazon.awssdk:aws-query-protocol:jar:2.15.61:compile [INFO] | +- software.amazon.awssdk:protocol-core:jar:2.15.61:compile [INFO] | +- software.amazon.awssdk:aws-core:jar:2.15.61:compile [INFO] | | +- software.amazon.awssdk:profiles:jar:2.15.61:compile [INFO] | | - software.amazon.eventstream:eventstream:jar:1.0.1:compile [INFO] | +- software.amazon.awssdk:sdk-core:jar:2.15.61:compile [INFO] | | - org.reactivestreams:reactive-streams:jar:1.0.2:compile [INFO] | +- software.amazon.awssdk:annotations:jar:2.15.61:compile [INFO] | +- software.amazon.awssdk:http-client-spi:jar:2.15.61:compile [INFO] | - software.amazon.awssdk:utils:jar:2.15.61:compile [INFO] +- software.amazon.awssdk:url-connection-client:jar:2.15.61:compile [INFO] +- software.amazon.awssdk:core:pom:2.15.61:compile [INFO] +- software.amazon.awssdk:metric-publishers:pom:2.15.61:compile [INFO] | - software.amazon.awssdk:metrics-spi:jar:2.15.61:compile [INFO] +- com.google.code.gson:gson:jar:2.8.6:compile [INFO] +- org.apache.logging.log4j:log4j-api:jar:2.14.0:compile [INFO] +- org.apache.logging.log4j:log4j-core:jar:2.14.0:compile [INFO] +- org.apache.logging.log4j:log4j-slf4j18-impl:jar:2.14.0:compile [INFO] +- org.slf4j:slf4j-api:jar:2.0.0-alpha1:compile [INFO] +- org.junit.jupiter:junit-jupiter-api:jar:5.7.0:test [INFO] | +- org.apiguardian:apiguardian-api:jar:1.1.0:test [INFO] | +- org.opentest4j:opentest4j:jar:1.2.0:test [INFO] | - org.junit.platform:junit-platform-commons:jar:1.7.0:test [INFO] +- org.junit.jupiter:junit-jupiter-engine:jar:5.7.0:test [INFO] | - org.junit.platform:junit-platform-engine:jar:1.7.0:test [INFO] +- javax:javaee-api:jar:8.0.1:compile [INFO] | - com.sun.mail:javax.mail:jar:1.6.2:compile [INFO] | - javax.activation:activation:jar:1.1:compile [INFO] - software.amazon.awssdk:sns:jar:2.15.61:compile [INFO] +- software.amazon.awssdk:auth:jar:2.15.61:compile [INFO] +- software.amazon.awssdk:regions:jar:2.15.61:compile [INFO] +- software.amazon.awssdk:apache-client:jar:2.15.61:runtime [INFO] - software.amazon.awssdk:netty-nio-client:jar:2.15.61:runtime [INFO] +- io.netty:netty-codec-http2:jar:4.1.53.Final:runtime [INFO] +- io.netty:netty-codec:jar:4.1.53.Final:compile [INFO] +- io.netty:netty-transport:jar:4.1.53.Final:compile [INFO] +- io.netty:netty-common:jar:4.1.53.Final:compile [INFO] +- io.netty:netty-buffer:jar:4.1.53.Final:compile [INFO] +- io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.53.Final:runtime [INFO] | - io.netty:netty-transport-native-unix-common:jar:4.1.53.Final:runtime [INFO] - com.typesafe.netty:netty-reactive-streams-http:jar:2.0.4:runtime [INFO] - com.typesafe.netty:netty-reactive-streams:jar:2.0.4:runtime [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.295 s [INFO] Finished at: 2021-01-14T16:27:57+05:30 [INFO] ------------------------------------------------------------------------
Process finished with exit code 0
RegardsRaj
On Thursday, 14 January, 2021, 7:07:29 am IST, Debora N. Ito <notifications@github.com> wrote:
@rajasvs what version of the SDK you are using specifically - e.g. version 2.15.64 is the latest.
Also, can you check for dependency version mismatches in your environment? If you're using maven you can run mvn dependency:tree.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
The Java SDK 2.x dependencies seem to be ok, they are all in version 2.15.61
.
I see you are also building the Java SDK 1.11.x modules as dependencies, is this expected? It is not an issue, you can use both versions side to side, it's just unusual to use both versions at the same time.
I have a little confusion here. There is a set of packages under com:amazonaws: These packages currently have version 1.11.x Examples; com:amazonaws:aws-java-sdk-lambda com:amazonaws:aws-java-sdk-sns
And, there is another set of packages under software:amazon:awssdk: These packages currently have version 2.15.x Examples: software:amazon:awssdk:lambda software:amazon:awssdk:sns
My question is, which one should i use. And what is the difference between these two sets? I'm trying to develop a web service which tracks and sends notifications to end user. And, I intend to use Lambda, dynamoDB, SNS, API Gateway, etc. Kindly suggest.
One additional question: what is difference between software:amazon:awssdk/aws-sdk and software:amazon:awssdk/sdk-core?
Thanks Raj
Java SDK 2.x is a rewrite of version 1.11.x, and it has many features and improvements like non-blocking IO, automatic pagination and immutability - for more details you can read the 2.x release announcement or the Developer Guide.
For new projects we definitely recommend using version 2.x.
Here's an example of how your pom.xml should look like with lambda
and sns
as dependencies:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>bom</artifactId>
<version>2.15.66</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>lambda</artifactId>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>sns</artifactId>
</dependency>
....
I see you also use some of the aws/aws-lambda-java-libs libraries, so add them as well:
....
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-lambda-java-core</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-lambda-java-events</artifactId>
<version>3.7.0</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-lambda-java-log4j2</artifactId>
<version>1.2.0</version>
</dependency>
....
Please let us know if you still see the NullPointerException after using only the SDK 2.15.x modules.
Hi Debora,
I have made the changes you have suggested and now the NULL pointer exception problem doesn't occur. THANKS for your Help in resolving this. I appreciate your timely responses.
Additional Note: All SNS API calls i used succeeded, but i'm not able to send SMS message to a mobile number in india. I realize that there are limitation or specifications in using SMS service in india. So i tried to use route type as "promotional" and presumed that it uses International Long Distance Operator (ILDO) mode by default rather than local routes. Not sure what i'm missing here.
Please let me know if i have to raise a separate case for this. Thanks.
Regards Raj
Hi Raj, I don't have the knowledge to help out with sending SMS messages to recipients in India, apart from what is described in the SNS Developer Guide - SMS requirements for India.
This is a service specific question, I recommend you open a case with AWS Support or reach out to the developer community in StackOverflow - found this SO question, it might help: https://stackoverflow.com/questions/40840783/sending-sms-notification-for-indian-mobile-numbers-from-aws-sns.
Current Behavior
While trying to publish text message, i'm getting the NULL pointer exception.
Pasting the Logs: java.lang.NullPointerException: java.lang.NullPointerExceptionjava.lang.NullPointerException at software.amazon.awssdk.core.internal.handler.BaseClientHandler.finalizeSdkHttpFullRequest(BaseClientHandler.java:80) at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.doExecute(BaseSyncClientHandler.java:143) at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.lambda$execute$1(BaseSyncClientHandler.java:112) at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.measureApiCallSuccess(BaseSyncClientHandler.java:167) at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.execute(BaseSyncClientHandler.java:94) at software.amazon.awssdk.core.client.handler.SdkSyncClientHandler.execute(SdkSyncClientHandler.java:45) at software.amazon.awssdk.awscore.client.handler.AwsSyncClientHandler.execute(AwsSyncClientHandler.java:55) at software.amazon.awssdk.services.sns.DefaultSnsClient.publish(DefaultSnsClient.java:2130) at com.webapp3.webapp3.Handler.pubTextSMS(Handler.java:340) at com.webapp3.webapp3.Handler.handleRequest(Handler.java:108) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source)
Steps to Reproduce (for bugs)
Pasting the code i used. SnsClient snsClient = SnsClient.builder() .region(software.amazon.awssdk.regions.Region.AP_SOUTH_1) .credentialsProvider(EnvironmentVariableCredentialsProvider.create()) .build();
PublishRequest request = PublishRequest.builder() .message(message) .phoneNumber(phoneNumber) .build();
Observed the same issue even without providing ".credentialsProvider" and also "with US region"
Context
Your Environment