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 — DatastoreOptions.defaultInstance().service() fails in static methods. · Issue #721 · googleapis/google-cloud-java

DatastoreOptions.defaultInstance().service() fails in static methods. #721

New issue
Copy link
New issue
Copy link
Closed
Closed
DatastoreOptions.defaultInstance().service() fails in static methods.#721
Copy link
Assignees
unitydynamics

Description

@unitydynamics
unitydynamics
opened on Mar 7, 2016
Issue body actions
com.google.gcloud.datastore.DatastoreException: I/O error
    at com.google.gcloud.spi.DefaultDatastoreRpc.translate(DefaultDatastoreRpc.java:110)
    at com.google.gcloud.spi.DefaultDatastoreRpc.lookup(DefaultDatastoreRpc.java:147)
    at com.google.gcloud.datastore.DatastoreOptions.normalize(DatastoreOptions.java:128)
    at com.google.gcloud.datastore.DatastoreOptions.access$400(DatastoreOptions.java:36)
    at com.google.gcloud.datastore.DatastoreOptions$Builder.build(DatastoreOptions.java:89)
    at com.google.gcloud.datastore.DatastoreOptions.defaultInstance(DatastoreOptions.java:175)
    at com.industryopenings.seeker.driver.Driver.main(Driver.java:97)
Caused by: com.google.api.services.datastore.client.DatastoreException: I/O error
    at com.google.api.services.datastore.client.RemoteRpc.makeException(RemoteRpc.java:115)
    at com.google.api.services.datastore.client.RemoteRpc.call(RemoteRpc.java:83)
    at com.google.api.services.datastore.client.BaseDatastoreFactory$RemoteRpc.call(BaseDatastoreFactory.java:41)
    at com.google.api.services.datastore.client.Datastore.lookup(Datastore.java:93)
    at com.google.gcloud.spi.DefaultDatastoreRpc.lookup(DefaultDatastoreRpc.java:145)
    ... 5 more
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.ssl.Alerts.getSSLException(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
    at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
    at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
    at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
    at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
    at sun.security.ssl.Handshaker.processLoop(Unknown Source)
    at sun.security.ssl.Handshaker.process_record(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
    at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:77)
    at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:972)
    at com.google.auth.oauth2.UserCredentials.refreshAccessToken(UserCredentials.java:121)
    at com.google.auth.oauth2.OAuth2Credentials.refresh(OAuth2Credentials.java:97)
    at com.google.auth.oauth2.OAuth2Credentials.getRequestMetadata(OAuth2Credentials.java:74)
    at com.google.auth.http.HttpCredentialsAdapter.initialize(HttpCredentialsAdapter.java:65)
    at com.google.gcloud.ServiceOptions$1.initialize(ServiceOptions.java:533)
    at com.google.api.services.datastore.client.RemoteRpc.call(RemoteRpc.java:76)
    ... 8 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
    at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
    at sun.security.validator.Validator.validate(Unknown Source)
    at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
    at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
    at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
    ... 29 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)
    at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
    at java.security.cert.CertPathBuilder.build(Unknown Source)
    ... 35 more

Dropping DatastoreOptions.defaultInstance().service() into a simple main() method will yield the error. I'm on 0.1.4. Inside class instance methods it's working fine. I'm running outside of App Engine.

Activity

Next
  1. unitydynamics commented on Mar 7, 2016

    @unitydynamics
    unitydynamics
    on Mar 7, 2016
    Author
    More actions

    Sorry I've got an issue on my machine where multiple libraries are using the same authentication path. As I pin this one down further I may repost.

  2. unitydynamics
    closed this as completedon Mar 7, 2016
  3. JustinBeckwith
    assigned
    unitydynamics
    on Feb 1, 2021
  4. github-actions
    added 2 commits that reference this issue on Jun 23, 2022

    chore(main): release 2.2.2-SNAPSHOT (#721)

    4deed43

    build(deps): update dependency org.sonatype.plugins:nexus-staging-mav…

    eb76208
  5. github-actions
    added 3 commits that reference this issue on Jul 20, 2022

    build(deps): update dependency org.apache.maven.plugins:maven-deploy-…

    aaf1646

    chore(bazel): update protobuf to v3.21.3 (#721)

    ef89519

    chore(main): release 2.3.2 (#721)

    255362b
  6. github-actions
    added a commit that references this issue on Aug 25, 2022

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

    748a31b
  7. github-actions
    added 4 commits that reference this issue on Sep 15, 2022

    fix(java): exclude unused dependencies from gax-grpc (#721)

    b6b4e15

    chore(main): release 2.3.3 (#721)

    f978178

    chore(main): release 0.34.5-SNAPSHOT (#721)

    03b7ded

    chore(main): release 1.12.1 (#722)

    ce4a271
  8. github-actions
    added 2 commits that reference this issue on Sep 30, 2022

    deps: update dependency cachetools to v5 (#721)

    6b7938c

    deps: update dependency com.google.cloud:google-cloud-shared-dependen…

    84087b6
  9. 7 remaining items

  10. github-actions
    added a commit that references this issue on Oct 5, 2022

    chore(main): release 2.6.5 (#712)

    ce2b1bf
  11. suztomo
    added a commit that references this issue on Feb 1, 2023

    chore(main): release 2.13.1-SNAPSHOT (#721)

    eff46e4
  12. meltsufin
    added a commit that references this issue on Dec 22, 2025

    feat: add population of the SourceLocation from context (#721)

    1fa3a6e
  13. chingor13
    added a commit that references this issue on Jan 6, 2026

    build(deps): update dependency com.google.cloud:google-cloud-shared-c…

    e071ecc
  14. chingor13
    added a commit that references this issue on Feb 24, 2026

    chore(deps): update dependency com.google.appengine:appengine-api-1.0…

    0e49a4a
  15. suztomo
    added a commit that references this issue on Mar 11, 2026

    feat: add population of the SourceLocation from context (googleapis#721)

    51474e1
  16. chingor13
    added a commit that references this issue on Mar 12, 2026

    chore(deps): update dependency com.google.appengine:appengine-api-1.0…

    8df25fe
  17. suztomo
    added a commit that references this issue on Mar 23, 2026

    chore(main): release 2.5.9 (googleapis#721)

    7dfbd4e
  18. suztomo
    added 2 commits that reference this issue on Mar 30, 2026

    deps: update dependency com.google.apis:google-api-services-storage t…

    f7fcc11

    chore: release 0.123.14 (#728)

    8ea8dcb
  19. lqiu96
    added 2 commits that reference this issue on Apr 1, 2026

    deps: update dependency com.google.apis:google-api-services-storage t…

    2b6fc21

    chore: release 0.123.14 (#728)

    815ee2f
  20. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

    fix: allow retries for subscriber unary rpcs (#721)

    3f0a6d2

    fix: allow retries for subscriber unary rpcs (#721)

    05d7224
  21. benjaminp
    added a commit that references this issue on Jul 13, 2026

    feat: dynamic flow control (googleapis#721)

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

Metadata

Metadata

Assignees

  • @unitydynamics
    unitydynamics

Labels

No labels
No labels

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.