GeezerVison is showing github.com — APIs requires auth dependencies to work correctly · Issue #2192 · googleapis/google-cloud-java
APIs requires auth dependencies to work correctly #2192DescriptionUsing only com.google.cloud:google-cloud-errorreporting:0.20-alpha :
java.lang.NoClassDefFoundError: com/google/auth/ServiceAccountSigner
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at org.eclipse.jetty.webapp.WebAppClassLoader.findClass(WebAppClassLoader.java:549)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:475)
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:428)
at com.google.api.gax.core.GoogleCredentialsProvider.getCredentials(GoogleCredentialsProvider.java:54)
at com.google.api.gax.grpc.InstantiatingChannelProvider.createChannel(InstantiatingChannelProvider.java:125)
at com.google.api.gax.grpc.InstantiatingChannelProvider.getChannel(InstantiatingChannelProvider.java:116)
at com.google.api.gax.grpc.ChannelAndExecutor.create(ChannelAndExecutor.java:65)
at com.google.api.gax.grpc.ClientSettings.getChannelAndExecutor(ClientSettings.java:91)
at com.google.cloud.errorreporting.v1beta1.ReportErrorsServiceClient.<init>(ReportErrorsServiceClient.java:122)
Current workaround is to include :
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.auth</groupId>
<artifactId>google-auth-library-credentials</artifactId>
<version>0.6.1</version>
</dependency>
<dependency>
<groupId>com.google.auth</groupId>
<artifactId>google-auth-library-oauth2-http</artifactId>
<version>0.6.1</version>
</dependency>
</dependencies>
</dependencyManagement>Activitychanged the title [-]google-cloud-errorreporting requires auth dependencies for local testing[/-] [+]google-cloud-errorreporting requires auth dependencies to work correctly[/+] on Jun 27, 2017changed the title [-]google-cloud-errorreporting requires auth dependencies to work correctly[/-] [+]`google-cloud-errorreporting` requires auth dependencies to work correctly[/+] on Jun 27, 2017shinfan commented on Jun 27, 2017 @jabubake Is this a documentation issue or something needs to be changed in the pom? shinfan commented on Jun 27, 2017 This sounds like a severe issue I will mark this as P1 jabubake commented on Jun 27, 2017 ContributorAuthor More actions jabubake commented on Jun 27, 2017 ContributorAuthor More actions Same is true for google-cloud-language as well. jabubake commented on Jun 27, 2017 ContributorAuthor More actions changed the title [-]`google-cloud-errorreporting` requires auth dependencies to work correctly[/-] [+]APIs requires auth dependencies to work correctly[/+] on Jun 27, 2017jabubake commented on Jun 27, 2017 ContributorAuthor More actions gguuss commented on Jun 27, 2017 gguuss commented on Jul 6, 2017 Once this issue resolves, we'll need to update the language sample's POM. lesv commented on Jul 18, 2017 garrettjonesgoogle commented on Jul 25, 2017 Potentially we could subvert Maven's dependency choice by putting the google-auth-library-java dependency in google-cloud-core-grpc. We would have to experiment and see if that fixes the problem. neozwu commented on Jul 25, 2017 I'm working on migrating from maven to gradle. This would be something the migration should take care of. garrettjonesgoogle commented on Jul 25, 2017 Consumers of google-cloud-java using Maven will likely still hit this issue even if we are using Gradle. jabubake commented on Jul 26, 2017 ContributorAuthor More actions
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|