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/17 18:03:02 UTC

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

    [ https://issues.apache.org/jira/browse/SMX4-1790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14033949#comment-14033949 ] 

Rob Nemzek commented on SMX4-1790:
----------------------------------

I pulled mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aws-java-sdk/1.7.12_1

Still getting a NoClassDef but its a different class (joda class)

java.lang.NoClassDefFoundError: org/joda/time/format/DateTimeFormat
        at com.amazonaws.auth.AWS4Signer.<clinit>(AWS4Signer.java:44)
        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.Class.newInstance(Class.java:374)
        at com.amazonaws.auth.SignerFactory.createSigner(SignerFactory.java:119)
        at com.amazonaws.auth.SignerFactory.lookupAndCreateSigner(SignerFactory.java:105)
        at com.amazonaws.auth.SignerFactory.getSigner(SignerFactory.java:78)
        at com.amazonaws.AmazonWebServiceClient.computeSignerByServiceRegion(AmazonWebServiceClient.java:307)
        at com.amazonaws.AmazonWebServiceClient.computeSignerByURI(AmazonWebServiceClient.java:280)
        at com.amazonaws.AmazonWebServiceClient.setEndpoint(AmazonWebServiceClient.java:160)
        at com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient.init(AWSSecurityTokenServiceClient.java:259)
        at com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient.<init>(AWSSecurityTokenServiceClient.java:184)
        at com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient.<init>(AWSSecurityTokenServiceClient.java:163)
        at com.csc.cloud.cp.service.aws.s3.impl.S3ServiceImpl.getAssumeRoleCredentials(S3ServiceImpl.java:324)
        at com.csc.cloud.cp.service.aws.s3.impl.S3ServiceImpl.getAWSCredentials(S3ServiceImpl.java:316)
        at com.csc.cloud.cp.service.aws.s3.impl.S3ServiceImpl.getS3Client(S3ServiceImpl.java:282)
        at com.csc.cloud.cp.service.aws.s3.impl.S3ServiceImpl.listBuckets(S3ServiceImpl.java:195)
        at com.csc.cloud.cp.service.aws.s3.impl.S3ServiceImpl.listBuckets(S3ServiceImpl.java:167)
        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)
Caused by: java.lang.ClassNotFoundException: org.joda.time.format.DateTimeFormat not found by org.apache.servicemix.bundles.aws-java-sdk [414]
        at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460)
        at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
        at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 38 more

> 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)