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

ClassCastException in ImpersonatedCredentials.createScoped #887

Closed

Description

@spkrka

Stacktrace:

    Caused by: java.lang.ClassCastException: class com.google.common.collect.SingletonImmutableSet cannot be cast to class java.util.List (com.google.common.collect.Single>
        at com.google.auth.oauth2.ImpersonatedCredentials.createScoped(ImpersonatedCredentials.java:367)
        at com.google.cloud.ServiceOptions.getScopedCredentials(ServiceOptions.java:596)
        at com.google.cloud.http.HttpTransportOptions.getHttpRequestInitializer(HttpTransportOptions.java:145)
        at com.google.cloud.storage.spi.v1.HttpStorageRpc.<init>(HttpStorageRpc.java:111)
        at com.google.cloud.storage.StorageOptions$DefaultStorageRpcFactory.create(StorageOptions.java:55)
        at com.google.cloud.storage.StorageOptions$DefaultStorageRpcFactory.create(StorageOptions.java:49)
        at com.google.cloud.ServiceOptions.getRpc(ServiceOptions.java:560)
        at com.google.cloud.storage.StorageOptions.getStorageRpcV1(StorageOptions.java:121)
        at com.google.cloud.storage.StorageImpl.<init>(StorageImpl.java:111)
        at com.google.cloud.storage.StorageOptions$DefaultStorageFactory.create(StorageOptions.java:45)
        at com.google.cloud.storage.StorageOptions$DefaultStorageFactory.create(StorageOptions.java:39)
        at com.google.cloud.ServiceOptions.getService(ServiceOptions.java:540)

Activity

  1. TimurSadykov commented on Mar 10, 2022

    @TimurSadykov

    this is being addressed by #732, it is ready to checkin.

  2. self-assigned this
    on Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

triage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions