Question
Eclatprime Digital Private Limited
AU
Last activity: 22 Jun 2016 10:31 EDT
Unable to Connect to Amazon S3 server.ERROR: java.lang.NoSuchMethodError: org.apache.http.conn.ssl.SSLConnectionSocketFactory.
Hi,
As part of our project we have a requirement of placing our case attachments in the Amazon S3 server. With proper credentials and with below java code for creating the S3 client also, we are facing an error when we try to store a file in Amazon S3 server.
AmazonS3 s3Client=new AmazonS3Client(new BasicAWSCredentials(String accessKey, String secretKey));
ERROR is :
Caused by: java.lang.NoSuchMethodError: org.apache.http.conn.ssl.SSLConnectionSocketFactory.<init>(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V
at com.amazonaws.http.conn.ssl.SdkTLSSocketFactory.<init>(SdkTLSSocketFactory.java:56)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.getPreferredSocketFactory(ApacheConnectionManagerFactory.java:87)
Hi,
As part of our project we have a requirement of placing our case attachments in the Amazon S3 server. With proper credentials and with below java code for creating the S3 client also, we are facing an error when we try to store a file in Amazon S3 server.
AmazonS3 s3Client=new AmazonS3Client(new BasicAWSCredentials(String accessKey, String secretKey));
ERROR is :
Caused by: java.lang.NoSuchMethodError: org.apache.http.conn.ssl.SSLConnectionSocketFactory.<init>(Ljavax/net/ssl/SSLContext;Ljavax/net/ssl/HostnameVerifier;)V
at com.amazonaws.http.conn.ssl.SdkTLSSocketFactory.<init>(SdkTLSSocketFactory.java:56)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.getPreferredSocketFactory(ApacheConnectionManagerFactory.java:87)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.create(ApacheConnectionManagerFactory.java:65)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.create(ApacheConnectionManagerFactory.java:58)
at com.amazonaws.http.apache.client.impl.ApacheHttpClientFactory.create(ApacheHttpClientFactory.java:50)
at com.amazonaws.http.apache.client.impl.ApacheHttpClientFactory.create(ApacheHttpClientFactory.java:38)
at com.amazonaws.http.AmazonHttpClient.<init>(AmazonHttpClient.java:213)
at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:145)
at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:393)
at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:373)
at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:355)
at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:327)
at com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:309)
we are Using :
Pega Cloud 2.1 and Version is :7.2
Amazon Java SDK imported jar file version :1.11.7
Thanks In Advance.