servicemix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (SMX4-1790) Apache ServiceMix :: Bundles :: aws-java-sdk 1.7.5_1 throwing NoClassDefFoundError: org.apache.http.conn.routing.HttpRoute
Date Sat, 05 Jul 2014 13:06:34 GMT

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

Jean-Baptiste Onofré commented on SMX4-1790:
--------------------------------------------

To avoid such kind of issue, I will wrap joda-time and http-conn in the aws bundle.

> 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
>            Assignee: Jean-Baptiste Onofré
>             Fix For: bundles-2014.07
>
>
> 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)

Mime
View raw message