Closed sudhakar6343 closed 1 week ago
Thank you for reporting issue.
lots of encrypt/decrypt operations
For us to reproduce the problem, would you describe roughly how many method call (which methods?) did you run to get the error? Also how long (X minutes or X hours?) should one expect for the error to appear?
The code example seems lacking method calls. Would you enrich these?
Error is on application startup. Just the client is created during the application startup using"KeyManagementServiceClient client = KeyManagementServiceClient.create()" and none of the methods in the client were called.
Seeing the error only once on application startup, after that don't see the error again.
After application is up, encrypt method was called and worked fine.
@sudhakar6343 I'm afraid that I couldn't reproduce the error. The code just worked fine.
Would you try running the code that only has KeyManagementServiceClient client = KeyManagementServiceClient.create();
and see whether you observe the error message in your environment?
This will help you to identify what's special in your case.
public static void main(String[] args) throws Exception {
KeyManagementServiceClient client = KeyManagementServiceClient.create();
Thread.sleep(10000);
System.out.println("Hello World!");
}
I'll close this later this week.
Thanks for the check. It seems like something special in my case. I will try to check and investigate further.
Use Case
GCP KMS java client is used in our application to integrate with gcp kms for encryption/decryption operations.
Mvn dependency
google-cloud-kms: 2.48.0
Library usage
ksm client created using "KeyManagementServiceClient client = KeyManagementServiceClient.create()". Client is created only once and used through out the application lifetime.
Steps to reproduce
Code example
Stack trace
External references such as API reference guides