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 — More distinct exception handling when getting GAE ProjectID in ServiceOptions · Issue #1666 · googleapis/google-cloud-java

More distinct exception handling when getting GAE ProjectID in ServiceOptions #1666

New issue
Copy link
New issue
Copy link
Closed
Closed
More distinct exception handling when getting GAE ProjectID in ServiceOptions#1666
Copy link
Assignees
garrettjonesgoogle
Labels
api: corepriority: p2Moderately-important priority. Fix may not be included in next release.running on app enginetype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@aschults
aschults
opened on Feb 27, 2017
Issue body actions

https://github.com/GoogleCloudPlatform/google-cloud-java/blob/e5f90467fe7490759482e6a8bc62b1246318a7f0/google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java#L437

In case of quota exhaustion, Exception is thrown from RPC. Catch doesn't distinguish and thus assumes it's not running on GAE.

Would it be sufficient to catch ClassNotFoundException and related (e.g. NoSuchMethodException) to detect if we're on GAE? Like this, RPC-related exceptions (from within the called method) could bubble up properly.

Activity

  1. garrettjonesgoogle
    added
    api: core
    running on app engine
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Mar 3, 2017
  2. garrettjonesgoogle commented on Mar 14, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Mar 14, 2017
    Contributor
    More actions

    @shinfan can you see if this is resolved with your latest change?

  3. garrettjonesgoogle
    assigned
    shinfan
    on Mar 14, 2017
  4. garrettjonesgoogle
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Jun 2, 2017
  5. garrettjonesgoogle commented on Jul 18, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Jul 18, 2017
    Contributor
    More actions

    @shinfan ping - I suspect this is fixed and I'd like to close it out if that is true.

  6. shinfan commented on Jul 18, 2017

    @shinfan
    shinfan
    on Jul 18, 2017
    Contributor
    More actions

    No this is not resolved. I will send a separate fix.

  7. garrettjonesgoogle
    unassigned
    shinfan
    on Aug 10, 2017
  8. anthmgoogle
    assigned
    garrettjonesgoogle
    on Nov 9, 2017
  9. pongad commented on Jan 25, 2018

    @pongad
    pongad
    on Jan 25, 2018
    Contributor
    More actions

    I believe this is closed by #2304. At the very least, we're not dynamically loading classes anymore.

  10. pongad
    closed this as completedon Jan 25, 2018
  11. meltsufin
    added a commit that references this issue on Dec 22, 2025

    test(deps): update dependency com.google.truth:truth to v1.4.4 (#1666)

    04c5435
  12. chingor13
    added a commit that references this issue on Jan 22, 2026

    deps: update dependency org.easymock:easymock to v5.5.0 (#1666)

    0333b07
  13. chingor13
    added a commit that references this issue on Feb 24, 2026

    docs: Update README with client-side CAB instructions (#1607) (#1666)

    2996297
  14. suztomo
    added a commit that references this issue on Mar 11, 2026

    test(deps): update dependency com.google.truth:truth to v1.4.4 (googl…

    f6c0786
  15. chingor13
    added a commit that references this issue on Mar 12, 2026

    docs: Update README with client-side CAB instructions (#1607) (#1666)

    ad5e182
  16. suztomo
    added a commit that references this issue on Mar 23, 2026

    chore(main): release 2.20.1-SNAPSHOT (googleapis#1666)

    eb50286
  17. meltsufin
    added 6 commits that reference this issue on Apr 29, 2026

    deps: update dependency org.junit.vintage:junit-vintage-engine to v5.…

    d8712a3

    chore(main): release 1.123.19 (#1661)

    8c13f5e

    chore(main): release 1.133.0 (#2206)

    a3b6539

    deps: update dependency org.junit.vintage:junit-vintage-engine to v5.…

    47f8a34

    chore(main): release 1.123.19 (#1661)

    668e561

    chore(main): release 1.133.0 (#2206)

    1180af9
  18. benjaminp
    added a commit that references this issue on Jul 13, 2026

    test(fix): Run tests in different processes and pull metrics for 10 m…

    67b5a80
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: corepriority: p2Moderately-important priority. Fix may not be included in next release.running on app enginetype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

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.