googleapis / google-cloud-java

Google Cloud Client Library for Java
https://cloud.google.com/java/docs/reference
Apache License 2.0
1.89k stars 1.06k forks source link

Google-cloud-language: No such Method Error on gax grpc #2499

Closed chenav closed 6 years ago

chenav commented 6 years ago

I used a service account authentication, through an environment variable.

Using this pom configuration:

<dependency>
            <groupId>com.google.api</groupId>
            <artifactId>gax</artifactId>
            <version>1.8.1</version>
        </dependency>
 <dependency>
         <groupId>com.google.api</groupId>
          <artifactId>gax-grpc</artifactId>
          <version>0.25.1</version>
</dependency>    
<dependency>
            <groupId>com.google.cloud</groupId>
            <artifactId>google-cloud-language</artifactId>
         <version>0.25.0-beta</version>
</dependency>

I had to manually add gax libs, because dependencies were not resolved by the google-cloud-language pom.

I get this error, at run time, trying to execute the example from the Google Natural Language description page :

Root Exception stack trace:
java.lang.NoSuchMethodError: com.google.api.gax.grpc.InstantiatingChannelProvider$Builder.setEndpoint(Ljava/lang/String;)Lcom/google/api/gax/grpc/InstantiatingChannelProvider$Builder;
    at com.google.cloud.language.v1.LanguageServiceSettings.defaultGrpcChannelProviderBuilder(LanguageServiceSettings.java:151)
    at com.google.cloud.language.v1.LanguageServiceSettings.defaultGrpcTransportProviderBuilder(LanguageServiceSettings.java:158)
    at com.google.cloud.language.v1.LanguageServiceSettings.defaultTransportProvider(LanguageServiceSettings.java:162)
    at com.google.cloud.language.v1.LanguageServiceSettings$Builder.createDefault(LanguageServiceSettings.java:291)
    at com.google.cloud.language.v1.LanguageServiceSettings$Builder.access$000(LanguageServiceSettings.java:219)
    at com.google.cloud.language.v1.LanguageServiceSettings.newBuilder(LanguageServiceSettings.java:192)
    at com.google.cloud.language.v1.LanguageServiceClient.create(LanguageServiceClient.java:109)

Any hint to solve this ?

neozwu commented 6 years ago

Hi @chenav, can you share the output of "mvn dependency:tree" ?

chenav commented 6 years ago

Hi @neozwu , there you go:

