Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDBC Exception #1034

Closed
wise-coders opened this issue Oct 28, 2022 · 5 comments · Fixed by #1052
Closed

JDBC Exception #1034

wise-coders opened this issue Oct 28, 2022 · 5 comments · Fixed by #1052
Assignees
Labels
api: spanner Issues related to the googleapis/java-spanner-jdbc API.

Comments

@wise-coders
Copy link

When connecting, I got this exception:

java.lang.NoClassDefFoundError: com/google/api/gax/rpc/UnavailableException at com.google.cloud.spanner.connection.ConnectionOptions.(ConnectionOptions.java:156)

I am using the latest driver version 2.7.12, the single jar with dependencies. What can be wrong?

@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/java-spanner-jdbc API. label Oct 28, 2022
@liym080156
Copy link

I uploaded my err images
image

image

image

@liym080156
Copy link

image

@rajatbhatta
Copy link
Contributor

@liym080156 @wise-coders : I was able to reproduce the issue locally, and am currently working on a fix for this.

@rajatbhatta
Copy link
Contributor

Update: We've started getting this issue from v2.7.5 (all previous versions worked just fine). Checking if something changed around that time.

gcf-merge-on-green bot pushed a commit that referenced this issue Nov 17, 2022
This PR reverts scope change of `gax` dependency in https://togithub.com/googleapis/java-spanner-jdbc/pull/918/files.

We now set the scope to `runtime`.

Fixes #1034
@rajatbhatta
Copy link
Contributor

@liym080156 @wise-coders : This issue has been fixed in the latest version (2.8.0). Please feel free to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/java-spanner-jdbc API.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants