-
Notifications
You must be signed in to change notification settings - Fork 93
Storage: storage.get triggers an error: java.lang.NoSuchMethodError: com.google.api.services.storage.model.StorageObject.getCustomTime() #994
Copy link
Copy link
Closed
Labels
api: storageIssues related to the googleapis/java-storage API.Issues related to the googleapis/java-storage API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Environment details
- OS type and version: MacOSX
- Java version: 11
- storage version(s): 2.1.0
Code example
private Blob doCopy(String filename) {
BlobId srcId = BlobId.fromGsUtilUri(filename);
Blob src = this.storage.get(srcId); // <--- This line triggers the error
CopyWriter w = src.copyTo(this.destBucket, this.destObject);
return w.getResult();
}Stack trace
Caused by: java.lang.NoSuchMethodError: com.google.api.services.storage.model.StorageObject.getCustomTime()Lcom/google/api/client/util/DateTime;
at com.google.cloud.storage.BlobInfo.fromPb (BlobInfo.java:1212)
at com.google.cloud.storage.Blob.fromPb (Blob.java:972)
at com.google.cloud.storage.StorageImpl.get (StorageImpl.java:330)
at com.google.cloud.storage.StorageImpl.get (StorageImpl.java:338)
at com.myorg.myapp.MatchKeywordsDoFn.doCopy (MatchKeywordsDoFn.java:65)
at com.myorg.myapp.MatchKeywordsDoFn.processElement (MatchKeywordsDoFn.java:52)
External references such as API reference guides
Any additional information below
I'm not sure this makes a difference but I'm running this as part of an Apache Beam pipeline.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the googleapis/java-storage API.Issues related to the googleapis/java-storage API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.