Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to upload file in GCP landscape #13

Open
SumanSwati opened this issue Dec 1, 2021 · 3 comments
Open

Unable to upload file in GCP landscape #13

SumanSwati opened this issue Dec 1, 2021 · 3 comments

Comments

@SumanSwati
Copy link

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)",

@biswaranjanray
Copy link
Contributor

biswaranjanray commented Dec 1, 2021

Hi Swati,
The objectore application currently uses Jclouds 2.3.0 version for all the supported cloud providers including GCP. To reproduce the reported error, I deployed the application with both the version of jclouds (2.3.0 and 2.2.1) in gcp landscape. All the operations are working fine (upload, download, listing of blobs and delete).

Please consider upgrading the JCloud version to 2.3.0

@SumanSwati
Copy link
Author

Upgrading will have to go through approval process, which is time taking. If things work fine in 2.2.1 version, then there is no need to upgrade as per my understanding. But anyways, thanks for the suggestion :) Just to inform you we also use google guava 19.0 to support azure landscape, is that causing any issue in gcp?

@biswaranjanray
Copy link
Contributor

Hi Swati,

Hope you could able to resolve your issue with the solution proposed. Please let us know if we can close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants