Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

AEM-6.4 AWS pom dependency version

Vijaya_Immadise
Level 4
Level 4

Hi ,

We are planning to migrate to AEM 6.4

Currently we are using  following aws pom dependency

<!-- https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-osgi -->

<dependency>

<groupId>com.amazonaws</groupId>

<artifactId>aws-java-sdk-osgi</artifactId>

<version>1.10.76</version>

<scope>provided</scope>

</dependency>

But the same version throwing run time exception in AEm 6.4

Could you please let me know, which POM version should be used in AEM 6.4, to resolve the issue.

Thank you .

Best Regards,

Vijaya

2 Replies
Vijaya_Immadise
Level 4
Level 4

Hi Arun.

Tried but no luck.

Currently using,

<!-- https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-osgi -->

<dependency>

<groupId>com.amazonaws</groupId>

<artifactId>aws-java-sdk-osgi</artifactId>

<version>1.10.76</version>

<scope>provided</scope>

</dependency>

and uber.jar is as follows

<dependency>

<groupId>com.adobe.aem</groupId>

<artifactId>uber-jar</artifactId>

<version>6.4.0</version>

<classifier>apis</classifier>

<scope>provided</scope>

</dependency>

After that,  I am getting the following run time exception

java.lang.IllegalStateException: Socket not created by this factory

at org.apache.http.util.Asserts.check(Asserts.java:34) [org.apache.httpcomponents.httpcore:4.4.8]

at org.apache.http.conn.ssl.SSLSocketFactory.isSecure(SSLSocketFactory.java:435) [org.apache.httpcomponents.httpclient:4.5.4]

at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:186) [org.apache.httpcomponents.httpclient:4.5.4]

at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326) [org.apache.httpcomponents.httpclient:4.5.4]

at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610) [org.apache.httpcomponents.httpclient:4.5.4]

at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445) [org.apache.httpcomponents.httpclient:4.5.4]

at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835) [org.apache.httpcomponents.httpclient:4.5.4]

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) [org.apache.httpcomponents.httpclient:4.5.4]

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) [org.apache.httpcomponents.httpclient:4.5.4]

at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:837) [com.amazonaws.aws-java-sdk-osgi:1.10.76]

at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:607) [com.amazonaws.aws-java-sdk-osgi:1.10.76]

at com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:376) [com.amazonaws.aws-java-sdk-osgi:1.10.76]

at com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:338) [com.amazonaws.aws-java-sdk-osgi:1.10.76]

at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:287) [com.amazonaws.aws-java-sdk-osgi:1.10.76]

at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3826) [com.amazonaws.aws-java-sdk-osgi:1.10.76]

at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:1143) [com.amazonaws.aws-java-sdk-osgi:1.10.76]

Requesting to help in resolving this issue.