Hi Carlos There is an outstanding issue with a conflict between the version of Guava and Java 7u51 that is being worked on the moment, see https://issues.apache.org/jira/browse/JCLOUDS-427 for more info and an update on Andrew’s progress with finding a workaround.
Graham On 24 Jan 2014, at 15:29, Carlos Ospina <[email protected]> wrote: > Hello. > > I'm trying to run this example from eclipse: > https://github.com/jclouds/jclouds-examples/blob/master/rackspace/src/main/java/org/jclouds/examples/rackspace/cloudfiles/CloudFilesPublish.java > > I did a git clone from the main repo, and have maven running so all > dependencies should be working. > > When I run the code I get an error. > > Any help would be greatly appreciated. > > Best regards, > > Carlos > > ================== > Error: > =================== > Exception in thread "main" com.google.inject.CreationException: Guice > creation errors: > > 1) No implementation for com.google.common.base.Supplier<java.lang.String> > annotated with @org.jclouds.openstack.swift.TemporaryUrlKey() was bound. > while locating com.google.common.base.Supplier<java.lang.String> annotated > with @org.jclouds.openstack.swift.TemporaryUrlKey() > for parameter 4 at > org.jclouds.openstack.swift.blobstore.SwiftBlobSigner.<init>(SwiftBlobSigner.java:88) > at > org.jclouds.cloudfiles.CloudFilesApiMetadata$CloudFilesTemporaryUrlExtensionModule.bindRequestSigner(CloudFilesApiMetadata.java:101) > > 2) No implementation for org.jclouds.openstack.swift.CommonSwiftClient was > bound. > while locating org.jclouds.openstack.swift.CommonSwiftClient > for parameter 4 at > org.jclouds.cloudfiles.blobstore.CloudFilesBlobStore.<init>(CloudFilesBlobStore.java:63) > at > org.jclouds.cloudfiles.blobstore.config.CloudFilesBlobStoreContextModule.configure(CloudFilesBlobStoreContextModule.java:64) > > 3) No implementation for org.jclouds.openstack.swift.CommonSwiftClient was > bound. > while locating org.jclouds.openstack.swift.CommonSwiftClient > for parameter 0 at > org.jclouds.openstack.swift.blobstore.strategy.internal.SequentialMultipartUploadStrategy.<init>(SequentialMultipartUploadStrategy.java:51) > while locating > com.google.inject.Provider<org.jclouds.openstack.swift.blobstore.strategy.internal.MultipartUploadStrategy> > for parameter 14 at > org.jclouds.cloudfiles.blobstore.CloudFilesBlobStore.<init>(CloudFilesBlobStore.java:63) > at > org.jclouds.cloudfiles.blobstore.config.CloudFilesBlobStoreContextModule.configure(CloudFilesBlobStoreContextModule.java:64) > > 4) > org.jclouds.rest.config.SyncToAsyncHttpApiProvider<org.jclouds.openstack.keystone.v1_1.AuthenticationClient, > A> cannot be used as a key; It is not fully specified. > > 5) > org.jclouds.rest.config.SyncToAsyncHttpApiProvider<org.jclouds.rest.HttpClient, > A> cannot be used as a key; It is not fully specified. > > 6) > org.jclouds.rest.config.SyncToAsyncHttpApiProvider<org.jclouds.cloudfiles.CloudFilesClient, > A> cannot be used as a key; It is not fully specified. > > 7) > org.jclouds.rest.config.SyncToAsyncHttpApiProvider<org.jclouds.openstack.swift.extensions.TemporaryUrlKeyApi, > A> cannot be used as a key; It is not fully specified. > > 8) org.jclouds.rest.RestContext<org.jclouds.cloudfiles.CloudFilesClient, A> > cannot be used as a key; It is not fully specified. > > 9) No implementation for > org.jclouds.location.suppliers.RegionIdToURISupplier$Factory was bound. > at > org.jclouds.cloudfiles.config.CloudFilesRestClientModule$StorageAndCDNManagementEndpointModule.provideCDNUrl(CloudFilesRestClientModule.java:67) > > 10) No implementation for > org.jclouds.openstack.keystone.v1_1.suppliers.V1DefaultRegionIdSupplier$Factory > was bound. > at > org.jclouds.cloudfiles.config.CloudFilesRestClientModule$StorageAndCDNManagementEndpointModule.provideCDNUrl(CloudFilesRestClientModule.java:67) > > 11) No implementation for > org.jclouds.location.suppliers.RegionIdToURISupplier$Factory was bound. > at > org.jclouds.cloudfiles.config.CloudFilesRestClientModule$StorageAndCDNManagementEndpointModule.provideStorageUrl(CloudFilesRestClientModule.java:76) > > 12) No implementation for > org.jclouds.openstack.keystone.v1_1.suppliers.V1DefaultRegionIdSupplier$Factory > was bound. > at > org.jclouds.cloudfiles.config.CloudFilesRestClientModule$StorageAndCDNManagementEndpointModule.provideStorageUrl(CloudFilesRestClientModule.java:76) > > 13) No implementation for > org.jclouds.openstack.keystone.v1_1.AuthenticationClient was bound. > at > org.jclouds.rest.config.BinderUtils.bindHttpApiProvider(BinderUtils.java:106) > > 14) No implementation for org.jclouds.rest.HttpClient was bound. > at > org.jclouds.rest.config.BinderUtils.bindHttpApiProvider(BinderUtils.java:106) > > 15) No implementation for org.jclouds.cloudfiles.CloudFilesClient was bound. > at > org.jclouds.rest.config.BinderUtils.bindHttpApiProvider(BinderUtils.java:106) > > 16) No implementation for > org.jclouds.openstack.swift.extensions.TemporaryUrlKeyApi was bound. > at > org.jclouds.rest.config.BinderUtils.bindHttpApiProvider(BinderUtils.java:106) > > 16 errors > at > com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435) > at > com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:154) > at > com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106) > at com.google.inject.Guice.createInjector(Guice.java:95) > at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:403) > at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:327) > at org.jclouds.ContextBuilder.buildApi(ContextBuilder.java:654) > at org.jclouds.ContextBuilder.buildApi(ContextBuilder.java:646) > at > org.jclouds.examples.rackspace.cloudfiles.CloudFilesPublish.<init>(CloudFilesPublish.java:66) > at > org.jclouds.examples.rackspace.cloudfiles.CloudFilesPublish.main(CloudFilesPublish.java:48)
