[
https://issues.apache.org/jira/browse/SMX4-1751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14015607#comment-14015607
]
Chris Geer commented on SMX4-1751:
----------------------------------
JB, I'm seeing a similar issue that is also fixed by adding a dynamic import.
Not sure if your fix here will handle it.
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
com.amazonaws.http.conn.$Proxy63
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)[:1.7.0_51]
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[:1.7.0_51]
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.7.0_51]
at
java.lang.reflect.Constructor.newInstance(Constructor.java:526)[:1.7.0_51]
at java.lang.reflect.Proxy.newInstance(Proxy.java:748)[:1.7.0_51]
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:739)[:1.7.0_51]
at
com.amazonaws.http.conn.ClientConnectionManagerFactory.wrap(ClientConnectionManagerFactory.java:42)
at
com.amazonaws.http.impl.client.SdkHttpClient.<init>(SdkHttpClient.java:29)
at
com.amazonaws.http.HttpClientFactory.createHttpClient(HttpClientFactory.java:92)
at com.amazonaws.http.AmazonHttpClient.<init>(AmazonHttpClient.java:153)
at
com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:106)
at
com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:90)
at
com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:332)
at
com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:314)
> aws-sdk 1.7.1_1 bundle is flawed
> ---------------------------------
>
> Key: SMX4-1751
> URL: https://issues.apache.org/jira/browse/SMX4-1751
> Project: ServiceMix 4
> Issue Type: Bug
> Components: Bundles
> Reporter: Claus Ibsen
> Assignee: Jean-Baptiste Onofré
> Fix For: bundles-2014.05
>
>
> These are the http imports in this bundle
> {code}
> org.apache.http;version="[4,5)",
> org.apache.http.auth;version="[4,5)",
> org.apache.http.client;version="[4,5)",
> org.apache.http.client.methods;version="[4,5)",
> org.apache.http.client.utils;version="[4,5)",
> org.apache.http.conn;version="[4,5)",
> org.apache.http.conn.scheme;version="[4,5)",
> org.apache.http.conn.ssl;version="[4,5)",
> org.apache.http.entity;version="[4,5)",
> org.apache.http.impl.auth;version="[4,5)",
> org.apache.http.impl.client;version="[4,5)",
> org.apache.http.impl.conn;version="[4,5)",
> org.apache.http.message;version="[4,5)",
> org.apache.http.params;version="[4,5)",
> org.apache.http.protocol;version="[4,5)",
> {code}
> But there is a package missing, so you get this error when using it
> {code}
> ERROR: Bundle example-aws [88] EventDispatcher: Error during dispatch.
> (java.lang.NoClassDefFoundError: org.apache.http.conn.routing.HttpRoute not
> found by org.apache.servicemix.bundles.aws-java-sdk [86])
> java.lang.NoClassDefFoundError: org.apache.http.conn.routing.HttpRoute not
> found by org.apache.servicemix.bundles.aws-java-sdk [86]
> at com.amazonaws.http.conn.$Proxy37.<clinit>(Unknown Source)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> at java.lang.reflect.Proxy.newInstance(Proxy.java:748)
> at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:739)
> at
> com.amazonaws.http.conn.ClientConnectionManagerFactory.wrap(ClientConnectionManagerFactory.java:42)
> ...
> {code}
> So it looks like this import needs to be added to bundle
> {code}
> org.apache.http.conn.routing
> {code}
> To bundle
> {code}
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aws-java-sdk/1.7.1_1
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)