You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Rob Nemzek (JIRA)" <ji...@apache.org> on 2014/06/13 22:13:02 UTC

[jira] [Created] (SMX4-1790) Apache ServiceMix :: Bundles :: aws-java-sdk 1.7.5_1 throwing NoClassDefFoundError: org.apache.http.conn.routing.HttpRoute

Rob Nemzek created SMX4-1790:
--------------------------------

             Summary: Apache ServiceMix :: Bundles :: aws-java-sdk 1.7.5_1 throwing NoClassDefFoundError: org.apache.http.conn.routing.HttpRoute 
                 Key: SMX4-1790
                 URL: https://issues.apache.org/jira/browse/SMX4-1790
             Project: ServiceMix 4
          Issue Type: Bug
          Components: Bundles
    Affects Versions: bundles-2014.05
         Environment: karaf 2.3.1 using: mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aws-java-sdk/1.7.5_1
            Reporter: Rob Nemzek


Not sure this has anything to do with the problem, but for this use-case I am required to connect to AWS using their "Assume Role" access which uses the  AWS Security Token Service

Everything works after installing mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aws-java-sdk/1.7.5_1 I perform a dev:dynamic-import on this same bundle.

Let me know if you have any questions or would like me to try anything.

Thanks.

Stacktrace below:

Error: org.apache.http.conn.routing.HttpRoute not found by org.apache.servicemix.bundles.aws-java-sdk [404]
java.lang.NoClassDefFoundError: org.apache.http.conn.routing.HttpRoute not found by org.apache.servicemix.bundles.aws-java-sdk [404]
        at com.amazonaws.http.conn.$Proxy157.<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:52)
        at com.amazonaws.http.impl.client.SdkHttpClient.<init>(SdkHttpClient.java:29)
        at com.amazonaws.http.HttpClientFactory.createHttpClient(HttpClientFactory.java:98)
        at com.amazonaws.http.AmazonHttpClient.<init>(AmazonHttpClient.java:158)
        at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:119)
        at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:103)
        at com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient.<init>(AWSSecurityTokenServiceClient.java:184)
        at com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient.<init>(AWSSecurityTokenServiceClient.java:165)
        at com.csc.cloud.cp.service.aws.s3.impl.S3ServiceImpl.getAssumeRoleCredentials(S3ServiceImpl.java:350)
        at com.csc.cloud.cp.service.aws.s3.impl.S3ServiceImpl.getAWSCredentials(S3ServiceImpl.java:342)
        at com.csc.cloud.cp.service.aws.s3.impl.S3ServiceImpl.getS3Client(S3ServiceImpl.java:308)
        at com.csc.cloud.cp.service.aws.s3.impl.S3ServiceImpl.listBuckets(S3ServiceImpl.java:196)
        at com.csc.cloud.cp.service.aws.s3.impl.S3ServiceImpl.listBuckets(S3ServiceImpl.java:168)
        at com.csc.cloud.cp.service.aws.s3.impl.commands.ListBucketsCommand.doExecuteImpl(ListBucketsCommand.java:19)
        at com.csc.cloud.cp.service.aws.s3.impl.commands.AbstractCommand.doExecute(AbstractCommand.java:29)
        at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)
        at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
        at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)
        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
        at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
        at org.apache.karaf.shell.console.jline.Console.run(Console.java:174)
        at java.lang.Thread.run(Thread.java:744)
        at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4.doRun(ShellFactoryImpl.java:144)
        at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4$1.run(ShellFactoryImpl.java:135)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:356)
        at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4.run(ShellFactoryImpl.java:133) 



--
This message was sent by Atlassian JIRA
(v6.2#6252)