You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
I used a service account authentication, through an environment variable.
Using this pom configuration:
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 :
Any hint to solve this ?