[INFO] +- org.springframework:spring-jdbc:jar:4.1.6.RELEASE:provided
[INFO] |  +- org.springframework:spring-beans:jar:4.1.6.RELEASE:provided
[INFO] |  \- org.springframework:spring-core:jar:4.1.6.RELEASE:provided
[INFO] +- org.springframework:spring-tx:jar:4.1.6.RELEASE:provided
[INFO] +- org.springframework:spring-web:jar:4.1.6.RELEASE:provided
[INFO] |  +- org.springframework:spring-aop:jar:4.1.6.RELEASE:provided
[INFO] |  |  \- aopalliance:aopalliance:jar:1.0:provided
[INFO] |  \- org.springframework:spring-context:jar:4.1.6.RELEASE:provided
[INFO] |     \- org.springframework:spring-expression:jar:4.1.6.RELEASE:provided
[INFO] +- org.springframework:spring-context-support:jar:4.1.6.RELEASE:provided
[INFO] +- commons-dbcp:commons-dbcp:jar:1.4:compile
[INFO] |  \- commons-pool:commons-pool:jar:1.5.4:compile
[INFO] +- org.aspectj:aspectjweaver:jar:1.6.10:compile
[INFO] +- org.apache.xmlgraphics:fop:jar:1.1:compile
[INFO] |  +- org.apache.xmlgraphics:xmlgraphics-commons:jar:1.5:compile
[INFO] |  +- org.apache.xmlgraphics:batik-svg-dom:jar:1.7:compile
[INFO] |  |  +- org.apache.xmlgraphics:batik-anim:jar:1.7:compile
[INFO] |  |  +- org.apache.xmlgraphics:batik-css:jar:1.7:compile
[INFO] |  |  +- org.apache.xmlgraphics:batik-dom:jar:1.7:compile
[INFO] |  |  +- org.apache.xmlgraphics:batik-parser:jar:1.7:compile
[INFO] |  |  +- org.apache.xmlgraphics:batik-util:jar:1.7:compile
[INFO] |  |  +- xml-apis:xml-apis:jar:1.3.04:compile
[INFO] |  |  \- xml-apis:xml-apis-ext:jar:1.3.04:compile
[INFO] |  +- org.apache.xmlgraphics:batik-bridge:jar:1.7:compile
[INFO] |  |  +- org.apache.xmlgraphics:batik-script:jar:1.7:compile
[INFO] |  |  |  \- org.apache.xmlgraphics:batik-js:jar:1.7:compile
[INFO] |  |  \- org.apache.xmlgraphics:batik-xml:jar:1.7:compile
[INFO] |  +- org.apache.xmlgraphics:batik-awt-util:jar:1.7:compile
[INFO] |  +- org.apache.xmlgraphics:batik-gvt:jar:1.7:compile
[INFO] |  +- org.apache.xmlgraphics:batik-transcoder:jar:1.7:compile
[INFO] |  |  \- org.apache.xmlgraphics:batik-svggen:jar:1.7:compile
[INFO] |  +- org.apache.xmlgraphics:batik-extension:jar:1.7:compile
[INFO] |  \- org.apache.xmlgraphics:batik-ext:jar:1.7:compile
[INFO] +- org.apache.avalon.framework:avalon-framework-impl:jar:4.3.1:compile
[INFO] +- org.apache.avalon.framework:avalon-framework-api:jar:4.3.1:compile
[INFO] +- org.freemarker:freemarker:jar:2.3.19:compile
[INFO] +- org.bouncycastle:bcprov-jdk16:jar:1.46:compile
[INFO] +- org.mule:mule-core:jar:3.8.0:provided
[INFO] |  +- org.mule.extensions:mule-extensions-api:jar:1.0.0-alpha-1:provided
[INFO] |  +- commons-beanutils:commons-beanutils:jar:1.9.2:compile
[INFO] |  +- com.github.stephenc.eaio-uuid:uuid:jar:3.4.0:provided
[INFO] |  |  \- com.github.stephenc.eaio-grabbag:grabbag:jar:1.8.1:provided
[INFO] |  +- commons-cli:commons-cli:jar:1.2:compile
[INFO] |  +- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] |  +- commons-lang:commons-lang:jar:2.4:compile
[INFO] |  +- org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:provided
[INFO] |  +- org.apache.geronimo.specs:geronimo-j2ee-connector_1.5_spec:jar:2.0.0:provided
[INFO] |  +- javax.inject:javax.inject:jar:1:provided
[INFO] |  +- com.lmax:disruptor:jar:3.3.0:provided
[INFO] |  +- org.apache.logging.log4j:log4j-api:jar:2.5:compile
[INFO] |  +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.5:provided
[INFO] |  +- org.apache.logging.log4j:log4j-1.2-api:jar:2.5:provided
[INFO] |  +- org.apache.logging.log4j:log4j-jcl:jar:2.5:provided
[INFO] |  +- org.slf4j:jcl-over-slf4j:jar:1.7.7:provided
[INFO] |  +- org.apache.logging.log4j:log4j-jul:jar:2.5:provided
[INFO] |  +- asm:asm:jar:3.1:provided
[INFO] |  +- asm:asm-commons:jar:3.1:provided
[INFO] |  |  \- asm:asm-tree:jar:3.1:provided
[INFO] |  +- org.mule.mvel:mule-mvel2:jar:2.1.9-MULE-010:provided
[INFO] |  +- org.jgrapht:jgrapht-jdk1.5:jar:0.7.3:provided
[INFO] |  +- org.mule.common:mule-common:jar:3.8.0:provided
[INFO] |  |  +- org.apache.xmlbeans:xmlbeans:jar:2.3.0:compile
[INFO] |  |  +- javax.xml.stream:stax-api:jar:1.0-2:provided
[INFO] |  |  \- org.antlr:antlr-runtime:jar:3.5:provided
[INFO] |  |     \- org.antlr:stringtemplate:jar:3.2.1:provided
[INFO] |  +- com.google.guava:guava:jar:18.0:compile
[INFO] |  \- org.reflections:reflections:jar:0.9.9:provided
[INFO] +- org.mule.modules:mule-module-spring-config:jar:3.8.0:provided
[INFO] |  +- org.mule.modules:mule-module-annotations:jar:3.8.0:provided
[INFO] |  |  \- cglib:cglib-nodep:jar:2.2:provided
[INFO] |  +- cglib:cglib:jar:3.2.2:provided
[INFO] |  |  +- org.ow2.asm:asm:jar:5.0.4:compile
[INFO] |  |  \- org.apache.ant:ant:jar:1.9.6:provided
[INFO] |  |     \- org.apache.ant:ant-launcher:jar:1.9.6:provided
[INFO] |  +- dom4j:dom4j:jar:1.6.1:provided
[INFO] |  \- jaxen:jaxen:jar:1.1.1:provided
[INFO] +- javax.xml.bind:jaxb-api:jar:2.2.7:compile
[INFO] +- org.mule.transports:mule-transport-http:jar:3.8.0:provided
[INFO] |  +- org.mule.transports:mule-transport-ssl:jar:3.8.0:provided
[INFO] |  |  \- org.mule.transports:mule-transport-tcp:jar:3.8.0:provided
[INFO] |  +- commons-codec:commons-codec:jar:1.9:compile
[INFO] |  +- commons-httpclient:commons-httpclient:jar:3.1:provided
[INFO] |  +- org.apache.tomcat:coyote:jar:6.0.44:provided
[INFO] |  |  \- org.apache.tomcat:juli:jar:6.0.44:provided
[INFO] |  +- org.samba.jcifs:jcifs:jar:1.3.3:provided
[INFO] |  +- joda-time:joda-time:jar:2.9.1:compile
[INFO] |  \- org.mule.modules:mule-module-http:jar:3.8.0:provided
[INFO] |     +- org.apache.geronimo.specs:geronimo-servlet_3.0_spec:jar:1.0:provided
[INFO] |     +- org.glassfish.grizzly:grizzly-framework:jar:2.3.24:provided
[INFO] |     +- org.glassfish.grizzly:grizzly-http-server:jar:2.3.24:provided
[INFO] |     |  \- org.glassfish.grizzly:grizzly-http:jar:2.3.24:provided
[INFO] |     +- org.glassfish.grizzly:connection-pool:jar:2.3.24:provided
[INFO] |     +- com.ning:async-http-client:jar:1.9.37:provided
[INFO] |     \- org.glassfish.grizzly:grizzly-websockets:jar:2.3.24:provided
[INFO] +- org.mule.transports:mule-transport-file:jar:3.8.0:provided
[INFO] +- org.mule.transports:mule-transport-vm:jar:3.8.0:provided
[INFO] +- org.mule.transports:mule-transport-email:jar:3.8.0:provided
[INFO] |  \- javax.mail:mail:jar:1.4.3:provided
[INFO] +- org.mule.transports:mule-transport-servlet:jar:3.8.0:provided
[INFO] +- org.mule.transports:mule-transport-jms:jar:3.8.0:provided
[INFO] |  +- org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1:provided
[INFO] |  \- org.springframework:spring-jms:jar:4.1.6.RELEASE:provided
[INFO] |     \- org.springframework:spring-messaging:jar:4.1.6.RELEASE:provided
[INFO] +- org.mule.transports:mule-transport-quartz:jar:3.8.0:compile
[INFO] |  +- org.quartz-scheduler:quartz:jar:2.2.1:compile
[INFO] |  \- com.mchange:c3p0:jar:0.9.5:compile
[INFO] |     \- com.mchange:mchange-commons-java:jar:0.2.9:compile
[INFO] +- org.mule.modules:mule-module-xml:jar:3.8.0:provided
[INFO] |  +- commons-jxpath:commons-jxpath:jar:1.3:provided
[INFO] |  +- com.thoughtworks.xstream:xstream:jar:1.4.7:provided
[INFO] |  |  \- xmlpull:xmlpull:jar:1.1.3.1:provided
[INFO] |  +- xpp3:xpp3_min:jar:1.1.3.4.O:provided
[INFO] |  +- org.codehaus.woodstox:woodstox-core-asl:jar:4.4.1:compile
[INFO] |  +- net.java.dev.stax-utils:stax-utils:jar:20080702:provided
[INFO] |  +- net.sf.saxon:Saxon-HE:jar:9.6.0-7:provided
[INFO] |  +- net.sf.saxon:Saxon-HE:jar:xqj:9.6.0-7:provided
[INFO] |  \- javax.xml.xquery:xqj-api:jar:1.0:provided
[INFO] +- org.mule.modules:mule-module-client:jar:3.8.0:provided
[INFO] +- org.mule.modules:mule-module-sxc:jar:3.8.0:provided
[INFO] |  +- com.envoisolutions.sxc:sxc-xpath:jar:0.7.3:provided
[INFO] |  +- com.envoisolutions.sxc:sxc-runtime:jar:0.7.3:provided
[INFO] |  \- com.envoisolutions.sxc:sxc-core:jar:0.7.3:provided
[INFO] |     \- com.sun.xml.bind:jaxb-xjc:jar:2.1.2:provided
[INFO] |        \- com.sun.xml.bind:jaxb-impl:jar:2.1.2:provided
[INFO] +- commons-fileupload:commons-fileupload:jar:1.2.2:compile
[INFO] +- commons-io:commons-io:jar:1.3.1:compile
[INFO] +- javax.servlet:servlet-api:jar:2.5:provided
[INFO] +- org.clojure:clojure:jar:1.8.0:compile
[INFO] +- uap-clj:uap-clj:jar:1.3.1:compile
[INFO] |  +- russellwhitaker:immuconf:jar:0.3.0:compile
[INFO] |  |  +- org.clojure:clojurescript:jar:1.9.293:compile
[INFO] |  |  |  +- com.google.javascript:closure-compiler-unshaded:jar:v20160911:compile
[INFO] |  |  |  |  +- com.google.javascript:closure-compiler-externs:jar:v20160911:compile
[INFO] |  |  |  |  +- args4j:args4j:jar:2.0.26:compile
[INFO] |  |  |  |  \- com.google.jsinterop:jsinterop-annotations:jar:1.0.0:compile
[INFO] |  |  |  +- org.clojure:google-closure-library:jar:0.0-20160609-f42b4a24:compile
[INFO] |  |  |  |  \- org.clojure:google-closure-library-third-party:jar:0.0-20160609-f42b4a24:compile
[INFO] |  |  |  +- org.clojure:data.json:jar:0.2.6:compile
[INFO] |  |  |  +- org.mozilla:rhino:jar:1.7R5:compile
[INFO] |  |  |  \- org.clojure:tools.reader:jar:1.0.0-beta3:compile
[INFO] |  |  +- org.clojure:tools.logging:jar:0.3.1:compile
[INFO] |  |  +- environ:environ:jar:1.1.0:compile
[INFO] |  |  \- com.taoensso:timbre:jar:4.8.0:compile
[INFO] |  |     +- com.taoensso:encore:jar:2.88.0:compile
[INFO] |  |     |  \- com.taoensso:truss:jar:1.3.6:compile
[INFO] |  |     \- io.aviso:pretty:jar:0.1.33:compile
[INFO] |  \- circleci:clj-yaml:jar:0.5.5:compile
[INFO] |     +- org.yaml:snakeyaml:jar:1.13:compile
[INFO] |     \- org.flatland:ordered:jar:1.5.3:compile
[INFO] |        \- org.flatland:useful:jar:0.9.0:compile
[INFO] |           \- org.clojure:tools.macro:jar:0.1.1:compile
[INFO] +- org.facebook4j:facebook4j-core:jar:2.4.10:compile
[INFO] +- com.willisju.linkedinj:linkedin-j-core:jar:1.1:compile
[INFO] |  \- net.sf.kxml:kxml2:jar:2.3.0:compile
[INFO] +- oauth.signpost:signpost-core:jar:1.2.1.2:provided
[INFO] +- org.mule.modules:mule-module-json:jar:3.8.0:provided
[INFO] |  +- org.mule.modules:mule-module-validation:jar:3.8.0:provided
[INFO] |  |  +- commons-validator:commons-validator:jar:1.4.0:provided
[INFO] |  |  |  \- commons-digester:commons-digester:jar:1.8:provided
[INFO] |  |  \- org.mule.modules:mule-module-extensions-spring-support:jar:3.8.0:provided
[INFO] |  +- org.codehaus.jackson:jackson-core-asl:jar:1.9.11:compile
[INFO] |  +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.11:provided
[INFO] |  +- org.codehaus.jackson:jackson-xc:jar:1.9.11:provided
[INFO] |  +- de.odysseus.staxon:staxon:jar:1.2:provided
[INFO] |  +- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
[INFO] |  +- com.github.fge:json-schema-validator:jar:2.2.6:provided
[INFO] |  |  +- com.googlecode.libphonenumber:libphonenumber:jar:6.2:provided
[INFO] |  |  +- com.github.fge:json-schema-core:jar:1.2.5:provided
[INFO] |  |  |  +- com.github.fge:uri-template:jar:0.9:provided
[INFO] |  |  |  |  \- com.github.fge:msg-simple:jar:1.1:provided
[INFO] |  |  |  |     \- com.github.fge:btf:jar:1.2:provided
[INFO] |  |  |  \- com.github.fge:jackson-coreutils:jar:1.8:provided
[INFO] |  |  +- javax.mail:mailapi:jar:1.4.3:provided
[INFO] |  |  \- net.sf.jopt-simple:jopt-simple:jar:4.6:provided
[INFO] |  \- com.fasterxml.jackson.core:jackson-databind:jar:2.4.3:compile
[INFO] |     \- com.fasterxml.jackson.core:jackson-annotations:jar:2.4.0:compile
[INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.4.3:compile
[INFO] |  \- com.fasterxml.jackson.core:jackson-core:jar:2.4.3:compile
[INFO] +- org.horrabin.horrorss:horrorss:jar:2.2.0:compile
[INFO] +- org.sparta:sparta:jar:1.0:compile
[INFO] +- org.jsoup:jsoup:jar:1.7.3:compile
[INFO] +- com.google.code.gson:gson:jar:2.2.4:compile
[INFO] +- com.jcraft:jsch:jar:0.1.54:compile
[INFO] +- nl.martijndwars:web-push:jar:2.0.0:compile
[INFO] |  +- org.json:json:jar:20160212:compile
[INFO] |  +- org.bitbucket.b_c:jose4j:jar:0.5.2:compile
[INFO] |  +- org.bouncycastle:bcprov-jdk15on:jar:1.54:compile
[INFO] |  \- org.apache.httpcomponents:fluent-hc:jar:4.5.2:compile
[INFO] +- com.opencsv:opencsv:jar:3.8:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.6.6:compile
[INFO] +- org.postgresql:postgresql:jar:9.4.1208:compile
[INFO] +- commons-logging:commons-logging:jar:1.2:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.3:compile
[INFO] |  \- org.apache.httpcomponents:httpcore:jar:4.4.6:compile
[INFO] +- org.apache.commons:commons-collections4:jar:4.1:compile
[INFO] +- org.apache.commons:commons-lang3:jar:3.5:compile
[INFO] +- org.apache.commons:commons-jcs-jcache:jar:2.1:compile
[INFO] |  \- org.apache.commons:commons-jcs-core:jar:2.1:compile
[INFO] +- com.drewnoakes:metadata-extractor:jar:2.6.2:compile
[INFO] |  +- com.adobe.xmp:xmpcore:jar:5.1.2:compile
[INFO] |  \- xerces:xercesImpl:jar:2.8.1:compile
[INFO] +- com.google.cloud:google-cloud-storage:jar:0.8.1-beta:compile
[INFO] |  +- com.google.cloud:google-cloud-core:jar:0.8.1-alpha:compile
[INFO] |  |  +- com.google.http-client:google-http-client:jar:1.21.0:compile
[INFO] |  |  +- com.google.oauth-client:google-oauth-client:jar:1.21.0:compile
[INFO] |  |  +- com.google.api-client:google-api-client-appengine:jar:1.21.0:compile
[INFO] |  |  |  +- com.google.oauth-client:google-oauth-client-appengine:jar:1.21.0:compile
[INFO] |  |  |  |  \- com.google.oauth-client:google-oauth-client-servlet:jar:1.21.0:compile
[INFO] |  |  |  |     \- com.google.http-client:google-http-client-jdo:jar:1.21.0:compile
[INFO] |  |  |  +- com.google.api-client:google-api-client-servlet:jar:1.21.0:compile
[INFO] |  |  |  |  \- javax.jdo:jdo2-api:jar:2.3-eb:compile
[INFO] |  |  |  |     \- javax.transaction:transaction-api:jar:1.1:compile
[INFO] |  |  |  \- com.google.http-client:google-http-client-appengine:jar:1.21.0:compile
[INFO] |  |  +- com.google.http-client:google-http-client-jackson:jar:1.21.0:compile
[INFO] |  |  +- com.google.protobuf:protobuf-java:jar:3.0.0:compile
[INFO] |  |  +- com.google.api.grpc:grpc-google-common-protos:jar:0.1.5:compile
[INFO] |  |  \- com.google.api.grpc:grpc-google-iam-v1:jar:0.1.5:compile
[INFO] |  \- com.google.apis:google-api-services-storage:jar:v1-rev85-1.22.0:compile
[INFO] +- com.google.cloud:google-cloud-bigquery:jar:0.8.1-beta:compile
[INFO] |  \- com.google.apis:google-api-services-bigquery:jar:v2-rev330-1.22.0:compile
[INFO] +- com.google.apis:google-api-services-urlshortener:jar:v1-rev43-1.21.0:compile
[INFO] |  \- com.google.api-client:google-api-client:jar:1.21.0:compile
[INFO] |     +- com.google.http-client:google-http-client-jackson2:jar:1.21.0:compile
[INFO] |     \- com.google.guava:guava-jdk5:jar:17.0:compile
[INFO] +- com.google.apis:google-api-services-pubsub:jar:v1-rev20-1.22.0:compile
[INFO] +- com.google.api:gax:jar:1.8.1:compile
[INFO] |  +- com.google.auto.value:auto-value:jar:1.2:compile
[INFO] |  +- com.google.code.findbugs:jsr305:jar:3.0.0:compile
[INFO] |  +- org.threeten:threetenbp:jar:1.3.3:compile
[INFO] |  +- com.google.auth:google-auth-library-oauth2-http:jar:0.8.0:compile
[INFO] |  \- com.google.api:api-common:jar:1.1.0:compile
[INFO] +- com.google.api:gax-grpc:jar:0.25.1:compile
[INFO] |  +- io.grpc:grpc-netty:jar:1.6.1:compile
[INFO] |  |  +- io.grpc:grpc-core:jar:1.6.1:compile (version selected from constraint [1.6.1,1.6.1])
[INFO] |  |  |  +- com.google.errorprone:error_prone_annotations:jar:2.0.19:compile
[INFO] |  |  |  +- com.google.instrumentation:instrumentation-api:jar:0.4.3:compile
[INFO] |  |  |  \- io.opencensus:opencensus-api:jar:0.5.1:compile
[INFO] |  |  +- io.netty:netty-codec-http2:jar:4.1.14.Final:compile (version selected from constraint [4.1.14.Final,4.1.14.Final])
[INFO] |  |  |  +- io.netty:netty-codec-http:jar:4.1.14.Final:compile
[INFO] |  |  |  |  \- io.netty:netty-codec:jar:4.1.14.Final:compile
[INFO] |  |  |  \- io.netty:netty-handler:jar:4.1.14.Final:compile
[INFO] |  |  |     \- io.netty:netty-buffer:jar:4.1.14.Final:compile
[INFO] |  |  |        \- io.netty:netty-common:jar:4.1.14.Final:compile
[INFO] |  |  \- io.netty:netty-handler-proxy:jar:4.1.14.Final:compile
[INFO] |  |     +- io.netty:netty-transport:jar:4.1.14.Final:compile
[INFO] |  |     |  \- io.netty:netty-resolver:jar:4.1.14.Final:compile
[INFO] |  |     \- io.netty:netty-codec-socks:jar:4.1.14.Final:compile
[INFO] |  +- io.grpc:grpc-stub:jar:1.6.1:compile
[INFO] |  +- io.grpc:grpc-auth:jar:1.6.1:compile
[INFO] |  +- io.grpc:grpc-protobuf:jar:1.6.1:compile
[INFO] |  |  +- com.google.protobuf:protobuf-java-util:jar:3.3.1:compile
[INFO] |  |  \- io.grpc:grpc-protobuf-lite:jar:1.6.1:compile
[INFO] |  +- com.google.auth:google-auth-library-credentials:jar:0.8.0:compile
[INFO] |  \- com.google.api.grpc:proto-google-common-protos:jar:0.1.13:compile
[INFO] +- com.google.cloud:google-cloud-language:jar:0.25.0-beta:compile
[INFO] |  +- io.netty:netty-tcnative-boringssl-static:jar:2.0.3.Final:compile
[INFO] |  +- com.google.cloud:google-cloud-core-grpc:jar:1.7.0:compile
[INFO] |  |  \- io.grpc:grpc-context:jar:1.6.1:compile
[INFO] |  +- com.google.api.grpc:proto-google-cloud-language-v1:jar:0.1.20:compile
[INFO] |  \- com.google.api.grpc:proto-google-cloud-language-v1beta2:jar:0.1.20:compile
[INFO] +- com.restfb:restfb:jar:2.0.0-rc.3:compile
[INFO] +- org.projectlombok:lombok:jar:1.16.6:compile
[INFO] +- eu.bitwalker:UserAgentUtils:jar:1.20:compile
[INFO] +- org.imgscalr:imgscalr-lib:jar:4.2:compile
[INFO] +- org.apache.tika:tika-java7:jar:1.11:compile
[INFO] |  +- org.apache.tika:tika-core:jar:1.11:compile
[INFO] |  \- org.apache.tika:tika-parsers:jar:1.11:compile
[INFO] |     +- org.gagravarr:vorbis-java-tika:jar:0.6:compile
[INFO] |     +- com.healthmarketscience.jackcess:jackcess:jar:2.1.2:compile
[INFO] |     +- com.healthmarketscience.jackcess:jackcess-encrypt:jar:2.1.1:compile
[INFO] |     +- net.sourceforge.jmatio:jmatio:jar:1.0:compile
[INFO] |     +- org.apache.james:apache-mime4j-core:jar:0.7.2:compile
[INFO] |     +- org.apache.james:apache-mime4j-dom:jar:0.7.2:compile
[INFO] |     +- org.apache.commons:commons-compress:jar:1.10:compile
[INFO] |     +- org.tukaani:xz:jar:1.5:compile
[INFO] |     +- org.apache.pdfbox:pdfbox:jar:1.8.10:compile
[INFO] |     |  +- org.apache.pdfbox:fontbox:jar:1.8.10:compile
[INFO] |     |  \- org.apache.pdfbox:jempbox:jar:1.8.10:compile
[INFO] |     +- org.bouncycastle:bcmail-jdk15on:jar:1.52:compile
[INFO] |     |  \- org.bouncycastle:bcpkix-jdk15on:jar:1.52:compile
[INFO] |     +- org.apache.poi:poi:jar:3.13:compile
[INFO] |     +- org.apache.poi:poi-scratchpad:jar:3.13:compile
[INFO] |     +- org.apache.poi:poi-ooxml:jar:3.13:compile
[INFO] |     |  \- org.apache.poi:poi-ooxml-schemas:jar:3.13:compile
[INFO] |     +- org.ccil.cowan.tagsoup:tagsoup:jar:1.2.1:compile
[INFO] |     +- com.googlecode.mp4parser:isoparser:jar:1.0.2:compile
[INFO] |     |  \- org.aspectj:aspectjrt:jar:1.8.0:compile
[INFO] |     +- de.l3s.boilerpipe:boilerpipe:jar:1.1.0:compile
[INFO] |     +- rome:rome:jar:1.0:compile
[INFO] |     |  \- jdom:jdom:jar:1.0:compile
[INFO] |     +- org.gagravarr:vorbis-java-core:jar:0.6:compile
[INFO] |     +- com.googlecode.juniversalchardet:juniversalchardet:jar:1.0.3:compile
[INFO] |     +- org.codelibs:jhighlight:jar:1.0.2:compile
[INFO] |     +- com.pff:java-libpst:jar:0.8.1:compile
[INFO] |     +- com.github.junrar:junrar:jar:0.7:compile
[INFO] |     |  +- commons-logging:commons-logging-api:jar:1.1:compile
[INFO] |     |  \- org.apache.commons:commons-vfs2:jar:2.0:compile
[INFO] |     |     +- org.apache.maven.scm:maven-scm-api:jar:1.4:compile
[INFO] |     |     |  \- org.codehaus.plexus:plexus-utils:jar:1.5.6:compile
[INFO] |     |     \- org.apache.maven.scm:maven-scm-provider-svnexe:jar:1.4:compile
[INFO] |     |        +- org.apache.maven.scm:maven-scm-provider-svn-commons:jar:1.4:compile
[INFO] |     |        \- regexp:regexp:jar:1.3:compile
[INFO] |     +- org.apache.cxf:cxf-rt-rs-client:jar:3.0.3:compile
[INFO] |     |  +- org.apache.cxf:cxf-rt-transports-http:jar:3.0.3:compile
[INFO] |     |  +- org.apache.cxf:cxf-core:jar:3.0.3:compile
[INFO] |     |  |  \- org.apache.ws.xmlschema:xmlschema-core:jar:2.1.0:compile
[INFO] |     |  \- org.apache.cxf:cxf-rt-frontend-jaxrs:jar:3.0.3:compile
[INFO] |     |     +- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile
[INFO] |     |     \- javax.annotation:javax.annotation-api:jar:1.2:compile
[INFO] |     +- org.apache.opennlp:opennlp-tools:jar:1.5.3:compile
[INFO] |     |  +- org.apache.opennlp:opennlp-maxent:jar:3.0.3:compile
[INFO] |     |  \- net.sf.jwordnet:jwnl:jar:1.3.3:compile
[INFO] |     +- org.apache.commons:commons-exec:jar:1.3:compile
[INFO] |     +- com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[INFO] |     +- edu.ucar:netcdf4:jar:4.5.5:compile
[INFO] |     |  +- net.jcip:jcip-annotations:jar:1.0:compile
[INFO] |     |  \- net.java.dev.jna:jna:jar:4.1.0:compile
[INFO] |     +- edu.ucar:grib:jar:4.5.5:compile
[INFO] |     |  +- org.jdom:jdom2:jar:2.0.4:compile
[INFO] |     |  +- edu.ucar:jj2000:jar:5.2:compile
[INFO] |     |  \- org.itadaki:bzip2:jar:0.9.1:compile
[INFO] |     +- edu.ucar:cdm:jar:4.5.5:compile
[INFO] |     |  +- edu.ucar:udunits:jar:4.5.5:compile
[INFO] |     |  +- net.sf.ehcache:ehcache-core:jar:2.6.2:compile
[INFO] |     |  \- com.beust:jcommander:jar:1.35:compile
[INFO] |     +- edu.ucar:httpservices:jar:4.5.5:compile
[INFO] |     +- org.apache.commons:commons-csv:jar:1.0:compile
[INFO] |     +- org.apache.sis.core:sis-utility:jar:0.5:compile
[INFO] |     +- org.apache.sis.storage:sis-netcdf:jar:0.5:compile
[INFO] |     |  +- org.apache.sis.storage:sis-storage:jar:0.5:compile
[INFO] |     |  \- org.apache.sis.core:sis-referencing:jar:0.5:compile
[INFO] |     +- org.apache.sis.core:sis-metadata:jar:0.5:compile
[INFO] |     \- org.opengis:geoapi:jar:3.0.0:compile
[INFO] |        \- javax.measure:jsr-275:jar:0.9.3:compile
[INFO] +- org.apache.logging.log4j:log4j-core:jar:2.5:compile
[INFO] +- org.apache.logging.log4j:log4j-web:jar:2.5:compile
[INFO] +- org.mule.tests:mule-tests-functional:jar:3.8.0:test
[INFO] |  +- org.mule.modules:mule-module-extensions-support:jar:3.8.0:provided
[INFO] |  |  \- org.mule.extensions:mule-extensions-annotations:jar:1.0.0-alpha-1:provided
[INFO] |  +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] |  +- commons-net:commons-net:jar:2.2:test
[INFO] |  +- org.apache.ftpserver:ftpserver-core:jar:1.0.6:test
[INFO] |  |  \- org.apache.mina:mina-core:jar:2.0.4:test
[INFO] |  +- org.apache.ftpserver:ftplet-api:jar:1.0.6:test
[INFO] |  +- org.apache.sshd:sshd-core:jar:1.0.0:test
[INFO] |  +- commons-dbutils:commons-dbutils:jar:1.2:test
[INFO] |  +- org.mule:mule-core:test-jar:tests:3.8.0:test
[INFO] |  \- org.mockito:mockito-core:jar:1.9.5:test
[INFO] |     \- org.objenesis:objenesis:jar:1.0:test
[INFO] +- mockobjects:mockobjects-core:jar:0.09:test
[INFO] +- junit:junit:jar:4.9:test
[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.1:test
[INFO] \- net.sourceforge.htmlunit:htmlunit:jar:2.24:compile
[INFO]    +- xalan:xalan:jar:2.7.2:compile
[INFO]    |  \- xalan:serializer:jar:2.7.2:compile
[INFO]    +- org.apache.httpcomponents:httpmime:jar:4.5.2:compile
[INFO]    +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.23:compile
[INFO]    +- net.sourceforge.htmlunit:neko-htmlunit:jar:2.24:compile
[INFO]    +- net.sourceforge.cssparser:cssparser:jar:0.9.21:compile
[INFO]    |  \- org.w3c.css:sac:jar:1.3:compile
[INFO]    \- org.eclipse.jetty.websocket:websocket-client:jar:9.2.20.v20161216:compile
[INFO]       +- org.eclipse.jetty:jetty-util:jar:9.2.20.v20161216:compile
[INFO]       +- org.eclipse.jetty:jetty-io:jar:9.2.20.v20161216:compile
[INFO]       \- org.eclipse.jetty.websocket:websocket-common:jar:9.2.20.v20161216:compile
[INFO]          \- org.eclipse.jetty.websocket:websocket-api:jar:9.2.20.v20161216:compile
jabubake commented 6 years ago

@chenav noticed you are using the google-cloud-storage library as well. Can you upgrade to the latest version for both libraries and try again ? It looks like that is the reason for your conflict.

garrettjonesgoogle commented 6 years ago

I also see a really old version of google-cloud-bigquery in the list that should be updated.

chenav commented 6 years ago

@jabubake : I upgraded the google-cloud-storage client: no problem. @garrettjonesgoogle : the upgrade of the bigquery client is problematic. Well, we are using google-cloud-bigquery 0.8.1-beta fin production. It may seem "really old" to you, but it was released in January 2017, which is not "that" old for a productive system ! :p

Anyways, I tried to upgrade to the last version in dev, i.e. google-cloud-bigquery 0.26.0-beta . It broke my Data Layer big time, as the QueryRequest model changed. I'll try to sort this out and I'll come back to you on the cloud-language problem.

It seems to be a dependency problem.

garrettjonesgoogle commented 6 years ago

I'm very sorry to hear that the breaking changes in BigQuery affected you! That's the unfortunate consequence of it still being -beta. Once it gets promoted to 1.0.0+, we will no longer break callers when we push new versions of google-cloud-java.

chenav commented 6 years ago

Hello @garrettjonesgoogle ,

I updated all the google-cloud client lib and my data layer objects, with the last class model for accessing BigQuery. Now, everything works with the NLP libraries. It was indeed a dependency problem.

This issue may be closed, but some warnings could be provided to dev ;)

Thanks for the support !

C.

garrettjonesgoogle commented 6 years ago

We do have a warning under https://github.com/GoogleCloudPlatform/google-cloud-java#versioning :

"Any release versioned 0.x.y is subject to backwards incompatible changes at any time."

Let us know if there are other places where this needs to be made known so that you would have noticed it.

pongad commented 6 years ago

Looks like the issue has been resolved. I'll close this.

KandasamySurya commented 5 years ago

Incorporating a method to connect to spanner db in java .. am frequently getting com.google.api.gax.core.GaxProperties.getLibraryVersion(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/String errors. Please help