-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[secretmanager] Failed to instantiate SecretManagerServiceClient in Java client library #11373
Comments
Thank you for the report. That "GeneratedMessageLite" having the suffix "Lite" is suspicious to me. Protobuf Lite is for special runtime environments. Would you share the followings?
|
@thagikura I'll close this issue if there's no activity. |
Sorry for the delayed response. When I created a minimal project to try to reproduce the issue, I couldn't reproduce that issue in that project. Here is the minimal project that instantiates the SecretMangerServiceClient. (It requires Application Default Credentials to run, but it succeeds to instantiate the SecretManagerServiceClient) And here is the result of (Extracted only the
The instantiation issue still happens in my production repository, but I still couldn't manage to extract it to a minimal reproducible project. For the reference here is the result of
Do you have any ideas from what I'm observing? |
An |
Yes, both of them were running on the same Mac PC. |
When I tried to instantiate SecretManagerServiceClient in the java client library, an Exception was thrown in the protobuf layer.
I couldn't instantiate the client because of the error.
Environment details
Specify the API at the beginning of the title. For example, "[vision]: ...").
SecretManager
OS type and version:
macOS Sequoia 15.1.1
Java version:
17
Version(s):
google-cloud-bom: 26.51.0
(derived version from bom) com.google.cloud:google-cloud-secretmanager:2.54.0
Kotlin version: 2.1.0
Steps to reproduce
Code example
Stack trace
External references such as API reference guides
Any additional information below
I tried both
import com.google.cloud.secretmanager.v1beta2.SecretManagerServiceClient
andimport com.google.cloud.secretmanager.v1.SecretManagerServiceClient
but resulted in the same error.
The text was updated successfully, but these errors were encountered: