Title: gax conflict dependency · Issue #3105 · googleapis/google-cloud-java · GitHub
Open Graph Title: gax conflict dependency · Issue #3105 · googleapis/google-cloud-java
X Title: gax conflict dependency · Issue #3105 · googleapis/google-cloud-java
Description: Hi, I'm trying to use google cloud storage client along with apache beam/dataflow. Though I'm having some runtime dependency conflicts problems with java-gax library instanciating gcs client. Caused by: java.lang.ClassNotFoundException: ...
Open Graph Description: Hi, I'm trying to use google cloud storage client along with apache beam/dataflow. Though I'm having some runtime dependency conflicts problems with java-gax library instanciating gcs client. Cause...
X Description: Hi, I'm trying to use google cloud storage client along with apache beam/dataflow. Though I'm having some runtime dependency conflicts problems with java-gax library instanciating gcs clien...
Opengraph URL: https://github.com/googleapis/google-cloud-java/issues/3105
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"gax conflict dependency","articleBody":"Hi,\r\n\r\nI'm trying to use google cloud storage client along with apache beam/dataflow.\r\nThough I'm having some runtime dependency conflicts problems with java-gax library instanciating gcs client.\r\n```\r\nCaused by: java.lang.ClassNotFoundException: com.google.api.gax.retrying.ExceptionRetryAlgorithm\r\n at java.net.URLClassLoader.findClass (URLClassLoader.java:381)\r\n at java.lang.ClassLoader.loadClass (ClassLoader.java:424)\r\n at java.lang.ClassLoader.loadClass (ClassLoader.java:357)\r\n at java.lang.ClassLoader.defineClass1 (Native Method)\r\n at java.lang.ClassLoader.defineClass (ClassLoader.java:760)\r\n at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:142)\r\n at java.net.URLClassLoader.defineClass (URLClassLoader.java:467)\r\n at java.net.URLClassLoader.access$100 (URLClassLoader.java:73)\r\n at java.net.URLClassLoader$1.run (URLClassLoader.java:368)\r\n at java.net.URLClassLoader$1.run (URLClassLoader.java:362)\r\n at java.security.AccessController.doPrivileged (Native Method)\r\n at java.net.URLClassLoader.findClass (URLClassLoader.java:361)\r\n at java.lang.ClassLoader.loadClass (ClassLoader.java:424)\r\n at java.lang.ClassLoader.loadClass (ClassLoader.java:357)\r\n at com.google.cloud.BaseService.\u003cclinit\u003e (BaseService.java:48)\r\n at com.google.cloud.storage.StorageOptions$DefaultStorageFactory.create (StorageOptions.java:44)\r\n at com.google.cloud.storage.StorageOptions$DefaultStorageFactory.create (StorageOptions.java:38)\r\n at com.google.cloud.ServiceOptions.getService (ServiceOptions.java:426)\r\n````\r\nBelow the code calling storage service\r\n```\r\nStorage storage = StorageOptions.getDefaultInstance().getService();\r\n```\r\n\r\nI've tried adding multiple versions of java-gax, excluding it from apache beam dependencies.\r\n\r\n```\r\n \u003cdependency\u003e\r\n \u003cgroupId\u003eorg.apache.beam\u003c/groupId\u003e\r\n \u003cartifactId\u003ebeam-sdks-java-io-google-cloud-platform\u003c/artifactId\u003e\r\n \u003cversion\u003e${beam.version}\u003c/version\u003e\r\n \u003cexclusions\u003e\r\n \u003cexclusion\u003e\r\n \u003cgroupId\u003ecom.google.api\u003c/groupId\u003e\r\n \u003cartifactId\u003egax\u003c/artifactId\u003e\r\n \u003c/exclusion\u003e\r\n \u003c/exclusions\u003e\r\n \u003c/dependency\u003e\r\n....\r\n \u003cdependency\u003e\r\n \u003cgroupId\u003ecom.google.api\u003c/groupId\u003e\r\n \u003cartifactId\u003egax\u003c/artifactId\u003e\r\n \u003cversion\u003e1.21.0\u003c/version\u003e\r\n \u003c/dependency\u003e\r\n \u003cdependency\u003e\r\n \u003cgroupId\u003ecom.google.cloud\u003c/groupId\u003e\r\n \u003cartifactId\u003egoogle-cloud-storage\u003c/artifactId\u003e\r\n \u003cversion\u003e1.24.0\u003c/version\u003e\r\n \u003cexclusions\u003e\r\n \u003cexclusion\u003e\r\n \u003cgroupId\u003ecom.google.cloud\u003c/groupId\u003e\r\n \u003cartifactId\u003egoogle-cloud-core\u003c/artifactId\u003e\r\n \u003c/exclusion\u003e\r\n \u003cexclusion\u003e\r\n \u003cgroupId\u003ecom.google.api\u003c/groupId\u003e\r\n \u003cartifactId\u003egax-httpjson\u003c/artifactId\u003e\r\n \u003c/exclusion\u003e\r\n \u003cexclusion\u003e\r\n \u003cgroupId\u003ecom.google.auth\u003c/groupId\u003e\r\n \u003cartifactId\u003egoogle-auth-library-credentials\u003c/artifactId\u003e\r\n \u003c/exclusion\u003e\r\n \u003c/exclusions\u003e\r\n \u003c/dependency\u003e\r\n```\r\nBut still having those dependencies issues :(.\r\n\r\nBelow dependency tree:\r\n```\r\n[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ word-count-beam ---\r\n[INFO] org.example:word-count-beam:jar:0.1\r\n[INFO] +- org.apache.beam:beam-sdks-java-core:jar:2.4.0:compile\r\n[INFO] | +- com.google.code.findbugs:jsr305:jar:3.0.1:compile\r\n[INFO] | +- com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1:compile\r\n[INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.8.9:compile\r\n[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.8.9:compile\r\n[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.8.9:compile\r\n[INFO] | +- org.apache.avro:avro:jar:1.8.2:compile\r\n[INFO] | | +- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile\r\n[INFO] | | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile\r\n[INFO] | | +- com.thoughtworks.paranamer:paranamer:jar:2.7:compile\r\n[INFO] | | +- org.apache.commons:commons-compress:jar:1.8.1:compile\r\n[INFO] | | \\- org.tukaani:xz:jar:1.5:compile\r\n[INFO] | \\- org.xerial.snappy:snappy-java:jar:1.1.4:compile\r\n[INFO] +- org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:2.4.0:compile\r\n[INFO] | +- org.apache.beam:beam-sdks-java-extensions-google-cloud-platform-core:jar:2.4.0:compile\r\n[INFO] | | +- com.google.cloud.bigdataoss:gcsio:jar:1.4.5:compile\r\n[INFO] | | +- com.google.apis:google-api-services-cloudresourcemanager:jar:v1-rev6-1.22.0:compile\r\n[INFO] | | \\- com.google.apis:google-api-services-storage:jar:v1-rev71-1.22.0:compile\r\n[INFO] | +- org.apache.beam:beam-sdks-java-extensions-protobuf:jar:2.4.0:compile\r\n[INFO] | +- io.grpc:grpc-core:jar:1.2.0:compile\r\n[INFO] | | +- com.google.errorprone:error_prone_annotations:jar:2.0.11:compile\r\n[INFO] | | +- io.grpc:grpc-context:jar:1.2.0:compile\r\n[INFO] | | \\- com.google.instrumentation:instrumentation-api:jar:0.3.0:compile\r\n[INFO] | +- com.google.apis:google-api-services-bigquery:jar:v2-rev374-1.22.0:compile\r\n[INFO] | +- com.google.api:gax-grpc:jar:0.20.0:compile\r\n[INFO] | | +- io.grpc:grpc-protobuf:jar:1.2.0:compile\r\n[INFO] | | \\- com.google.auto.value:auto-value:jar:1.2:compile\r\n[INFO] | +- com.google.cloud:google-cloud-core-grpc:jar:1.2.0:compile\r\n[INFO] | | \\- com.google.protobuf:protobuf-java-util:jar:3.2.0:compile\r\n[INFO] | | \\- com.google.code.gson:gson:jar:2.7:compile\r\n[INFO] | +- com.google.apis:google-api-services-pubsub:jar:v1-rev10-1.22.0:compile\r\n[INFO] | +- com.google.api.grpc:grpc-google-cloud-pubsub-v1:jar:0.1.18:compile\r\n[INFO] | +- com.google.api.grpc:proto-google-cloud-pubsub-v1:jar:0.1.18:compile\r\n[INFO] | | \\- com.google.api.grpc:proto-google-iam-v1:jar:0.1.18:compile\r\n[INFO] | +- com.google.cloud.bigdataoss:util:jar:1.4.5:compile\r\n[INFO] | | +- com.google.api-client:google-api-client-java6:jar:1.20.0:compile\r\n[INFO] | | +- com.google.api-client:google-api-client-jackson2:jar:1.20.0:compile\r\n[INFO] | | \\- com.google.oauth-client:google-oauth-client-java6:jar:1.20.0:compile\r\n[INFO] | +- com.google.cloud.datastore:datastore-v1-proto-client:jar:1.4.0:compile\r\n[INFO] | | +- com.google.http-client:google-http-client-protobuf:jar:1.20.0:compile\r\n[INFO] | | \\- com.google.http-client:google-http-client-jackson:jar:1.20.0:compile\r\n[INFO] | +- com.google.cloud.datastore:datastore-v1-protos:jar:1.3.0:compile\r\n[INFO] | | \\- com.google.api.grpc:grpc-google-common-protos:jar:0.1.0:compile\r\n[INFO] | +- io.grpc:grpc-auth:jar:1.2.0:compile\r\n[INFO] | +- io.grpc:grpc-netty:jar:1.2.0:compile\r\n[INFO] | | +- io.netty:netty-codec-http2:jar:4.1.8.Final:compile (version selected from constraint [4.1.8.Final,4.1.8.Final])\r\n[INFO] | | | \\- io.netty:netty-codec-http:jar:4.1.8.Final:compile\r\n[INFO] | | \\- io.netty:netty-handler-proxy:jar:4.1.8.Final:compile\r\n[INFO] | | \\- io.netty:netty-codec-socks:jar:4.1.8.Final:compile\r\n[INFO] | +- io.netty:netty-handler:jar:4.1.8.Final:compile\r\n[INFO] | | +- io.netty:netty-buffer:jar:4.1.8.Final:compile\r\n[INFO] | | | \\- io.netty:netty-common:jar:4.1.8.Final:compile\r\n[INFO] | | +- io.netty:netty-transport:jar:4.1.8.Final:compile\r\n[INFO] | | | \\- io.netty:netty-resolver:jar:4.1.8.Final:compile\r\n[INFO] | | \\- io.netty:netty-codec:jar:4.1.8.Final:compile\r\n[INFO] | +- io.grpc:grpc-stub:jar:1.2.0:compile\r\n[INFO] | +- io.grpc:grpc-all:jar:1.2.0:compile\r\n[INFO] | | +- io.grpc:grpc-okhttp:jar:1.2.0:compile\r\n[INFO] | | | +- com.squareup.okhttp:okhttp:jar:2.5.0:compile\r\n[INFO] | | | \\- com.squareup.okio:okio:jar:1.6.0:compile\r\n[INFO] | | +- io.grpc:grpc-protobuf-lite:jar:1.2.0:compile\r\n[INFO] | | \\- io.grpc:grpc-protobuf-nano:jar:1.2.0:compile\r\n[INFO] | | \\- com.google.protobuf.nano:protobuf-javanano:jar:3.0.0-alpha-5:compile\r\n[INFO] | +- com.google.cloud:google-cloud-core:jar:1.0.2:compile\r\n[INFO] | | \\- org.json:json:jar:20160810:compile\r\n[INFO] | +- com.google.cloud:google-cloud-spanner:jar:0.20.0b-beta:compile\r\n[INFO] | | +- com.google.api.grpc:proto-google-cloud-spanner-v1:jar:0.1.11b:compile\r\n[INFO] | | +- com.google.api.grpc:proto-google-cloud-spanner-admin-instance-v1:jar:0.1.11:compile\r\n[INFO] | | +- com.google.api.grpc:grpc-google-cloud-spanner-v1:jar:0.1.11b:compile\r\n[INFO] | | +- com.google.api.grpc:grpc-google-cloud-spanner-admin-database-v1:jar:0.1.11:compile\r\n[INFO] | | +- com.google.api.grpc:grpc-google-cloud-spanner-admin-instance-v1:jar:0.1.11:compile\r\n[INFO] | | \\- com.google.api.grpc:grpc-google-longrunning-v1:jar:0.1.11:compile\r\n[INFO] | | \\- com.google.api.grpc:proto-google-longrunning-v1:jar:0.1.11:compile\r\n[INFO] | +- com.google.cloud.bigtable:bigtable-protos:jar:1.0.0-pre3:compile\r\n[INFO] | +- com.google.cloud.bigtable:bigtable-client-core:jar:1.0.0:compile\r\n[INFO] | | +- commons-logging:commons-logging:jar:1.2:compile\r\n[INFO] | | +- com.google.auth:google-auth-library-appengine:jar:0.7.0:compile\r\n[INFO] | | +- io.opencensus:opencensus-contrib-grpc-util:jar:0.7.0:compile\r\n[INFO] | | \\- io.dropwizard.metrics:metrics-core:jar:3.1.2:compile\r\n[INFO] | +- com.google.http-client:google-http-client-jackson2:jar:1.22.0:compile\r\n[INFO] | +- com.google.auth:google-auth-library-credentials:jar:0.7.1:compile\r\n[INFO] | +- com.google.auth:google-auth-library-oauth2-http:jar:0.7.1:compile\r\n[INFO] | +- com.google.protobuf:protobuf-java:jar:3.2.0:compile\r\n[INFO] | +- io.netty:netty-tcnative-boringssl-static:jar:1.1.33.Fork26:compile\r\n[INFO] | +- com.google.api.grpc:proto-google-cloud-spanner-admin-database-v1:jar:0.1.9:compile\r\n[INFO] | \\- com.google.api.grpc:proto-google-common-protos:jar:0.1.9:compile\r\n[INFO] +- org.apache.beam:beam-examples-java:jar:2.4.0:compile\r\n[INFO] | \\- com.google.oauth-client:google-oauth-client:jar:1.22.0:compile\r\n[INFO] +- com.google.api-client:google-api-client:jar:1.22.0:compile\r\n[INFO] +- com.google.http-client:google-http-client:jar:1.22.0:compile\r\n[INFO] | \\- org.apache.httpcomponents:httpclient:jar:4.0.1:compile\r\n[INFO] | +- org.apache.httpcomponents:httpcore:jar:4.0.1:compile\r\n[INFO] | \\- commons-codec:commons-codec:jar:1.3:compile\r\n[INFO] +- joda-time:joda-time:jar:2.4:compile\r\n[INFO] +- com.google.guava:guava:jar:20.0:compile\r\n[INFO] +- org.slf4j:slf4j-api:jar:1.7.25:compile\r\n[INFO] +- org.slf4j:slf4j-jdk14:jar:1.7.25:runtime\r\n[INFO] +- org.hamcrest:hamcrest-core:jar:1.3:compile\r\n[INFO] +- org.hamcrest:hamcrest-library:jar:1.3:compile\r\n[INFO] +- junit:junit:jar:4.12:compile\r\n[INFO] +- org.apache.beam:beam-runners-direct-java:jar:2.4.0:runtime\r\n[INFO] | \\- org.apache.beam:beam-runners-local-java-core:jar:2.4.0:runtime\r\n[INFO] +- org.mockito:mockito-core:jar:1.9.5:test\r\n[INFO] | \\- org.objenesis:objenesis:jar:1.0:test\r\n[INFO] +- com.google.api:gax:jar:1.21.0:compile\r\n[INFO] | +- org.threeten:threetenbp:jar:1.3.3:compile\r\n[INFO] | \\- com.google.api:api-common:jar:1.5.0:compile\r\n[INFO] +- com.google.cloud:google-cloud-storage:jar:1.24.0:compile\r\n[INFO] | \\- com.google.cloud:google-cloud-core-http:jar:1.24.0:compile\r\n[INFO] | +- com.google.http-client:google-http-client-appengine:jar:1.23.0:compile\r\n[INFO] | +- io.opencensus:opencensus-api:jar:0.11.1:compile\r\n[INFO] | \\- io.opencensus:opencensus-contrib-http-util:jar:0.11.1:compile\r\n[INFO] \\- org.ahocorasick:ahocorasick:jar:0.4.0:compile\r\n```\r\n\r\nCould you help us with this issue?\r\n\r\nThanks!","author":{"url":"https://github.com/lboudard","@type":"Person","name":"lboudard"},"datePublished":"2018-03-29T08:34:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3105/google-cloud-java/issues/3105"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b24876ee-81b0-146e-a46d-73f8e494225f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B04A:ABD08:73DA0:A553B:6A4D01A1 |
| html-safe-nonce | 4f0ed4a34cb5ceca00abbe38421ebd845a918db2d77a4041acf8f0f363d38d62 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDRBOkFCRDA4OjczREEwOkE1NTNCOjZBNEQwMUExIiwidmlzaXRvcl9pZCI6Ijc2NDUyOTUwMDI3NTUzMzQ1NjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e260132925ac0fe6bbf50c6ed9a81af29c55641d68d0976e37ea6dc677164450 |
| hovercard-subject-tag | issue:309665650 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-java/3105/issue_layout |
| twitter:image | https://opengraph.githubassets.com/efb67d0b3ad1bd8ec3371c255b2ec8e2e2f10756aa0302a8518f52c391fafd6b/googleapis/google-cloud-java/issues/3105 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/efb67d0b3ad1bd8ec3371c255b2ec8e2e2f10756aa0302a8518f52c391fafd6b/googleapis/google-cloud-java/issues/3105 |
| og:image:alt | Hi, I'm trying to use google cloud storage client along with apache beam/dataflow. Though I'm having some runtime dependency conflicts problems with java-gax library instanciating gcs client. Cause... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lboudard |
| hostname | github.com |
| expected-hostname | github.com |
| None | 31e4db13a9e20081f2fac78f441659a6576e582bbb15e153f9c7fb6473aa29f5 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-java git https://github.com/googleapis/google-cloud-java.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 26181278 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 26181278 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width