cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
8359
Views
5
Helpful
32
Replies

KMS exceptions

dschimmer
Level 1
Level 1

Hi All,

New to ContextService, and ran into an issue.

I was able to register, and get the connection data, using the credentials provided to me.

However when taking one of the samples and trying to run them, I encounter exceptions when the client is trying access the KMS to retrieve encryption keys.

I see this exception thrown by the background threads.

ApiError with errorType: kmsError.failedRequest, errorData: , errorMessage: No response found for KMS request

  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

  at com.cisco.thunderhead.errors.ApiExceptionFactory.getApiException(ApiExceptionFactory.java:78)

  at com.cisco.thunderhead.errors.ApiExceptionFactory.generateApiException(ApiExceptionFactory.java:113)

  at com.cisco.thunderhead.errors.ApiExceptionFactory.generateApiException(ApiExceptionFactory.java:95)

  at com.cisco.thunderhead.kms.KmsSecureChannel.processResponsePayload(KmsSecureChannel.java:378)

  at com.cisco.thunderhead.kms.KmsSecureChannel.transmitRequest(KmsSecureChannel.java:289)

  at com.cisco.thunderhead.kms.KmsSecureChannel.submitRequest(KmsSecureChannel.java:235)

  at com.cisco.thunderhead.kms.KmsActor.getKey(KmsActor.java:203)

  at com.cisco.thunderhead.kms.KmsManager.loadSaltValue(KmsManager.java:320)

  at com.cisco.thunderhead.kms.KmsManager.tryInitialize(KmsManager.java:290)

  at com.cisco.thunderhead.kms.KmsManager$InitializeCache.run(KmsManager.java:272)

  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

  at java.util.concurrent.FutureTask.run(FutureTask.java:266)

  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)

  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

  at java.lang.Thread.run(Thread.java:745)

I also then see this warning

main WARN  kms.KmsManager - After 20000 milliseconds, kmsManager is still not initialized!

And in some cases when I would issue a create customer request:

main WARN  kms.KmsManager - Unable to retrieve hashing salt because KmsManager is still not initialized yet.

main ERROR client.ContextServiceClientImpl - ApiError with errorType: kmsError.failedRequest, errorData: , errorMessage: Unable to access KMS in order to load SCR encryption keys.

  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

  at com.cisco.thunderhead.errors.ApiExceptionFactory.getApiException(ApiExceptionFactory.java:78)

  at com.cisco.thunderhead.errors.ApiExceptionFactory.generateApiException(ApiExceptionFactory.java:113)

  at com.cisco.thunderhead.errors.ApiExceptionFactory.generateApiException(ApiExceptionFactory.java:95)

  at com.cisco.thunderhead.kms.KmsManager.getHashingSalt(KmsManager.java:570)

  at com.cisco.thunderhead.client.ContextServiceEncryptionClient.computeFieldValueHashes(ContextServiceEncryptionClient.java:499)

  at com.cisco.thunderhead.client.ContextServiceEncryptionClient.computeHashesForAllSearchableFields(ContextServiceEncryptionClient.java:451)

  at com.cisco.thunderhead.client.ContextServiceEncryptionClient.inspectAndEncrypt(ContextServiceEncryptionClient.java:423)

  at com.cisco.thunderhead.client.ContextServiceEncryptionClient.encryptBean(ContextServiceEncryptionClient.java:118)

  at com.cisco.thunderhead.client.BaseEncryptionService.encryptAndCreate(BaseEncryptionService.java:135)

  at com.cisco.thunderhead.client.ContextServiceClientImpl.create(ContextServiceClientImpl.java:339)

  at com.cisco.thunderhead.client.ContextServiceClientImpl.create(ContextServiceClientImpl.java:319)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

  at java.lang.reflect.Method.invoke(Method.java:498)

  at com.cisco.thunderhead.plugin.ConnectorProxyInvocationHandler.invoke(ConnectorProxyInvocationHandler.java:110)

  at com.sun.proxy.$Proxy11.create(Unknown Source)

  at addCustomerTest.main(addCustomerTest.java:70)

So what i'm trying to figure out is if anybody else has encountered an error, or perhaps the account credentials I was supplied might be on account that has not been provisioned?

I've attached a log, from the program that is based on the simple connection program in the QuickStart.

I've also ensure that the following are not blocked.

*.webex.com

*.wbx2.com

*.ciscoccservice.com

I downloaded the 1.0.7 sdk from the website, which did an auto update of the extension sdk to 1.0.8

Thank You,

Daniel

32 Replies 32

Daniel,

Just checking in to verify if your issues have been resolved with latest Sample Project. Please let me know.

Thank you

Ankit Parikh

Hi Ankit,

Actually the sample project that you gave me, failed, it got the same KMS

errors, that I used to be getting.

However, My sample project is working fine, except for the odd null

exception message on start up. It doesn't stop the sample from running.

Daniel

Daniel,

Checking in again to get some more information.

Can you please share your setup detail where you are running the sample code?

OS version?

Java version?

Are you also facing similar issue with your CVP setup along with sample code?

Thank you

Ankit Parikh