Skip to content

error when initilizing Page<Blob> blobs #3532

Description

@mikiasgebre

Upon listing Blob inside the storage, I encounter this error:

java.lang.NoSuchMethodError: com.google.api.services.storage.Storage$Objects$List.setUserProject(Ljava/lang/String;)Lcom/google/api/services/storage/Storage$Objects$List`

the error points at this line.

``Page buckets = storage.list(BucketListOption.pageSize(100),
BucketListOption.prefix(prefix));

my dependency tree looks like this:

maven-dependency-plugin:3.0.1:tree (default-cli) @ pipelines-java ---
[INFO] dataflow-stream-ingestion-test:pipelines-java:jar:0.1-SNAPSHOT
[INFO] +- org.apache.beam:beam-sdks-java-core:jar:2.2.0:compile
[INFO] |  \- org.xerial.snappy:snappy-java:jar:1.1.4:compile
[INFO] +- org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.2.0:compile
[INFO] |  +- org.apache.beam:beam-sdks-java-extensions-google-cloud-platform-core:jar:2.2.0:compile
[INFO] |  |  +- com.google.cloud.bigdataoss:gcsio:jar:1.4.5:compile
[INFO] |  |  \- com.google.apis:google-api-services-cloudresourcemanager:jar:v1-rev6-1.22.0:compile
[INFO] |  +- org.apache.beam:beam-sdks-java-extensions-protobuf:jar:2.2.0:compile
[INFO] |  +- io.grpc:grpc-core:jar:1.2.0:compile
[INFO] |  |  +- com.google.errorprone:error_prone_annotations:jar:2.0.11:compile
[INFO] |  |  +- io.grpc:grpc-context:jar:1.2.0:compile
[INFO] |  |  \- com.google.instrumentation:instrumentation-api:jar:0.3.0:compile
[INFO] |  +- com.google.api:gax-grpc:jar:0.20.0:compile
[INFO] |  |  \- io.grpc:grpc-protobuf:jar:1.2.0:compile
[INFO] |  +- com.google.cloud:google-cloud-core-grpc:jar:1.2.0:compile
[INFO] |  +- com.google.apis:google-api-services-pubsub:jar:v1-rev10-1.22.0:compile
[INFO] |  +- com.google.api.grpc:grpc-google-cloud-pubsub-v1:jar:0.1.18:compile
[INFO] |  +- com.google.api.grpc:proto-google-cloud-pubsub-v1:jar:0.1.18:compile
[INFO] |  +- com.google.cloud.bigdataoss:util:jar:1.4.5:compile
[INFO] |  |  +- com.google.api-client:google-api-client-java6:jar:1.20.0:compile
[INFO] |  |  +- com.google.api-client:google-api-client-jackson2:jar:1.20.0:compile
[INFO] |  |  +- com.google.oauth-client:google-oauth-client:jar:1.20.0:compile
[INFO] |  |  \- com.google.oauth-client:google-oauth-client-java6:jar:1.20.0:compile
[INFO] |  +- com.google.cloud.datastore:datastore-v1-proto-client:jar:1.4.0:compile
[INFO] |  |  +- com.google.http-client:google-http-client-protobuf:jar:1.20.0:compile
[INFO] |  |  \- com.google.http-client:google-http-client-jackson:jar:1.20.0:compile
[INFO] |  +- io.grpc:grpc-auth:jar:1.2.0:compile
[INFO] |  +- io.grpc:grpc-netty:jar:1.2.0:compile
[INFO] |  |  +- io.netty:netty-codec-http2:jar:4.1.8.Final:compile (version selected from constraint [4.1.8.Final,4.1.8.Final])
[INFO] |  |  |  \- io.netty:netty-codec-http:jar:4.1.8.Final:compile
[INFO] |  |  \- io.netty:netty-handler-proxy:jar:4.1.8.Final:compile
[INFO] |  |     \- io.netty:netty-codec-socks:jar:4.1.8.Final:compile
[INFO] |  +- io.netty:netty-handler:jar:4.1.8.Final:compile
[INFO] |  |  +- io.netty:netty-buffer:jar:4.1.8.Final:compile
[INFO] |  |  |  \- io.netty:netty-common:jar:4.1.8.Final:compile
[INFO] |  |  +- io.netty:netty-transport:jar:4.1.8.Final:compile
[INFO] |  |  |  \- io.netty:netty-resolver:jar:4.1.8.Final:compile
[INFO] |  |  \- io.netty:netty-codec:jar:4.1.8.Final:compile
[INFO] |  +- io.grpc:grpc-stub:jar:1.2.0:compile
[INFO] |  +- io.grpc:grpc-all:jar:1.2.0:compile
[INFO] |  |  +- io.grpc:grpc-okhttp:jar:1.2.0:compile
[INFO] |  |  |  +- com.squareup.okhttp:okhttp:jar:2.5.0:compile
[INFO] |  |  |  \- com.squareup.okio:okio:jar:1.6.0:compile
[INFO] |  |  +- io.grpc:grpc-protobuf-lite:jar:1.2.0:compile
[INFO] |  |  \- io.grpc:grpc-protobuf-nano:jar:1.2.0:compile
[INFO] |  |     \- com.google.protobuf.nano:protobuf-javanano:jar:3.0.0-alpha-5:compile
[INFO] |  +- com.google.cloud:google-cloud-spanner:jar:0.20.0-beta:compile
[INFO] |  |  +- com.google.api.grpc:proto-google-cloud-spanner-v1:jar:0.1.11:compile
[INFO] |  |  +- com.google.api.grpc:proto-google-cloud-spanner-admin-instance-v1:jar:0.1.11:compile
[INFO] |  |  +- com.google.api.grpc:grpc-google-cloud-spanner-v1:jar:0.1.11:compile
[INFO] |  |  +- com.google.api.grpc:grpc-google-cloud-spanner-admin-database-v1:jar:0.1.11:compile
[INFO] |  |  +- com.google.api.grpc:grpc-google-cloud-spanner-admin-instance-v1:jar:0.1.11:compile
[INFO] |  |  \- com.google.api.grpc:grpc-google-longrunning-v1:jar:0.1.11:compile
[INFO] |  |     \- com.google.api.grpc:proto-google-longrunning-v1:jar:0.1.11:compile
[INFO] |  +- com.google.cloud.bigtable:bigtable-protos:jar:1.0.0-pre3:compile
[INFO] |  +- com.google.cloud.bigtable:bigtable-client-core:jar:1.0.0-pre3:compile
[INFO] |  |  +- commons-logging:commons-logging:jar:1.2:compile
[INFO] |  |  +- com.google.auth:google-auth-library-appengine:jar:0.7.0:compile
[INFO] |  |  \- io.dropwizard.metrics:metrics-core:jar:3.1.2:compile
[INFO] |  +- com.google.api-client:google-api-client:jar:1.22.0:compile
[INFO] |  +- com.google.http-client:google-http-client:jar:1.22.0:compile
[INFO] |  |  \- org.apache.httpcomponents:httpclient:jar:4.0.1:compile
[INFO] |  |     +- org.apache.httpcomponents:httpcore:jar:4.0.1:compile
[INFO] |  |     \- commons-codec:commons-codec:jar:1.3:compile
[INFO] |  +- com.google.http-client:google-http-client-jackson2:jar:1.22.0:compile
[INFO] |  +- com.google.auth:google-auth-library-credentials:jar:0.7.1:compile
[INFO] |  +- com.google.auth:google-auth-library-oauth2-http:jar:0.7.1:compile
[INFO] |  +- io.netty:netty-tcnative-boringssl-static:jar:1.1.33.Fork26:compile
[INFO] |  +- com.google.api.grpc:proto-google-cloud-spanner-admin-database-v1:jar:0.1.9:compile
[INFO] |  \- com.google.api.grpc:proto-google-common-protos:jar:0.1.9:compile
[INFO] +- org.apache.beam:beam-runners-google-cloud-dataflow-java:jar:2.2.0:compile
[INFO] |  +- org.apache.beam:beam-sdks-common-runner-api:jar:2.2.0:compile
[INFO] |  +- com.google.apis:google-api-services-dataflow:jar:v1b3-rev213-1.22.0:compile
[INFO] |  \- com.google.apis:google-api-services-clouddebugger:jar:v2-rev8-1.22.0:compile
[INFO] +- org.apache.beam:beam-runners-direct-java:jar:2.5.0:compile
[INFO] |  +- org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO] |  +- junit:junit:jar:4.12:compile
[INFO] |  \- args4j:args4j:jar:2.33:compile
[INFO] +- com.google.cloud:google-cloud-storage:jar:1.38.0:compile
[INFO] |  |  +- com.google.auth:google-auth-library-appengine:jar:0.7.0:compile
[INFO] |  \- com.google.cloud:google-cloud-core-http:jar:1.38.0:compile
[INFO] |     +- com.google.http-client:google-http-client-appengine:jar:1.23.0:compile
[INFO] |     +- com.google.api:gax-httpjson:jar:0.46.0:compile
[INFO] |     +- io.opencensus:opencensus-api:jar:0.15.0:compile
[INFO] |     \- io.opencensus:opencensus-contrib-http-util:jar:0.15.0:compile
[INFO] +- com.google.api:api-common:jar:1.6.0:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] +- joda-time:joda-time:jar:2.4:compile
[INFO] +- com.google.cloud.datastore:datastore-v1-protos:jar:1.3.0:compile
[INFO] |  \- com.google.api.grpc:grpc-google-common-protos:jar:0.1.0:compile
[INFO] +- com.google.apis:google-api-services-bigquery:jar:v2-rev355-1.22.0:compile
[INFO] +- com.google.protobuf:protobuf-java:jar:3.4.0:compile
[INFO] +- com.google.protobuf:protobuf-java-util:jar:3.3.1:compile
[INFO] +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] +- com.google.guava:guava:jar:20.0:compile
[INFO] +- org.json:json:jar:20160810:compile
[INFO] +- com.google.code.gson:gson:jar:2.7:compile
[INFO] +- org.apache.commons:commons-compress:jar:1.8.1:compile
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.8.8:compile
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.8.8:compile
[INFO] +- com.google.cloud:google-cloud-bigquery:jar:1.35.0:compile
[INFO] |  \- com.google.auto.value:auto-value:jar:1.4:compile
[INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.8.8:compile
[INFO] +- org.apache.avro:avro:jar:1.8.2:compile
[INFO] |  +- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
[INFO] |  +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile
[INFO] |  +- com.thoughtworks.paranamer:paranamer:jar:2.7:compile
[INFO] |  \- org.tukaani:xz:jar:1.5:compile
[INFO] +- com.google.api:gax:jar:1.30.0:compile
[INFO] |  \- org.threeten:threetenbp:jar:1.3.3:compile
[INFO] +- com.google.cloud:google-cloud-core:jar:1.38.0:compile
[INFO] |  \- com.google.api.grpc:proto-google-iam-v1:jar:0.12.0:compile
[INFO] \- com.google.apis:google-api-services-storage:jar:v1-rev97-1.22.0:compile

Activity

  1. garrettjonesgoogle commented on Aug 6, 2018

    @garrettjonesgoogle
    Contributor

    You won't be able to get com.google.cloud:google-cloud-storage:jar:1.38.0 to work with org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.2.0; the dependencies of beam 2.2.0 are quite old and have conflicts with newer google-cloud-storage versions. If you can use an older version of google-cloud-storage, version 1.2.0 should work.

  2. added
    api: storageIssues related to the Cloud Storage API.
    type: questionRequest for information or clarification. Not an issue.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Aug 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.dependenciespriority: p2Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Sponsor
    SponsoredKunjungi sekarang
    Promo