Claus Ibsen created SMX4-1751:
---------------------------------
Summary: aws-sdk 1.7.11 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
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)