KEMBAR78
gax-2.56.0 IllegalArgumentException when determining the Protobuf bundle version within Spring boot app · Issue #3314 · googleapis/sdk-platform-java · GitHub
Skip to content

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

@MikeRocke

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!

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