Project: usergrid
Issue USERGRID-579: Exception when trying to post/retrieve an asset from Amazon S3
2015-04-19 13:50:15,455 ERROR (http-bio-8080-exec-24) [package org.apache.usergrid.rest.exceptions] - Server Error (500): {"error":"creation","timestamp":1429465815453,"duration":2,"exception":"com.google.inject.CreationException","error_description":"Guice creation errors:\n\n1) No implementation for com.google.common.base.Function> annotated with @org.jclouds.s3.Bucket() was bound.\n while locating com.google.common.base.Function> annotated with @org.jclouds.s3.Bucket()\n for parameter 0 at org.jclouds.s3.blobstore.functions.LocationFromBucketName.(LocationFromBucketName.java:52)\n at org.jclouds.s3.blobstore.config.S3BlobStoreContextModule.configure(S3BlobStoreContextModule.java:60)\n\n2) No implementation for com.google.common.base.Function, org.jclouds.blobstore.domain.PageSet> was bound.\n while locating com.google.common.base.Function, org.jclouds.blobstore.domain.PageSet>\n for parameter 7 at org.jclouds.aws.s3.blobstore.AWSS3AsyncBlobStore.(AWSS3AsyncBlobStore.java:85)\n at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:43)\n\n3) No implementation for com.google.common.base.Function, org.jclouds.blobstore.domain.PageSet> was bound.\n while locating com.google.common.base.Function, org.jclouds.blobstore.domain.PageSet>\n for parameter 7 at org.jclouds.aws.s3.blobstore.AWSS3AsyncBlobStore.(AWSS3AsyncBlobStore.java:85)\n while locating org.jclouds.aws.s3.blobstore.AWSS3AsyncBlobStore\n for parameter 0 at org.jclouds.aws.s3.blobstore.strategy.internal.ParallelMultipartUploadStrategy.(ParallelMultipartUploadStrategy.java:101)\n at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:46)\n\n4) No implementation for com.google.common.base.Function, org.jclouds.blobstore.domain.PageSet> was bound.\n while locating com.google.common.base.Function, org.jclouds.blobstore.domain.PageSet>\n for parameter 5 at org.jclouds.aws.s3.blobstore.AWSS3BlobStore.(AWSS3BlobStore.java:77)\n at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:44)\n\n5) No implementation for org.jclouds.blobstore.domain.Blob$Factory was bound.\n while locating org.jclouds.blobstore.domain.Blob$Factory\n for parameter 0 at org.jclouds.s3.blobstore.functions.ObjectToBlob.(ObjectToBlob.java:39)\n while locating org.jclouds.s3.blobstore.functions.ObjectToBlob\n for parameter 10 at org.jclouds.aws.s3.blobstore.AWSS3AsyncBlobStore.(AWSS3AsyncBlobStore.java:85)\n at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:43)\n\n6) No implementation for org.jclouds.blobstore.domain.Blob$Factory was bound.\n while locating org.jclouds.blobstore.domain.Blob$Factory\n for parameter 0 at org.jclouds.s3.blobstore.functions.ObjectToBlob.(ObjectToBlob.java:39)\n while locating org.jclouds.s3.blobstore.functions.ObjectToBlob\n for parameter 8 at org.jclouds.aws.s3.blobstore.AWSS3BlobStore.(AWSS3BlobStore.java:77)\n at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:44)\n\n7) No implementation for org.jclouds.blobstore.domain.Blob$Factory was bound.\n while locating org.jclouds.blobstore.domain.Blob$Factory\n for parameter 0 at org.jclouds.s3.blobstore.functions.ObjectToBlob.(ObjectToBlob.java:39)\n while locating org.jclouds.s3.blobstore.functions.ObjectToBlob\n for parameter 10 at org.jclouds.aws.s3.blobstore.AWSS3AsyncBlobStore.(AWSS3AsyncBlobStore.java:85)\n while locating org.jclouds.aws.s3.blobstore.AWSS3AsyncBlobStore\n for parameter 0 at org.jclouds.aws.s3.blobstore.strategy.internal.ParallelMultipartUploadStrategy.(ParallelMultipartUploadStrategy.java:101)\n at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:46)\n\n8) No implementation for org.jclouds.s3.domain.S3Object$Factory was bound.\n while locating org.jclouds.s3.domain.S3Object$Factory\n for parameter 1 at org.jclouds.s3.blobstore.functions.BlobToObject.(BlobToObject.java:38)\n while locating org.jclouds.s3.blobstore.functions.BlobToObject\n for parameter 1 at org.jclouds.aws.s3.blobstore.AWSS3BlobRequestSigner.(AWSS3BlobRequestSigner.java:64)\n at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.bindRequestSigner(AWSS3BlobStoreContextModule.java:51)\n\n9) No implementation for org.jclouds.s3.domain.S3Object$Factory was bound.\n while locating org.jclouds.s3.domain.S3Object$Factory\n for parameter 1 at org.jclouds.s3.blobstore.functions.BlobToObject.(BlobToObject.java:38)\n while locating org.jclouds.s3.blobstore.functions.BlobToObject\n for parameter 12 at org.jclouds.aws.s3.blobstore.AWSS3AsyncBlobStore.(AWSS3AsyncBlobStore.java:85)\n at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:43)\n\n10) No implementation for org.jclouds.s3.domain.S3Object$Factory was bound.\n while locating org.jclouds.s3.domain.S3Object$Factory\n for parameter 1 at org.jclouds.s3.blobstore.functions.BlobToObject.(BlobToObject.java:38)\n while locating org.jclouds.s3.blobstore.functions.BlobToObject\n for parameter 10 at org.jclouds.aws.s3.blobstore.AWSS3BlobStore.(AWSS3BlobStore.java:77)\n at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:44)\n\n11) No implementation for org.jclouds.s3.domain.S3Object$Factory was bound.\n while locating org.jclouds.s3.domain.S3Object$Factory\n for parameter 1 at org.jclouds.s3.blobstore.functions.BlobToObject.(BlobToObject.java:38)\n while locating org.jclouds.s3.blobstore.functions.BlobToObject\n for parameter 1 at org.jclouds.aws.s3.blobstore.strategy.internal.SequentialMultipartUploadStrategy.(SequentialMultipartUploadStrategy.java:66)\n at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:45)\n\n12) No implementation for org.jclouds.s3.domain.S3Object$Factory was bound.\n while locating org.jclouds.s3.domain.S3Object$Factory\n for parameter 1 at org.jclouds.s3.blobstore.functions.BlobToObject.(BlobToObject.java:38)\n while locating org.jclouds.s3.blobstore.functions.BlobToObject\n for parameter 12 at org.jclouds.aws.s3.blobstore.AWSS3AsyncBlobStore.(AWSS3AsyncBlobStore.java:85)\n while locating org.jclouds.aws.s3.blobstore.AWSS3AsyncBlobStore\n for parameter 0 at org.jclouds.aws.s3.blobstore.strategy.internal.ParallelMultipartUploadStrategy.(ParallelMultipartUploadStrategy.java:101)\n at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:46)\n\n13) org.jclouds.rest.config.SyncToAsyncHttpApiProvider cannot be used as a key; It is not fully specified.\n\n14) org.jclouds.rest.config.SyncToAsyncHttpApiProvider cannot be used as a key; It is not fully specified.\n\n15) org.jclouds.rest.RestContext cannot be used as a key; It is not fully specified.\n\n16) No implementation for org.jclouds.rest.HttpClient was bound.\n at org.jclouds.rest.config.BinderUtils.bindHttpApiProvider(BinderUtils.java:107)\n\n17) No implementation for org.jclouds.aws.s3.AWSS3Client was bound.\n at org.jclouds.rest.config.BinderUtils.bindHttpApiProvider(BinderUtils.java:107)\n\n17 errors"} 2015-04-19 13:50:19,598 ERROR (http-bio-8080-exec-25) [package org.apache.usergrid.rest.exceptions] - com.google.inject.CreationException Server Error (500) com.google.inject.CreationException: Guice creation errors: 1) No implementation for com.google.common.base.Function> annotated with @org.jclouds.s3.Bucket() was bound. while locating com.google.common.base.Function> annotated with @org.jclouds.s3.Bucket() for parameter 0 at org.jclouds.s3.blobstore.functions.LocationFromBucketName.(LocationFromBucketName.java:52) at org.jclouds.s3.blobstore.config.S3BlobStoreContextModule.configure(S3BlobStoreContextModule.java:60) 2) No implementation for com.google.common.base.Function, org.jclouds.blobstore.domain.PageSet> was bound. while locating com.google.common.base.Function, org.jclouds.blobstore.domain.PageSet> for parameter 7 at org.jclouds.aws.s3.blobstore.AWSS3AsyncBlobStore.(AWSS3AsyncBlobStore.java:85) at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:43) 3) No implementation for com.google.common.base.Function, org.jclouds.blobstore.domain.PageSet> was bound. while locating com.google.common.base.Function, org.jclouds.blobstore.domain.PageSet> for parameter 7 at org.jclouds.aws.s3.blobstore.AWSS3AsyncBlobStore.(AWSS3AsyncBlobStore.java:85) while locating org.jclouds.aws.s3.blobstore.AWSS3AsyncBlobStore for parameter 0 at org.jclouds.aws.s3.blobstore.strategy.internal.ParallelMultipartUploadStrategy.(ParallelMultipartUploadStrategy.java:101) at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:46) 4) No implementation for com.google.common.base.Function, org.jclouds.blobstore.domain.PageSet> was bound. while locating com.google.common.base.Function, org.jclouds.blobstore.domain.PageSet> for parameter 5 at org.jclouds.aws.s3.blobstore.AWSS3BlobStore.(AWSS3BlobStore.java:77) at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:44) 5) No implementation for org.jclouds.blobstore.domain.Blob$Factory was bound. while locating org.jclouds.blobstore.domain.Blob$Factory for parameter 0 at org.jclouds.s3.blobstore.functions.ObjectToBlob.(ObjectToBlob.java:39) while locating org.jclouds.s3.blobstore.functions.ObjectToBlob for parameter 10 at org.jclouds.aws.s3.blobstore.AWSS3AsyncBlobStore.(AWSS3AsyncBlobStore.java:85) at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:43) 6) No implementation for org.jclouds.blobstore.domain.Blob$Factory was bound. while locating org.jclouds.blobstore.domain.Blob$Factory for parameter 0 at org.jclouds.s3.blobstore.functions.ObjectToBlob.(ObjectToBlob.java:39) while locating org.jclouds.s3.blobstore.functions.ObjectToBlob for parameter 8 at org.jclouds.aws.s3.blobstore.AWSS3BlobStore.(AWSS3BlobStore.java:77) at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:44) 7) No implementation for org.jclouds.blobstore.domain.Blob$Factory was bound. while locating org.jclouds.blobstore.domain.Blob$Factory for parameter 0 at org.jclouds.s3.blobstore.functions.ObjectToBlob.(ObjectToBlob.java:39) while locating org.jclouds.s3.blobstore.functions.ObjectToBlob for parameter 10 at org.jclouds.aws.s3.blobstore.AWSS3AsyncBlobStore.(AWSS3AsyncBlobStore.java:85) while locating org.jclouds.aws.s3.blobstore.AWSS3AsyncBlobStore for parameter 0 at org.jclouds.aws.s3.blobstore.strategy.internal.ParallelMultipartUploadStrategy.(ParallelMultipartUploadStrategy.java:101) at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:46) 8) No implementation for org.jclouds.s3.domain.S3Object$Factory was bound. while locating org.jclouds.s3.domain.S3Object$Factory for parameter 1 at org.jclouds.s3.blobstore.functions.BlobToObject.(BlobToObject.java:38) while locating org.jclouds.s3.blobstore.functions.BlobToObject for parameter 1 at org.jclouds.aws.s3.blobstore.AWSS3BlobRequestSigner.(AWSS3BlobRequestSigner.java:64) at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.bindRequestSigner(AWSS3BlobStoreContextModule.java:51) 9) No implementation for org.jclouds.s3.domain.S3Object$Factory was bound. while locating org.jclouds.s3.domain.S3Object$Factory for parameter 1 at org.jclouds.s3.blobstore.functions.BlobToObject.(BlobToObject.java:38) while locating org.jclouds.s3.blobstore.functions.BlobToObject for parameter 12 at org.jclouds.aws.s3.blobstore.AWSS3AsyncBlobStore.(AWSS3AsyncBlobStore.java:85) at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:43) 10) No implementation for org.jclouds.s3.domain.S3Object$Factory was bound. while locating org.jclouds.s3.domain.S3Object$Factory for parameter 1 at org.jclouds.s3.blobstore.functions.BlobToObject.(BlobToObject.java:38) while locating org.jclouds.s3.blobstore.functions.BlobToObject for parameter 10 at org.jclouds.aws.s3.blobstore.AWSS3BlobStore.(AWSS3BlobStore.java:77) at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:44) 11) No implementation for org.jclouds.s3.domain.S3Object$Factory was bound. while locating org.jclouds.s3.domain.S3Object$Factory for parameter 1 at org.jclouds.s3.blobstore.functions.BlobToObject.(BlobToObject.java:38) while locating org.jclouds.s3.blobstore.functions.BlobToObject for parameter 1 at org.jclouds.aws.s3.blobstore.strategy.internal.SequentialMultipartUploadStrategy.(SequentialMultipartUploadStrategy.java:66) at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:45) 12) No implementation for org.jclouds.s3.domain.S3Object$Factory was bound. while locating org.jclouds.s3.domain.S3Object$Factory for parameter 1 at org.jclouds.s3.blobstore.functions.BlobToObject.(BlobToObject.java:38) while locating org.jclouds.s3.blobstore.functions.BlobToObject for parameter 12 at org.jclouds.aws.s3.blobstore.AWSS3AsyncBlobStore.(AWSS3AsyncBlobStore.java:85) while locating org.jclouds.aws.s3.blobstore.AWSS3AsyncBlobStore for parameter 0 at org.jclouds.aws.s3.blobstore.strategy.internal.ParallelMultipartUploadStrategy.(ParallelMultipartUploadStrategy.java:101) at org.jclouds.aws.s3.blobstore.config.AWSS3BlobStoreContextModule.configure(AWSS3BlobStoreContextModule.java:46) 13) org.jclouds.rest.config.SyncToAsyncHttpApiProvider cannot be used as a key; It is not fully specified. 14) org.jclouds.rest.config.SyncToAsyncHttpApiProvider cannot be used as a key; It is not fully specified. 15) org.jclouds.rest.RestContext cannot be used as a key; It is not fully specified. 16) No implementation for org.jclouds.rest.HttpClient was bound. at org.jclouds.rest.config.BinderUtils.bindHttpApiProvider(BinderUtils.java:107) 17) No implementation for org.jclouds.aws.s3.AWSS3Client was bound. at org.jclouds.rest.config.BinderUtils.bindHttpApiProvider(BinderUtils.java:107) 17 errors com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435) com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:154) com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106) com.google.inject.Guice.createInjector(Guice.java:95) org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:405) org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:329) org.jclouds.ContextBuilder.buildView(ContextBuilder.java:620) org.jclouds.ContextBuilder.buildView(ContextBuilder.java:600) org.apache.usergrid.services.assets.data.S3BinaryStore.getContext(S3BinaryStore.java:87) org.apache.usergrid.services.assets.data.S3BinaryStore.read(S3BinaryStore.java:190) org.apache.usergrid.services.assets.data.S3BinaryStore.read(S3BinaryStore.java:208) org.apache.usergrid.rest.applications.ServiceResource.executeStreamGet(ServiceResource.java:642) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:606) com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137) com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137) com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137) com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137) com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542) com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473) com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419) com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409) c...
Story points: 3