Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.
This repository was archived by the owner on May 14, 2026. It is now read-only.

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

Description

@MikeRocke

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!

Activity

  1. burkedavison commented on Oct 25, 2024

    @burkedavison
    Member

    We are working to resolve this with a high priority.

  2. MikeRocke commented on Oct 25, 2024

    @MikeRocke
    Author

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

  3. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    on Oct 25, 2024
  4. ldetmer commented on Nov 1, 2024

    @ldetmer
    Contributor

    This has been resolved in google-cloud-storage 2.44.1

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

Metadata

Metadata

Assignees

Labels

priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: 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