You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2015/01/15 22:42:34 UTC

[jira] [Commented] (SMX4-1921) Missing awssdk_config_default.json file in the aws-java-sdk bundle

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

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

It's because the awssdk_config_default.json file is not included in the aws-java-sdk jar, but for instance, in aws-java-sdk-core jar.

> Missing awssdk_config_default.json file in the aws-java-sdk bundle
> ------------------------------------------------------------------
>
>                 Key: SMX4-1921
>                 URL: https://issues.apache.org/jira/browse/SMX4-1921
>             Project: ServiceMix 4
>          Issue Type: Bug
>          Components: Bundles
>    Affects Versions: bundles-2014.12
>         Environment: Karaf 3.0.2 and Karaf 4.0M
>            Reporter: Jeff Jarin
>            Assignee: Jean-Baptiste Onofré
>
> I tried to implement as simple war to deploy in karaf with AmazonS3Client class from this bundle
> http://mvnrepository.com/artifact/org.apache.servicemix.bundles/org.apache.servicemix.bundles.aws-java-sdk/1.9.8_1
> Steps to reproduce:
> start karaf 3.0.2
> feature:install -v war
> feature:install -v webconsole
> access the http://localhost:8181/system/console/bundles to validate karaf’s web console
> feature:install -v pax-web
> install apache servicemix aws-java-sdk using 
> install -s wrap:mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aws-java-sdk/1.9.8_1
> install commons-codec using 
> install wrap:mvn:commons-codec/commons-codec/1.10
> install war using bundle:install mvn:<grouid>/<artifactid>/version
> Exceptions
> HTTP ERROR 500
>  
> Problem accessing /agwar/hello. Reason:
>  
>     Server Error
> Caused by:
>  
> java.lang.ExceptionInInitializerError
> 	at com.amazonaws.util.VersionInfoUtils.userAgent(VersionInfoUtils.java:139)
> 	at com.amazonaws.util.VersionInfoUtils.initializeUserAgent(VersionInfoUtils.java:134)
> 	at com.amazonaws.util.VersionInfoUtils.getUserAgent(VersionInfoUtils.java:95)
> 	at com.amazonaws.ClientConfiguration.<clinit>(ClientConfiguration.java:42)
> 	at com.amazonaws.services.simpleemail.AmazonSimpleEmailServiceClient.<init>(AmazonSimpleEmailServiceClient.java:122)
> 	at org.ops4j.web.samples.helloworld.servlet3.internal.AmazonSESSample.send(AmazonSESSample.java:51)
> 	at org.ops4j.web.samples.helloworld.servlet3.internal.HelloWorld.load(HelloWorld.java:53)
> 	at org.ops4j.web.samples.helloworld.servlet3.internal.HelloWorld.doGet(HelloWorld.java:44)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
> 	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)
> 	at org.ops4j.web.samples.helloworld.servlet3.internal.HelloWorldFilter.doFilter(HelloWorldFilter.java:65)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)
> 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
> 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
> 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:240)
> 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
> 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> 	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:75)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:370)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
> 	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
> 	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
> 	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
> 	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> 	at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.IllegalArgumentException
> 	at com.amazonaws.internal.config.InternalConfig.loadfrom(InternalConfig.java:231)
> 	at com.amazonaws.internal.config.InternalConfig.load(InternalConfig.java:249)
> 	at com.amazonaws.internal.config.InternalConfig$Factory.<clinit>(InternalConfig.java:284)
> 	... 39 more
> Caused by:
>  
> java.lang.IllegalArgumentException
> 	at com.amazonaws.internal.config.InternalConfig.loadfrom(InternalConfig.java:231)
> 	at com.amazonaws.internal.config.InternalConfig.load(InternalConfig.java:249)
> 	at com.amazonaws.internal.config.InternalConfig$Factory.<clinit>(InternalConfig.java:284)
> 	at com.amazonaws.util.VersionInfoUtils.userAgent(VersionInfoUtils.java:139)
> 	at com.amazonaws.util.VersionInfoUtils.initializeUserAgent(VersionInfoUtils.java:134)
> 	at com.amazonaws.util.VersionInfoUtils.getUserAgent(VersionInfoUtils.java:95)
> 	at com.amazonaws.ClientConfiguration.<clinit>(ClientConfiguration.java:42)
> 	at com.amazonaws.services.simpleemail.AmazonSimpleEmailServiceClient.<init>(AmazonSimpleEmailServiceClient.java:122)
> 	at org.ops4j.web.samples.helloworld.servlet3.internal.AmazonSESSample.send(AmazonSESSample.java:51)
> 	at org.ops4j.web.samples.helloworld.servlet3.internal.HelloWorld.load(HelloWorld.java:53)
> 	at org.ops4j.web.samples.helloworld.servlet3.internal.HelloWorld.doGet(HelloWorld.java:44)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
> 	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)
> 	at org.ops4j.web.samples.helloworld.servlet3.internal.HelloWorldFilter.doFilter(HelloWorldFilter.java:65)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)
> 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
> 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
> 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:240)
> 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
> 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> 	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:75)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:370)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
> 	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
> 	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
> 	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
> 	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
> 	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> 	at java.lang.Thread.run(Thread.java:745)
> compare the aws-java-sdk.jar to the aws-java-sdk bundle in servicemix and it's missing the json file



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)