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

gax-2.56.0 IllegalArgumentException when determining the Protobuf bundle version within Spring boot app #3314

Closed
MikeRocke opened this issue Oct 25, 2024 · 3 comments
Assignees
Labels
priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@MikeRocke
Copy link

Environment details

  1. OS type and version: OSX and Linux
  2. Java version: OpenJDK 21
  3. artifact version(s): 2.56.0

Steps to reproduce

We have upgraded our spring boot app's dependency of
google-cloud-storage
from version 2.43.2 to 2.44.0
which has brought in gax-2.56.0, which now fails when our uber-jar attempts to start up

Code example

        return StorageOptions.newBuilder()
                .build()
                .getService();

Stack trace

Caused by: java.lang.IllegalArgumentException: URI is not hierarchical
        at java.base/java.io.File.<init>(File.java:420)
        at com.google.api.gax.core.GaxProperties.getBundleVersion(GaxProperties.java:142)
        at com.google.api.gax.core.GaxProperties.<clinit>(GaxProperties.java:53)
        at com.google.api.gax.rpc.ApiClientHeaderProvider$Builder.<init>(ApiClientHeaderProvider.java:146)
        at com.google.api.gax.rpc.ApiClientHeaderProvider.newBuilder(ApiClientHeaderProvider.java:117)
        at com.google.cloud.http.HttpTransportOptions.getInternalHeaderProviderBuilder(HttpTransportOptions.java:216)
        at com.google.cloud.http.HttpTransportOptions.getHttpRequestInitializer(HttpTransportOptions.java:155)
        at com.google.cloud.storage.spi.v1.HttpStorageRpc.<init>(HttpStorageRpc.java:127)
        at com.google.cloud.storage.spi.v1.HttpStorageRpc.<init>(HttpStorageRpc.java:121)
        at com.google.cloud.storage.HttpStorageOptions$HttpStorageRpcFactory.create(HttpStorageOptions.java:392)
        at com.google.cloud.storage.HttpStorageOptions$HttpStorageRpcFactory.create(HttpStorageOptions.java:366)
        at com.google.cloud.ServiceOptions.getRpc(ServiceOptions.java:602)
        at com.google.cloud.storage.HttpStorageOptions.getStorageRpcV1(HttpStorageOptions.java:84)
        at com.google.cloud.storage.StorageImpl.<init>(StorageImpl.java:129)
        at com.google.cloud.storage.HttpStorageOptions$HttpStorageFactory.create(HttpStorageOptions.java:345)
        at com.google.cloud.storage.HttpStorageOptions$HttpStorageFactory.create(HttpStorageOptions.java:316)
        at com.google.cloud.ServiceOptions.getService(ServiceOptions.java:582)

Hope this helps and many thanks in advance!

@burkedavison
Copy link
Member

We are working to resolve this with a high priority.

@MikeRocke
Copy link
Author

Thank you so much for the prompt action! Please shout if we can do anything to support!

@blakeli0 blakeli0 added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. labels Oct 25, 2024
ldetmer added a commit that referenced this issue Oct 25, 2024
@ldetmer
Copy link
Contributor

ldetmer commented Nov 1, 2024

This has been resolved in google-cloud-storage 2.44.1

@ldetmer ldetmer closed this as completed Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

4 participants