jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Lütge (JIRA) <j...@apache.org>
Subject [jira] [Created] (JCLOUDS-904) Using ContextBuilder to build new aws-s3 context throws NoClassDefFoundError
Date Mon, 11 May 2015 13:11:00 GMT
Sebastian Lütge created JCLOUDS-904:
---------------------------------------

             Summary: Using ContextBuilder to build new aws-s3 context throws NoClassDefFoundError
                 Key: JCLOUDS-904
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-904
             Project: jclouds
          Issue Type: Bug
          Components: jclouds-blobstore
    Affects Versions: 1.9.0
         Environment: Karaf OSGi Container
            Reporter: Sebastian Lütge
            Priority: Critical


Following the steps of the quickstart 
{code}context = ContextBuilder.newBuilder("aws-s3")
             .credentials(accesskeyid, secretaccesskey)
             .buildView(BlobStoreContext.class);{code}
using version 1.9.0 creates a NoClassDefFoundError when calling buildView():
{code}java.lang.NoClassDefFoundError: org.jclouds.io.Payload not found by aws-s3 [323]
	at com.sun.proxy.$Proxy212.<clinit>(Unknown Source)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.7.0_51]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[:1.7.0_51]
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.7.0_51]
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)[:1.7.0_51]
	at java.lang.reflect.Proxy.newInstance(Proxy.java:748)[:1.7.0_51]
	at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:739)[:1.7.0_51]
	at org.jclouds.rest.config.AnnotatedHttpApiProvider.get(AnnotatedHttpApiProvider.java:45)
	at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:55)
	at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
	at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
	at com.google.inject.spi.ProviderLookup$1.get(ProviderLookup.java:89)
	at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:98)
	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
	at com.google.inject.Scopes$1$1.get(Scopes.java:65)
	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
	at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
	at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
	at com.google.inject.spi.ProviderLookup$1.get(ProviderLookup.java:89)
	at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:98)
	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
	at com.google.inject.Scopes$1$1.get(Scopes.java:65)
	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
	at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
	at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
	at com.google.inject.spi.ProviderLookup$1.get(ProviderLookup.java:89)
	at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:98)
	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
	at com.google.inject.Scopes$1$1.get(Scopes.java:65)
	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
	at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
	at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
	at com.google.inject.Scopes$1$1.get(Scopes.java:65)
	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
	at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:54)
	at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:204)
	at com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:198)
	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
	at com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:198)
	at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:179)
	at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
	at com.google.inject.Guice.createInjector(Guice.java:95)
	at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:402)
	at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:326)
	at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:608)
	at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:588)
	at com.cloudyle.paasplus.enterprise.camel.jcloud.CloudService.retrieve(CloudService.java:441)
	at Proxyb7b7c64d_7235_456f_bc71_8ad3ff6ee9fa.retrieve(Unknown Source)
	at Proxy1907f0b4_8792_4f6c_9997_41898138e68b.retrieve(Unknown Source)
	at com.cloudyle.paasplus.management.cloudcontrol.impl.CloudControlStorageServiceImpl.readUsageData(CloudControlStorageServiceImpl.java:77)
	at com.cloudyle.paasplus.management.cloudcontrol.impl.CloudControlStorageServiceImpl.getCsvUsageData(CloudControlStorageServiceImpl.java:65)
	at Proxy45d8d8ca_eea4_4721_a354_42fe4c666365.getCsvUsageData(Unknown Source)
	at Proxyec03d581_0a65_4cbb_b7b9_7e34903fa230.getCsvUsageData(Unknown Source)
	at com.cloudyle.paasplus.management.cockpit.view.openshift.OpenshiftTestView.enter(OpenshiftTestView.java:46)[394:com.cloudyle.paasplus.enterprise.management.cockpit.gui:3.0.0.SNAPSHOT]
	at com.vaadin.navigator.Navigator.navigateTo(Navigator.java:571)[277:com.vaadin.server:7.3.3]
	at com.vaadin.navigator.Navigator.navigateTo(Navigator.java:526)[277:com.vaadin.server:7.3.3]
	at com.cloudyle.paasplus.ui.framework.BasicFrameworkUI.afterSuccessfulLogin(BasicFrameworkUI.java:80)[286:com.cloudyle.paasplus.platform.ui.framework:2.1.0.SNAPSHOT]
	at com.cloudyle.paasplus.management.cockpit.login.LoginView.login(LoginView.java:420)[394:com.cloudyle.paasplus.enterprise.management.cockpit.gui:3.0.0.SNAPSHOT]
	at com.ejt.vaadin.loginform.LoginForm.login(LoginForm.java:233)[286:com.cloudyle.paasplus.platform.ui.framework:2.1.0.SNAPSHOT]
	at com.ejt.vaadin.loginform.LoginForm.access$100(LoginForm.java:47)[286:com.cloudyle.paasplus.platform.ui.framework:2.1.0.SNAPSHOT]
	at com.ejt.vaadin.loginform.LoginForm$2.submitted(LoginForm.java:203)[286:com.cloudyle.paasplus.platform.ui.framework:2.1.0.SNAPSHOT]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_51]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_51]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_51]
	at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_51]
	at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:168)[277:com.vaadin.server:7.3.3]
	at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:118)[277:com.vaadin.server:7.3.3]
	at com.vaadin.server.communication.ServerRpcHandler.handleInvocations(ServerRpcHandler.java:287)[277:com.vaadin.server:7.3.3]
	at com.vaadin.server.communication.ServerRpcHandler.handleRpc(ServerRpcHandler.java:180)[277:com.vaadin.server:7.3.3]
	at com.vaadin.server.communication.UidlRequestHandler.synchronizedHandleRequest(UidlRequestHandler.java:93)[277:com.vaadin.server:7.3.3]
	at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:41)[277:com.vaadin.server:7.3.3]
	at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1402)[277:com.vaadin.server:7.3.3]
	at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:305)[277:com.vaadin.server:7.3.3]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)[59:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0.0]
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)[269:org.apache.shiro.web:1.2.3]
	at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)[269:org.apache.shiro.web:1.2.3]
	at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)[267:org.apache.shiro.core:1.2.3]
	at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)[267:org.apache.shiro.core:1.2.3]
	at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)[267:org.apache.shiro.core:1.2.3]
	at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)[269:org.apache.shiro.web:1.2.3]
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)[269:org.apache.shiro.web:1.2.3]
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)[74:org.ops4j.pax.web.pax-web-jetty:3.1.4]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:240)[74:org.ops4j.pax.web.pax-web-jetty:3.1.4]
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:75)[74:org.ops4j.pax.web.pax-web-jetty:3.1.4]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.server.Server.handle(Server.java:370)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.io.nio.SslConnection.handle(SslConnection.java:196)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[65:org.eclipse.jetty.aggregate.jetty-all-server:8.1.15.v20140411]
	at java.lang.Thread.run(Thread.java:744)[:1.7.0_51]{code}
While using version 1.8 works without problems.



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

Mime
View raw message