GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #2192

New issue
Copy link
New issue
Copy link
Closed
Closed
APIs requires auth dependencies to work correctly#2192
Copy link
Assignees
garrettjonesgoogle
Labels
api: clouderrorreportingIssues related to the Error Reporting API.api: dlpIssues related to the Sensitive Data Protection API.api: languageIssues related to the Cloud Natural Language API API.api: monitoringIssues related to the Cloud Monitoring API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.

Description

@jabubake
jabubake
opened on Jun 27, 2017
Issue body actions

Using 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>
Reacted by agsola

Activity

Next
  1. jabubake
    added
    api: clouderrorreportingIssues related to the Error Reporting API.
    on Jun 27, 2017
  2. jabubake
    changed the title [-]google-cloud-errorreporting requires auth dependencies for local testing[/-] [+]google-cloud-errorreporting requires auth dependencies to work correctly[/+] on Jun 27, 2017
  3. jabubake
    changed the title [-]google-cloud-errorreporting requires auth dependencies to work correctly[/-] [+]`google-cloud-errorreporting` requires auth dependencies to work correctly[/+] on Jun 27, 2017
  4. shinfan commented on Jun 27, 2017

    @shinfan
    shinfan
    on Jun 27, 2017
    Contributor
    More actions

    @jabubake Is this a documentation issue or something needs to be changed in the pom?

  5. shinfan
    added
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    on Jun 27, 2017
  6. shinfan commented on Jun 27, 2017

    @shinfan
    shinfan
    on Jun 27, 2017
    Contributor
    More actions

    This sounds like a severe issue I will mark this as P1

  7. jabubake commented on Jun 27, 2017

    @jabubake
    jabubake
    on Jun 27, 2017
    ContributorAuthor
    More actions

    in the pom.

  8. jabubake commented on Jun 27, 2017

    @jabubake
    jabubake
    on Jun 27, 2017
    ContributorAuthor
    More actions

    Same is true for google-cloud-language as well.

  9. jabubake
    added
    api: languageIssues related to the Cloud Natural Language API API.
    on Jun 27, 2017
  10. jabubake commented on Jun 27, 2017

    @jabubake
    jabubake
    on Jun 27, 2017
    ContributorAuthor
    More actions

    FYI, @gguuss @lesv

  11. jabubake
    changed the title [-]`google-cloud-errorreporting` requires auth dependencies to work correctly[/-] [+]APIs requires auth dependencies to work correctly[/+] on Jun 27, 2017
  12. jabubake commented on Jun 27, 2017

    @jabubake
    jabubake
    on Jun 27, 2017
    ContributorAuthor
    More actions

    @garrettjonesgoogle FYI

  13. gguuss commented on Jun 27, 2017

    @gguuss
    gguuss
    on Jun 27, 2017
    Contributor
    More actions

    I went ahead and put together a PR to include the auth dependency.

  14. michaelbausor
    self-assigned this
    on Jul 6, 2017
  15. gguuss commented on Jul 6, 2017

    @gguuss
    gguuss
    on Jul 6, 2017
    Contributor
    More actions

    Once this issue resolves, we'll need to update the language sample's POM.

  16. 4 remaining items

  17. garrettjonesgoogle
    self-assigned this
    on Jul 17, 2017
  18. lesv commented on Jul 18, 2017

    @lesv
    lesv
    on Jul 18, 2017
    Contributor
    More actions

    mvn dependency:tree -Dverbose
    https://maven.apache.org/plugins/maven-dependency-plugin/examples/resolving-conflicts-using-the-dependency-tree.html

    It sounds like something is listed twice and picking the wrong one.

  19. jabubake
    added
    api: monitoringIssues related to the Cloud Monitoring API.
    on Jul 25, 2017
  20. garrettjonesgoogle commented on Jul 25, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Jul 25, 2017
    Contributor
    More actions

    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.

  21. neozwu commented on Jul 25, 2017

    @neozwu
    neozwu
    on Jul 25, 2017
    Contributor
    More actions

    I'm working on migrating from maven to gradle. This would be something the migration should take care of.

  22. garrettjonesgoogle commented on Jul 25, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Jul 25, 2017
    Contributor
    More actions

    Consumers of google-cloud-java using Maven will likely still hit this issue even if we are using Gradle.

  23. jabubake commented on Jul 26, 2017

    @jabubake
    jabubake
    on Jul 26, 2017
    ContributorAuthor
    More actions

    @neozwu : +1 to what @garrettjonesgoogle just said.

  24. garrettjonesgoogle
    closed this as completedin #2284on Jul 27, 2017
  25. chingor13
    added 2 commits that reference this issue on Feb 20, 2026

    feat: add enable connection pool to sample (#2192)

    c2642de

    chore(main): release 2.41.0 (#2203)

    8a3026c
  26. suztomo
    added a commit that references this issue on Mar 23, 2026

    deps: update dependency com.google.cloud:google-cloud-spanner to v6.9…

    c5b3c1c
  27. meltsufin
    added 3 commits that reference this issue on Apr 29, 2026

    chore: use composite action (#2192)

    0cc5a74

    chore: use composite action (#2192)

    f76965c

    chore(deps): update dependency com.google.cloud:google-cloud-firestor…

    386b873
  28. benjaminp
    added a commit that references this issue on Jul 13, 2026

    samples: Add AuthorizedView examples (googleapis#2192)

    99be1ca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @garrettjonesgoogle
    garrettjonesgoogle

Labels

api: clouderrorreportingIssues related to the Error Reporting API.api: dlpIssues related to the Sensitive Data Protection API.api: languageIssues related to the Cloud Natural Language API API.api: monitoringIssues related to the Cloud Monitoring API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.