cloud-objectstore-java-sample icon indicating copy to clipboard operation
cloud-objectstore-java-sample copied to clipboard

Unable to upload file in GCP landscape

Open SumanSwati opened this issue 3 years ago • 3 comments

jcloud google-cloud-storage version: 2.2.1 Hi Team We are going live on GCP, But we got into following issue while uploading to object-store. Can anyone help us?

This is the error we are getting when we are trying to upload to gcp: org.jclouds.http.HttpResponseException: Error parsing input: while trying to invoke the method org.jclouds.json.gson.internal.JsonReaderInternalAccess.promoteNameToValue(com.google.gson.stream.JsonReader) of a null object loaded from static field org.jclouds.json.gson.internal.JsonReaderInternalAccess.INSTANCE\n{statusCode=200, message=OK, headers={Server=[UploadServer], X-GUploader-UploadID=[ADPycds3vHs9Ra-oE-ERMmpOy-Kq2khl1a4CaXqrE9L87owcxvHiJF3m1cGgY4Ax_8SRRRSJD8_yV9XhQ9m958z4RRrSuUNJ5g], Vary=[X-Origin, Origin], Date=[Wed, 01 Dec 2021 10:30:39 GMT]}, payload=[content=true, contentMetadata=[cacheControl=private, max-age=0, must-revalidate, no-transform, contentDisposition=null, contentEncoding=null, contentLanguage=null, contentLength=1591, contentMD5=null, contentType=application/json; charset=UTF-8, expires=Wed Dec 01 10:30:39 UTC 2021], written=false, isSensitive=false]}", "\tat org.jclouds.http.functions.ParseJson.apply(ParseJson.java:67)", "\tat org.jclouds.http.functions.ParseJson.apply(ParseJson.java:41)", "\tat org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:91)", "\tat org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:74)", "\tat org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:45)", "\tat org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)", "\tat com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:87)", "\tat com.sun.proxy.$Proxy174.listObjects(Unknown Source)", "\tat org.jclouds.googlecloudstorage.blobstore.GoogleCloudStorageBlobStore.list(GoogleCloudStorageBlobStore.java:189)", "\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)", "\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)", "\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)", "\tat java.lang.reflect.Method.invoke(Method.java:498)", "\tat com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:37)", "\tat com.sun.proxy.$Proxy103.list(Unknown Source)", "\tat com.sap.bpm.pfs.objectstore.repository.ObjectStoreRepository.listFiles(ObjectStoreRepository.java:112)", "\tat com.sap.bpm.pfs.objectstore.service.GCPObjectStoreService.listObjects(GCPObjectStoreService.java:62)", "\tat com.sap.bpm.pfs.objectstore.service.GCPObjectStoreService.uploadFile(GCPObjectStoreService.java:50)", "\tat com.sap.bpm.pfs.core.api.impl.DTPackageServiceImpl.persistFile(DTPackageServiceImpl.java:468)",

SumanSwati avatar Dec 01 '21 11:12 SumanSwati