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 — [bigquery-jdbc] BigQuery JDBC driver not fully supporting proxies · Issue #13494 · googleapis/google-cloud-java

[bigquery-jdbc] BigQuery JDBC driver not fully supporting proxies #13494

New issue
Copy link
New issue
Copy link
Closed
#13539
Closed
[bigquery-jdbc] BigQuery JDBC driver not fully supporting proxies#13494
#13539
Copy link
Assignees
logachev
Labels
bigquery-jdbc

Description

@rooneyp
rooneyp
opened on Jun 16, 2026
Issue body actions

Issue Details

On moving from the an old Simba driver to the new big Query JDBC driver (v1.0.0), the new driver is failing to perform auth due to server timeouts. This is due to the JDBC driver not using the supplied proxyPort, proxyPort values for the authentication code.

This problem is on this stack
at com.google.auth.oauth2.ServiceAccountCredentials.<init>(ServiceAccountCredentials.java:128) at com.google.auth.oauth2.ServiceAccountCredentials.fromPkcs8(ServiceAccountCredentials.java:447) at com.google.auth.oauth2.ServiceAccountCredentials.fromJson(ServiceAccountCredentials.java:207) at com.google.auth.oauth2.ServiceAccountCredentials.fromStream(ServiceAccountCredentials.java:493) at com.google.auth.oauth2.ServiceAccountCredentials.fromStream(ServiceAccountCredentials.java:467) at com.google.cloud.bigquery.jdbc.BigQueryJdbcOAuthUtility.getGoogleServiceAccountCredentials(BigQueryJdbcOAuthUtility.java:365) at com.google.cloud.bigquery.jdbc.BigQueryJdbcOAuthUtility.getCredentials(BigQueryJdbcOAuthUtility.java:275) at com.google.cloud.bigquery.jdbc.BigQueryConnection.<init>(BigQueryConnection.java:266) at com.google.cloud.bigquery.jdbc.BigQueryDriver.connect(BigQueryDriver.java:170)

Proxy properties from the JDBC connection string are not used for authentication.

Additionally, we cannot inject own HttpTransport implementation (supporting proxies) using the java.util.ServiceLoader.load
Note that the ’firstNotNull’ usage will always favour the hardcoded: com.google.auth.oauth2.OAuth2Utils#HTTP_TRANSPORT_FACTORY version.
See: https://github.com/googleapis/google-auth-library-java/blob/main/oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java#L140

Example

Our jdbc connection string is
jdbc:bigquery://[https://www.googleapis.com/bigquery/v2:443;](https://www.googleapis.com/bigquery/v2:443;ProjectId=fiery-journal-xxx) ProjectId=fiery-journal-xxx; OAuthType=0; OAuthServiceAcctEmail=[[email protected]](mailto:[email protected]); OAuthPvtKey={ "Private_key_id":"", "Project_id":"fiery-journal-xxx", "client_email":"[[email protected]](mailto:[email protected])", "private_key":"-----BEGIN PRIVATE KEY-----\nREDACTEDn-----END PRIVATE KEY-----", "Type":"service_account", "client_id":""}; ProxyHost=proxy; ProxyPort=80; EnableSession=1; Location=europe-west2; Timeout=300

Environment

bigquery jdbc v 1.0.0

Dependencies

jdbc v 1.0.0

GCP libraries-bom: 26.83.0

Reproducer

Required: Provide a reproducer and the steps needed to reproduce this issue locally. If unable to provide a reproducer, please provide code snippets to help reproduce the issue. One of the two sections below MUST be filled out.

  1. A reproducer is the quickest method to resolve this issue. It could be a test case or a sample application. It is easier for us to troubleshoot the problem and to verify the solution.

Steps to reproduce:

Example

  1. Enable Speech API
  2. Upload a .mp4 file to GCS
  3. ...
  4. See {ERROR}

If unable to provide a reproducer, please provide a reason: ...

  1. Provide as many code snippets as possible:

Example

try (InstancesClient instancesClient = InstancesClient.create()) {
  ...
}

Logs and Stack Trace

Caused by: java.net.SocketTimeoutException: Connect timed out
at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:551)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
at java.base/java.net.Socket.connect(Socket.java:633)
at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304)
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:178)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:533)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:638)
at java.base/sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:266)
at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:380)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:193)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1258)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1144)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1467)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1438)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:220)
at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:113)
at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:84)
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1012)
at com.google.auth.oauth2.ServiceAccountCredentials.refreshAccessToken(ServiceAccountCredentials.java:574)

Behavior

This happened with we moved from our old Simba bigquery jdbc driver to the new v1.0.0 bigquery jdbc driver.

We DO NOT want to set a jvm system property for proxies, as that will affect other behaviour in our service

Activity

  1. blakeli0
    assigned
    logachev
    on Jun 22, 2026
  2. blakeli0
    changed the title [-]BigQuery JDBC driver not fully supporting proxies[/-] [+][bigquery-jdbc] BigQuery JDBC driver not fully supporting proxies[/+] on Jun 22, 2026
  3. blakeli0
    added
    bigquery-jdbc
    on Jun 22, 2026
  4. logachev commented on Jun 24, 2026

    @logachev
    logachev
    on Jun 24, 2026
    Contributor
    More actions

    Thank you @rooneyp for reporting this.

    We'll merge the fix PR before next release (tentative this/next week). Also, we'll be running full integration test suite in Dockerized proxy environment. I confirmed that if we had it earlier, this issue would be discovered earlier.

    Reacted by rooneyp
  5. keshavdandeva
    added a commit that references this issue on Jun 25, 2026

    fix(bigquery-jdbc): propagate connection proxy settings to auth libra…

    87dda5d
  6. keshavdandeva
    linked a pull request that will close this issuefix(bigquery-jdbc): propagate connection proxy settings to auth library #13539on Jun 25, 2026
  7. keshavdandeva
    closed this as completedon Jun 25, 2026
  8. lqiu96
    added a commit that references this issue on Jun 30, 2026

    fix(bigquery-jdbc): propagate connection proxy settings to auth libra…

    c560160
  9. timveil
    added a commit that references this issue on Jul 30, 2026

    feat(transport): route BigQuery and OAuth traffic through an HTTP pro…

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

Metadata

Metadata

Assignees

  • @logachev
    logachev

Labels

bigquery-jdbc

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.