cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4122
Views
1
Helpful
16
Replies

Context Service Search

Jon4321
Level 4
Level 4

Hi,

I've been unable to get search working in Context Services. I had it working two months ago with the version 4 jar files. Started the same project up four days ago and was unable to search for a customer. Downloaded the version 7 files from the site and got them working in the project same problem. Has anyone else encountered this issue?

1 Accepted Solution

Accepted Solutions

Jonathan, I see that you are not creating a customer prior to trying to look up. It is possible that the customer that you are trying to lookup might not exist in the same workgroup or was created prior to KMS changes or was wiped out when Context Service deleted all data around the time when KMS changes were implemented.

Let's start fresh:

Can you please add following:

1) import com.sun.jersey.api.client.ClientResponse;

2)

public static void createCustomer() {

   // Create a new Customer
   Map<String, Object> custData = new TreeMap<String, Object>(){{

  put("Context_Work_Email", "michael.littlefoot@cc.com");

  put("Context_Work_Phone", "407-775-5938");

  put("Context_First_Name", "Michael");

  put("Context_Last_Name", "Littlefoot");

  put("Context_Street_Address_1", "175 Cedar Lane");

  put("Context_City", "New Orleans");

  put("Context_State", "LA");

  put("Context_Country", "US");

  put("Context_ZIP", "70113");

  }};

  Customer customer = new Customer(DataElementUtils.convertDataMapToSet(custData));

  customer.setFieldsets(new ArrayList<String>(Collections.singleton("cisco.base.customer")));

  com.cisco.thunderhead.client.ClientResponse customerResp1 = contextServiceClient.create(customer);

   final String customerId = SDKUtils.getIdFromResponse(customerResp1);

  String customerLoc = customerResp1.getLocation().toString();

  System.out.println("Customer Created. ID: " + customerId + " Location: " + customerLoc);

}

3)

public static void searchCustomer() {

   // Lookup Customers on Key/Value Pairs of PII Fields
   SearchParameters customerLookup = new SearchParameters(){{

  add("Context_First_Name", "Michael");

  add("Context_Country", "US");

  }};

  List<Customer> cusLookup = contextServiceClient.search(Customer.class, customerLookup, AND);

  System.out.println("Customers associated with Lookup Criteria " + customerId + ':');

   for(Customer cust : cusLookup ) {

   // print the Customer Id(s) matching the Lookup criteria
   System.out.println("Customer ID: " + cust.getId().toString());

  }

}

4)

Then in your code, use createCustomer() first then searchCustomer()

5) You can remove the createCustomer() for all subsequent run since the customer will be present in database that you would try to lookup.

Please let me know if this helped!

Thank you

Ankit Parikh

View solution in original post

16 Replies 16

ankparik
Cisco Employee
Cisco Employee

Hi Jonathan,

Can you please provide more details on the error you're facing? If you can provide:

- Logs

- Stacktrace

- Version of SDK you're using

- When did you create the customers that you're trying to search?

- Have you recently registered with context service to obtain new connection data?, When?

Thank you

Ankit Parikh

MLB-LT03/192.168.56.1
10:45:07.908 [main] INFO  c.c.t.plugin.ConnectorFactory - Current path :C:\Users\jonathan.baughen\workspace\org\.
10:45:07.914 [main] INFO  c.c.t.plugin.ConnectorFactory - loadConfigurations path :C:\Users\jonathan.baughen\workspace\org\connector.property
10:45:08.845 [main] INFO  c.c.t.plugin.ConnectorFactory - Loading extensions from jarPath :C:\Users\jonathan.baughen\workspace\org\plugin\context-service-sdk-extension-1.0.7.jar
10:45:09.743 [main] INFO  c.c.t.p.ConnectorProxyInvocationHandler - loading new implClass in ConnectorProxyInvocationHandler = com.cisco.thunderhead.connector.impl.ManagementConnectorImpl@177515d1
10:45:09.743 [main] INFO  c.c.t.p.ConnectorProxyInvocationHandler - Getting cached init params and connector state
10:45:09.743 [main] INFO  c.c.t.p.ConnectorProxyInvocationHandler - Getting attaching update listener and setting connector state
10:45:09.903 [main] INFO  c.c.t.c.u.impl.SoftwareUpdateImpl - Setting connector state from previous version
10:45:09.903 [main] INFO  c.c.t.p.ConnectorProxyInvocationHandler - Ignoring initializing new connector because cached parameters are empty
10:45:09.903 [main] INFO  c.c.t.p.ConnectorProxyInvocationHandler - Swapping versions
10:45:09.903 [main] INFO  c.c.t.p.ConnectorProxyInvocationHandler - Versions are swapped
10:45:09.903 [main] INFO  c.c.t.p.ConnectorProxyInvocationHandler - loading new implClass in ConnectorProxyInvocationHandler = com.cisco.thunderhead.connector.impl.RegisteringApplicationImpl@366d8b97
10:45:09.903 [main] INFO  c.c.t.p.ConnectorProxyInvocationHandler - Getting cached init params and connector state
10:45:09.903 [main] INFO  c.c.t.p.ConnectorProxyInvocationHandler - Getting attaching update listener and setting connector state
10:45:09.903 [main] INFO  c.c.t.p.ConnectorProxyInvocationHandler - Ignoring initializing new connector because cached parameters are empty
10:45:09.903 [main] INFO  c.c.t.p.ConnectorProxyInvocationHandler - Swapping versions
10:45:09.903 [main] INFO  c.c.t.p.ConnectorProxyInvocationHandler - Versions are swapped
10:45:09.904 [main] INFO  c.c.t.p.ConnectorProxyInvocationHandler - loading new implClass in ConnectorProxyInvocationHandler = com.cisco.thunderhead.client.ContextServiceClientImpl@feb98ef
10:45:09.904 [main] INFO  c.c.t.p.ConnectorProxyInvocationHandler - Getting cached init params and connector state
10:45:09.904 [main] INFO  c.c.t.p.ConnectorProxyInvocationHandler - Getting attaching update listener and setting connector state
10:45:09.931 [main] INFO  c.c.t.c.u.impl.SoftwareUpdateImpl - Setting connector state from previous version
10:45:09.931 [main] INFO  c.c.t.p.ConnectorProxyInvocationHandler - Ignoring initializing new connector because cached parameters are empty
10:45:09.931 [main] INFO  c.c.t.p.ConnectorProxyInvocationHandler - Swapping versions
10:45:09.931 [main] INFO  c.c.t.p.ConnectorProxyInvocationHandler - Versions are swapped
10:45:09.931 [main] INFO  c.c.t.plugin.ConnectorFactory - ConnectorFactory.resetPluginManager - completed oldPluginManager shutdown
10:45:09.931 [main] INFO  c.c.t.plugin.ConnectorFactory - ConnectorFactory.resetPluginManager - done
ManagementConnector version : 1.0.7-10011
10:45:10.817 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcherUtils - Retrieving SAML Bearer Assertion
10:45:11.731 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcherUtils - Exchanging SAML Bearer Assertion for access token.
10:45:12.199 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcher - Fetcher:getAccessTokenResponse <main>: new token retrieved CIS time: 1394 mlSec. Response: expiresIn=7199 tokenType=Bearer accessToken=eyJhbGciOiJSUzI1NiJ9.eyJleHBpcnlfdGltZSI6MTQ2NjA0NTIxNjkxNiwidXN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ExMzA1Ljk1NloifQ.jYM-pkSBFlKOh13tFyx5SRvkQKIPD8mfNsNI5RYmaXYpCZXal7RFpcbMsrIy7cZXr2ZMpgyxCYcAJg8aRvBVaMoXICJTZIRXLRYfaSggUOx17vkbgoXtFj2p_O4Z1jMoCL3U49EALQdMS8430AYe8A17y3-nJeglfFi1V_xuD0PFGyqlaLXZnWa7_Z8HjL2yUB3RYjCFYBEcKkOEv3VC5v-CycVJpV1JikxziTa0bMZAWoB7H_mmN9tTolD2iEDBKvd2Z9Ge1EemZk-T1gGF9OFAlFWMWsO7WEAvYK9lQlol9HhXFHK6l1tJ5ttMsYrbqoOZ1TF2uT_LoX8_OpZCug refreshToken=MTI0NzYxZjktMjhmNy00ZTRjLWI3MTItMTM4MmViNzgwODlhNmRkZGVkNDktNDkw refreshTokenExpiresIn=5180635 accountExpiration=267
10:45:12.199 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcher - Starting refresh token <scopes: squared-fusion-mgmt:management> task for clientID: Cf7dcabd8970e8d11d17db50c86c0308dce7e267d567f383a8f37cb167b66a451
10:45:12.206 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcher - Token refresh task successfully started for scopes: squared-fusion-mgmt:management,  clientID: Cf7dcabd8970e8d11d17db50c86c0308dce7e267d567f383a8f37cb167b66a451
10:45:12.390 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcherUtils - Retrieving SAML Bearer Assertion
10:45:12.585 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcherUtils - Exchanging SAML Bearer Assertion for access token.
10:45:12.800 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcher - Fetcher:getAccessTokenResponse <main>: new token retrieved CIS time: 410 mlSec. Response: expiresIn=7199 tokenType=Bearer accessToken=eyJhbGciOiJSUzI1NiJ9.eyJleHBpcnlfdGltZSI6MTQ2NjA0NTIxNzYwNCwidXNlcl90eXBlIjoibWFjaGluZSIsInJlYWxtIjoiOTU3MGE2ZjUtZTBiMy00NDExLWI3NzctNzg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YVv66p7tjg3snH3z0WVi0biD1u3-nxJSawU1ZpjpOeZx9z22IcRNuUoIyAn3zgGb2raU2KUNbdo3A91GUoV_qvGvrWfy3lS_Wdqyst51PoyEMdYUw1yxdXdzTmZ4wF5LVr-xY7Gv-Li7q6RXNEDcycjTZWRvBtpwvuQ8-Prro5xbbtyLEicZcErmC3sLUMHR9E7__2oZOXUF9333-IHhEmUbKjQ7N849Xq3J3iSayP9TCpBHZvKkuOwmiPK_h82uIwQ refreshToken=OGIwMzViOTgtZTliYi00MWIwLTk4YWQtMzA2MzllYzNlZTdhNDk5NjJkNDgtY2Ix refreshTokenExpiresIn=5180635 accountExpiration=267
10:45:12.800 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcher - Starting refresh token <scopes: Identity:Organization> task for clientID: Cf7dcabd8970e8d11d17db50c86c0308dce7e267d567f383a8f37cb167b66a451
10:45:12.800 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcher - Token refresh task successfully started for scopes: Identity:Organization,  clientID: Cf7dcabd8970e8d11d17db50c86c0308dce7e267d567f383a8f37cb167b66a451
10:45:13.027 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcherUtils - Retrieving SAML Bearer Assertion
10:45:13.221 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcherUtils - Exchanging SAML Bearer Assertion for access token.
10:45:13.430 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcher - Fetcher:getAccessTokenResponse <main>: new token retrieved CIS time: 403 mlSec. Response: expiresIn=7199 tokenType=Bearer accessToken=eyJhbGciOiJSUzI1NiJ9.eyJleHBpcnlfdGltZSI6MTQ2NjA0NTIxODIzNiwidXNlcl90eXBlIjoibWFjaGluZSIsInJlYWxtIjoiOTU3MGE2ZjUtZTBiMy00NDExLWI3NzctNzg0MWJjMDgyODhkIiwiY2lzX3V1aWQiOiIyZjkwNjlmMy02N2YwLTRiMGYtODA2Zi01MTY3OGVjZmI4NTAiLCJyZWZlcmVuY2VfaWQiOiJjNGMwNjBlZ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3g--DLkDRS1UJaggZko_t_N3A_udGHcAH75yvAzVKNYJqswNz8_nofjNfBNNULNw4XR4L3LPKg7_JDrfFrRI75yESKBoTr4WaRlTFp_DhHG5WDclTnYlIMk1Rk4w2JKBlwMspJA refreshToken=NGFkNjcyMzYtYWNhYy00MzhjLWFjMzMtNDVkYjBjZGRlZGQ0NjMzNjdhY2YtMDkz refreshTokenExpiresIn=5180635 accountExpiration=267
10:45:13.431 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcher - Starting refresh token <scopes: Identity:Organization> task for clientID: Cf7dcabd8970e8d11d17db50c86c0308dce7e267d567f383a8f37cb167b66a451
10:45:13.431 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcher - Token refresh task successfully started for scopes: Identity:Organization,  clientID: Cf7dcabd8970e8d11d17db50c86c0308dce7e267d567f383a8f37cb167b66a451
10:45:13.431 [main] INFO  c.c.t.connector.impl.ConnectorImpl - Connector[cs_mgmt]: state change from UNREGISTERED to REGISTERED


*** Management Connector Connected ***


ContextServiceClient version :  1.0.7-10011
10:45:13.541 [main] INFO  c.c.t.c.ContextServiceClientImpl - Initializing system with params.  Timeouts: 10000 Retries: 2 Lab Mode: true
10:45:13.661 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcherUtils - Retrieving SAML Bearer Assertion
10:45:13.853 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcherUtils - Exchanging SAML Bearer Assertion for access token.
10:45:14.074 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcher - Fetcher:getAccessTokenResponse <main>: new token retrieved CIS time: 413 mlSec. Response: expiresIn=7199 tokenType=Bearer accessToken=eyJhbGciOiJSUzI1NiJ9.eyJleHBpcnlfdGltZSI6MTQ2NjA0NTIxODg4MSwidXNlcl90eXBlIjoibWFjaGluZSIsInJlYWxtIjoiOTU3MGE2ZjUtZTBiMy00NDExLWI3NzctNzg0MWJjMDgyODhkIiwiY2lzX3V1aWQiOiIyZjkwNjlmMy02N2YwLTRiMGYtODA2Z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AiD6BfUqr3OPSPrOa-Q9CBelxl6vSP-heDEDP4ASRjwXtrQEZygOij8ZlE7fDn3ZPvJIDZMmYX6yzAgrFUINLAe9TsKqh3LQStjDbhouYE0z2e-IKebq__05YuW6Lz9DHmpoBhCKCxWn1qLc0RuStOOjmgo7ZFiuJC31hL2E5dZ7C30KX7IdC-LWChxPCcxbtS_HStJjx0JcwTS4YkCgfsrwXcjcRlVCOmw_f6Q5XUN0b1djJY7JFVgGyywtYcyMj-wePjmTmZ8LIQ refreshToken=NjliZjc2MTMtYTljOS00NmYzLWI3NzEtMDBlNDdkODI3N2E2NDJhZTA4NmYtOGQ3 refreshTokenExpiresIn=5180634 accountExpiration=267
10:45:14.074 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcher - Starting refresh token <scopes: contact-center-context:pod_read contact-center-context:pod_write> task for clientID: Cf7dcabd8970e8d11d17db50c86c0308dce7e267d567f383a8f37cb167b66a451
10:45:14.074 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcher - Token refresh task successfully started for scopes: contact-center-context:pod_read contact-center-context:pod_write,  clientID: Cf7dcabd8970e8d11d17db50c86c0308dce7e267d567f383a8f37cb167b66a451
10:45:15.097 [main] INFO  c.c.t.c.ContextServiceClientImpl - Found Endpoints:
10:45:15.097 [main] INFO  c.c.t.c.ContextServiceClientImpl - context: 1:https://context-service.rciad.ciscoccservice.com
10:45:15.097 [main] INFO  c.c.t.c.ContextServiceClientImpl - dictionary: 1:https://dictionary.rciad.ciscoccservice.com
10:45:15.097 [main] INFO  c.c.t.c.ContextServiceClientImpl - eventing: 1:https://eventing.rciad.ciscoccservice.com
10:45:15.097 [main] INFO  c.c.t.c.ContextServiceClientImpl - kms: 1:https://encryption-a.wbx2.com
10:45:15.097 [main] INFO  c.c.t.c.ContextServiceClientImpl - management: 1:https://management.rciad.ciscoccservice.com
10:45:15.103 [main] INFO  c.c.t.c.ContextServiceClientImpl - ContextServiceEncryptionClient: management host found management.rciad.ciscoccservice.com
10:45:16.338 [main] INFO  com.cisco.thunderhead.util.Utils - Found feature: KMS_ENCRYPTION_KEY
10:45:16.338 [main] INFO  c.c.t.c.ContextServiceClientImpl - ContextServiceEncryptionClient: dictionary host found dictionary.rciad.ciscoccservice.com
10:45:16.363 [main] INFO  c.c.t.c.ContextServiceClientImpl - ContextServiceEncryptionClient: eventing host found eventing.rciad.ciscoccservice.com
10:45:16.389 [main] INFO  c.c.t.c.ContextServiceClientImpl - ContextServiceEncryptionClient: kms host found encryption-a.wbx2.com
10:45:17.298 [main] INFO  com.cisco.thunderhead.kms.KmsManager - Feature KMS_ENCRYPTION_KEY is enabled.
10:45:17.301 [main] INFO  c.c.thunderhead.kms.KmsSecureChannel - Attempting to establish KMS secure channel with device ID de5b3be2-1dc0-46b9-8e08-9b5cc346ed44
10:45:17.301 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcherUtils - Retrieving SAML Bearer Assertion
10:45:17.529 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcherUtils - Exchanging SAML Bearer Assertion for access token.
10:45:17.741 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcher - Fetcher:getAccessTokenResponse <main>: new token retrieved CIS time: 440 mlSec. Response: expiresIn=7199 tokenType=Bearer accessToken=eyJhbGciOiJSUzI1NiJ9.eyJleHBpcnlfdGltZSI6MTQ2NjA0NTIyMjU0OCwidXNlcl90eXBlIjoibWFjaGluZSIsInJlYWxtIjoiOTU3MGE2ZjUtZTBiMy00NDExLWI3NzctNzg0MWJjMDgyODhkIiwiY2lzX3V1aWQiOiIyZjkwNjlmMy02N2YwLTRiMGYtODA2Zi01MTY3OGVjZmI4NTAiLCJyZWZlcmVuY2VfaWQiOiIwNjE1MzA0Yy1lMzcxLTQwZmEtOGUyMy1iYzAzNDUxZmZkZmMiLCJpc3MiOiJodHRwczpcL1wvaWRicm9rZXIud2ViZXguY29tXC9pZGIiLCJ0b2tlbl90eXBlIjoiQmVhcmVyIiwiY2xpZW50X2lkIjoiQ2Y3ZGNhYmQ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8Scm1EBv-YhiR-RxNZF_OiNaTyYN_9nH2frC6qmvP2_CY5zez0g refreshToken=MWNjYjE1YjktYjMxMS00ZWUxLThmMTQtYzA1N2NkNmE2OTQ4NDFlOGFhOWEtNTBh refreshTokenExpiresIn=5180635 accountExpiration=267
10:45:17.741 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcher - Starting refresh token <scopes: webex-squared:kms_read webex-squared:kms_write webex-squared:kms_bind> task for clientID: Cf7dcabd8970e8d11d17db50c86c0308dce7e267d567f383a8f37cb167b66a451
10:45:17.741 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcher - Token refresh task successfully started for scopes: webex-squared:kms_read webex-squared:kms_write webex-squared:kms_bind,  clientID: Cf7dcabd8970e8d11d17db50c86c0308dce7e267d567f383a8f37cb167b66a451
10:45:18.469 [Thread-6] DEBUG c.c.t.metrics.ClientMetricsManager - processingExecutionBeanList metrics size= 18
10:45:18.469 [Thread-6] DEBUG c.c.t.metrics.ClientMetricsManager - processingExecutionBeanList size= 18
10:45:18.728 [Thread-3] INFO  c.c.thunderhead.kms.KmsSecureChannel - Successfully retrieved public key from KMS
10:45:18.730 [Thread-4] INFO  c.c.thunderhead.kms.KmsSecureChannel - Submitting request to establish KMS ephemeral key for device de5b3be2-1dc0-46b9-8e08-9b5cc346ed44
10:45:19.665 [Thread-4] DEBUG c.c.thunderhead.kms.KmsSecureChannel - Submitting KMS request, requestId=5516a2b6-1bd3-4f59-b5bf-e5f0e1f671db - create /ecdhe for type: EPHEMERAL_KEY_COLLECTION
10:45:20.928 [Thread-4] DEBUG c.c.thunderhead.kms.KmsSecureChannel - Successfully submitted KMS request 5516a2b6-1bd3-4f59-b5bf-e5f0e1f671db
10:45:21.026 [Thread-4] DEBUG c.c.thunderhead.kms.KmsSecureChannel - KMS request 5516a2b6-1bd3-4f59-b5bf-e5f0e1f671db succeeded.
10:45:21.035 [Thread-4] INFO  c.c.thunderhead.kms.KmsSecureChannel - Established KMS ephemeral key (/ecdhe/5f4d72d7-e469-4a40-964c-71f110d162fd) for device de5b3be2-1dc0-46b9-8e08-9b5cc346ed44
10:45:21.038 [Thread-4] DEBUG c.c.thunderhead.kms.KmsSecureChannel - newEphemeralKey's createDate=Thu Jun 16 10:47:06 AEST 2016 and its expirationDate=Fri Jun 17 10:47:06 AEST 2016
10:45:21.038 [Thread-4] DEBUG c.c.thunderhead.kms.KmsSecureChannel - priorEphemeralKeyUri=null, currentEphemeralKeyUri=/ecdhe/5f4d72d7-e469-4a40-964c-71f110d162fd
10:45:21.038 [Thread-4] DEBUG c.c.thunderhead.kms.KmsSecureChannel - Schedule next task of rotating ephemeral key in 82080 seconds.
10:45:21.040 [Thread-3] DEBUG c.c.thunderhead.kms.KmsSecureChannel - Submitting KMS request, requestId=b454f81b-568e-40fe-acaa-be6ef0f68136 - retrieve https://encryption-a.wbx2.com/encryption/api/v1/keys/3be386f2-a6d9-41a7-8c0d-22062a52118e for type: KEY
10:45:21.317 [Thread-3] DEBUG c.c.thunderhead.kms.KmsSecureChannel - Successfully submitted KMS request b454f81b-568e-40fe-acaa-be6ef0f68136
10:45:21.325 [Thread-3] DEBUG c.c.thunderhead.kms.KmsSecureChannel - KMS request b454f81b-568e-40fe-acaa-be6ef0f68136 succeeded.
10:45:21.325 [Thread-3] INFO  com.cisco.thunderhead.kms.KmsManager - Successfully loaded the hashing salt from key https://encryption-a.wbx2.com/encryption/api/v1/keys/3be386f2-a6d9-41a7-8c0d-22062a52118e
10:45:21.585 [Thread-3] INFO  com.cisco.thunderhead.RESTClient - Error on GET: https://management.rciad.ciscoccservice.com/management/property/v1/user/propertyName/workgroup.lab.scr.encryption.latest.key.org.9570a6f5-e0b3-4411-b777-7841bc08288d
10:45:21.597 [Thread-3] INFO  com.cisco.thunderhead.kms.KmsManager - Did not find a pre-existing kms key in the property table.
com.cisco.thunderhead.errors.NotFoundApiException: null: ApiError with errorType: notFound, errorData: propertyName, errorMessage: Object not found. Key: workgroup.lab.scr.encryption.latest.key.org.9570a6f5-e0b3-4411-b777-7841bc08288d
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_60]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_60]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_60]
at java.lang.reflect.Constructor.newInstance(Constructor.java:422) ~[na:1.8.0_60]
at com.cisco.thunderhead.errors.ApiExceptionFactory.getApiException(ApiExceptionFactory.java:78) ~[context-service-1.0.7.jar:na]
at com.cisco.thunderhead.errors.ApiExceptionFactory.generateApiException(ApiExceptionFactory.java:113) ~[context-service-1.0.7.jar:na]
at com.cisco.thunderhead.errors.ApiExceptionFactory.generateApiException(ApiExceptionFactory.java:95) ~[context-service-1.0.7.jar:na]
at com.cisco.thunderhead.RESTClient.generateUriApiException(RESTClient.java:1019) ~[updatedExtension_1466037908846_5821333099752713723.jar:na]
at com.cisco.thunderhead.RESTClient.handleErrors(RESTClient.java:994) ~[updatedExtension_1466037908846_5821333099752713723.jar:na]
at com.cisco.thunderhead.RESTClient.get(RESTClient.java:334) ~[updatedExtension_1466037908846_5821333099752713723.jar:na]
at com.cisco.thunderhead.RESTClient.get(RESTClient.java:224) ~[updatedExtension_1466037908846_5821333099752713723.jar:na]
at com.cisco.thunderhead.RESTClient.get(RESTClient.java:211) ~[updatedExtension_1466037908846_5821333099752713723.jar:na]
at com.cisco.thunderhead.kms.KmsManager.checkForLatestValidKey(KmsManager.java:345) [updatedExtension_1466037908846_5821333099752713723.jar:na]
at com.cisco.thunderhead.kms.KmsManager.rotateKMSEncryptionKey(KmsManager.java:403) [updatedExtension_1466037908846_5821333099752713723.jar:na]
at com.cisco.thunderhead.kms.KmsManager.tryInitialize(KmsManager.java:290) [updatedExtension_1466037908846_5821333099752713723.jar:na]
at com.cisco.thunderhead.kms.KmsManager$InitializeCache.run(KmsManager.java:272) [updatedExtension_1466037908846_5821333099752713723.jar:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_60]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_60]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_60]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_60]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]
10:45:21.597 [Thread-3] DEBUG c.c.thunderhead.kms.KmsSecureChannel - Submitting KMS request, requestId=2e31cdfe-bd5b-48c2-855b-f081e7264f47 - create /keys for type: KEY_COLLECTION
10:45:21.960 [Thread-3] DEBUG c.c.thunderhead.kms.KmsSecureChannel - Successfully submitted KMS request 2e31cdfe-bd5b-48c2-855b-f081e7264f47
10:45:21.962 [Thread-3] DEBUG c.c.thunderhead.kms.KmsSecureChannel - KMS request 2e31cdfe-bd5b-48c2-855b-f081e7264f47 succeeded.
10:45:21.963 [Thread-3] DEBUG c.c.thunderhead.kms.KmsSecureChannel - Submitting KMS request, requestId=18c700c9-ec2c-492a-953d-d9ac45f7be7a - update https://encryption-a.wbx2.com/encryption/api/v1/keys/a6c3c381-4567-44f0-8e73-3194ca30067c for type: KEY
10:45:22.275 [Thread-3] DEBUG c.c.thunderhead.kms.KmsSecureChannel - Successfully submitted KMS request 18c700c9-ec2c-492a-953d-d9ac45f7be7a
10:45:22.277 [Thread-3] DEBUG c.c.thunderhead.kms.KmsSecureChannel - KMS request 18c700c9-ec2c-492a-953d-d9ac45f7be7a succeeded.
10:45:22.281 [Thread-3] INFO  com.cisco.thunderhead.kms.KmsManager - Successfully generated and bound a new SCR encryption key /encryption/api/v1/keys/a6c3c381-4567-44f0-8e73-3194ca30067c to workgroup resource https://encryption-a.wbx2.com/encryption/api/v1/resources/5e05f1aa-6ea5-4713-a8f5-c28ee13964b7
10:45:22.544 [main] INFO  c.c.t.c.ContextServiceClientImpl - **** Context Service Client Initialization Complete. ****
10:45:22.628 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcherUtils - Retrieving SAML Bearer Assertion
10:45:22.819 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcherUtils - Exchanging SAML Bearer Assertion for access token.
10:45:23.030 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcher - Fetcher:getAccessTokenResponse <main>: new token retrieved CIS time: 402 mlSec. Response: expiresIn=7199 tokenType=Bearer accessToken=eyJhbGciOiJSUzI1NiJ9.eyJleHBpcnlfdGltZSI6MTQ2NjA0NTIyNzgzOCwidXNlcl90eXBlIjoibWFjaGluZSIsInJlYWxtIjoiOTU3MGE2ZjUtZTBiMy00NDExLWI3NzctNzg0MWJjMDgyODhkIiwiY2lzX3V1aWQiOiIyZjkwNjlmMy02N2YwLTRiMGYtODA2Zi01MTY3OGVjZmI4NTAiLCJyZWZlcmVuY2VfaWQiOiIyZjgxN2NjZC03M2ZkLTQ1ODMtYTZiZC05NzY0NzkyYzc0NjciLCJpc3MiOiJodHRwczpcL1wvaWRicm9rZXIud2ViZXguY29tXC9pZGIiLCJ0b2tlbl90eXBlIjoiQmVhcmVyIiwiY2xpZW50X2lkIjoiQ2Y3ZGNhYmQ4OTcwZThkMTFkMTdkYjUwYzg2YzAzMDhkY2U3ZTI2N2Q1NjdmMzgzYThmMzdjYjE2N2I2NmE0NTEiLCJ0b2tlbl9pZCI6Ik1qRXhZVFZpWkdRdE9HSXhaQzAwWm1NNUxXSm1aR010WkRrMVl6SXpNMkUzWldZMU1qVTBNekE0WXpNdE1UazIiLCJwcml2YXRlIjoiZXlKaGJHY2lPaUprYVhJaUxDSmpkSGtpT2lKS1YxUWlMQ0psYm1NaU9pSkJNVEk0UTBKRExVaFRNalUySW4wLi42SDM5UEd1TnFKYVVXMTJMNWZOcWlRLi1VdU43bXpVTC05eWhGeGJKYWo0UVNnVTVFRk1lSGhVQVlxdVVwdGh4T080dlZvWTFyZkl1NllvOXdudnlHaHBsWGxDV01aUWJ0V2dKb092RkFOWUpMd0VGYV9CeVEtVXpzdXUtTUcteUdSTkxGdnF6Q09IbkZ1bnI4MHNCN1dtdEttbGJ5TFJ2YUcwTFRabnY3ekFHMjFuVmZERjNqdWV4SGNhSGI1NHlnMmJHek95U01DLTlNOWtjajBMZnI0bmF6YmMtRkJSWDllT2JzaVRZSzFmNXVnZXphZFYxSTRHZS02V05LdWdtRU0uZWZYa09fR0ZFYXMySWplQ01RMFB3dyIsInVzZXJfbW9kaWZ5X3RpbWVzdGFtcCI6IjIwMTYwNjEwMDExMzA1Ljc1NloifQ.MnTPtIjnJ3VkPZtdMbQtFIFXmfX4u04AePxvkVNO3v8Quh2D4sU1HogZkUc1VaEsVyBOS205CTNDvIVII3m-eB9cVst3A1K8kpQVdEB73YH0yS3t7kxQyMGCNisBUp_nxO2tItaQ1M47jE7aITNijZYCvY1nxbuy0BUcAOaz9bl4ewimj-8mz8VUq1c5J_00UGkEqPXrLw5Swx2aChFs_IGo2AZ9F4YbMuUVh1bbxspHHEKTS_72IpWNy3OqbJBgSLLkhR9VP4OIRuXd-5h4g4bcL6OtbSOVBYS4wQIQC8rgB8ROxLgEwEA3Rg6v6mMIlMTmS686LbeS4yJFUfgWGw refreshToken=ODJmMTg5MDAtNWNmNi00NDU2LTk1MzctNzFjYzFkZDQ4OTliY2EwYWMxNGYtYWFh refreshTokenExpiresIn=5180636 accountExpiration=267
10:45:23.030 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcher - Starting refresh token <scopes: squared-fusion-mgmt:management> task for clientID: Cf7dcabd8970e8d11d17db50c86c0308dce7e267d567f383a8f37cb167b66a451
10:45:23.031 [main] INFO  c.c.t.c.i.c.OAuthTokenFetcher - Token refresh task successfully started for scopes: squared-fusion-mgmt:management,  clientID: Cf7dcabd8970e8d11d17db50c86c0308dce7e267d567f383a8f37cb167b66a451
10:45:23.031 [main] INFO  c.c.t.connector.impl.ConnectorImpl - Connector[cs_context]: state change from UNREGISTERED to REGISTERED


*** Client Connector Connected ***


*** Do Something in Context ***
The time to run = 15 Seconds
*** Deleting Customers ***
10:45:23.445 [Thread-5] DEBUG c.c.t.metrics.ClientMetricsManager - processingExecutionBeanList metrics size= 30
10:45:23.446 [Thread-5] DEBUG c.c.t.metrics.ClientMetricsManager - processingExecutionBeanList size= 30
10:45:24.297 [main] DEBUG c.c.t.c.ContextEncryptionService - Search by field values is called for </context/context/v1/search> with  parameters: {wg=[lab], op=[AND], hashes=[13990ca25dbb2ef7a812091be4c8337b404ce4796d7e21ba3265b1e25be9a18d], type=[customer]}
The time to run = 2 Seconds
*** Stopped Doing Something in Context ***


10:45:28.446 [Thread-6] DEBUG c.c.t.metrics.ClientMetricsManager - processingExecutionBeanList metrics size= 6
10:45:28.446 [Thread-6] DEBUG c.c.t.metrics.ClientMetricsManager - processingExecutionBeanList size= 6
10:45:33.445 [Thread-4] DEBUG c.c.t.metrics.ClientMetricsManager - processingExecutionBeanList metrics size= 0
10:45:33.445 [Thread-4] DEBUG c.c.t.metrics.ClientMetricsManager - processingExecutionBeanList size= 0
10:45:38.446 [Thread-10] DEBUG c.c.t.metrics.ClientMetricsManager - processingExecutionBeanList metrics size= 0
10:45:38.446 [Thread-10] DEBUG c.c.t.metrics.ClientMetricsManager - processingExecutionBeanList size= 0
10:45:42.217 [Thread-1] INFO  c.c.t.c.i.f.daemon.HeartBeatDaemon - HeartBeatTask Sending: {"id":"cs_mgmt@7a6c536d-9e10-4f57-9de5-0461be25d045","serial":"7a6c536d-9e10-4f57-9de5-0461be25d045","host_name":"MLB-LT03/192.168.56.1","connector_type":"cs_mgmt","cluster_id":"16efc199-10bd-47e5-ae12-35f6c5d9213d","cluster_name":"kytec-context-15537DE9A91...}}
10:45:43.273 [Thread-1] INFO  c.c.t.c.i.f.daemon.HeartBeatDaemon - HeartBeatTask Received: {"id":"cs_mgmt@7a6c536d-9e10-4f57-9de5-0461be25d045","serial":"7a6c536d-9e10-4f57-9de5-0461be25d045","host_name":"MLB-LT03/192.168.56.1","connector_type":"cs_mgmt","cluster_id":"16efc199-10bd-47e5-ae12-35f6c5d9213d","cluster_name":"kytec-context-15537DE9A91... Connector","version":"1.0.8-10093","package":{"url":"https://context-service-downloads.rciad.ciscoccservice.com/files/latest/context-service-sdk-extension-1.0.8.jar"}}]}}
10:45:43.275 [Thread-1] INFO  c.c.t.connector.impl.ConnectorImpl - Sending upgrade request to Static SDK version  to upgrade to 1.0.7-10011
10:45:43.275 [Thread-1] INFO  c.c.t.plugin.FileDownloader - Download from url = https://context-service-downloads.rciad.ciscoccservice.com/files/latest/context-service-sdk-extension-1.0.8.jar fileName = context-service-sdk-extension-1.0.8.jar in path= C:\Users\jonathan.baughen\workspace\org\plugin by user=jonathan.baughen
10:45:43.433 [Thread-2] INFO  c.c.t.c.i.f.d.PasswordResetDaemon - PasswordResetTask: running at Thu Jun 16 10:45:43 AEST 2016
10:45:43.433 [Thread-2] INFO  c.c.t.c.i.f.d.PasswordResetDaemon - https://identity.webex.com/organization/9570a6f5-e0b3-4411-b777-7841bc08288d/v1/Machines/2f9069f3-67f0-4b0f-806f-51678ecfb850: account expiration in 267 days. reset threshold: 30 days
10:45:43.433 [Thread-2] INFO  c.c.t.c.i.f.d.PasswordResetDaemon - https://identity.webex.com/organization/9570a6f5-e0b3-4411-b777-7841bc08288d/v1/Machines/2f9069f3-67f0-4b0f-806f-51678ecfb850: isExpiring() password is not expiring
10:45:43.433 [Thread-2] INFO  c.c.t.c.i.f.d.PasswordResetDaemon - https://identity.webex.com/organization/9570a6f5-e0b3-4411-b777-7841bc08288d/v1/Machines/79a8d0f1-92f4-4fc3-8b22-d96a3f799386: account expiration in 267 days. reset threshold: 30 days
10:45:43.433 [Thread-2] INFO  c.c.t.c.i.f.d.PasswordResetDaemon - https://identity.webex.com/organization/9570a6f5-e0b3-4411-b777-7841bc08288d/v1/Machines/79a8d0f1-92f4-4fc3-8b22-d96a3f799386: isExpiring() password is not expiring
10:45:43.434 [Thread-2] INFO  c.c.t.c.i.f.d.PasswordResetDaemon - PasswordResetTask: processing complete
10:45:43.446 [Thread-11] DEBUG c.c.t.metrics.ClientMetricsManager - processingExecutionBeanList metrics size= 0
10:45:43.446 [Thread-11] DEBUG c.c.t.metrics.ClientMetricsManager - processingExecutionBeanList size= 0
10:45:44.448 [Thread-1] INFO  c.c.t.plugin.FileDownloader - FILE :::C:\Users\jonathan.baughen\workspace\org\plugin\context-service-sdk-extension-1.0.8.jar
10:45:48.447 [Thread-13] DEBUG c.c.t.metrics.ClientMetricsManager - processingExecutionBeanList metrics size= 0
10:45:48.447 [Thread-13] DEBUG c.c.t.metrics.ClientMetricsManager - processingExecutionBeanList size= 0
10:45:53.036 [Thread-3] INFO  c.c.t.c.i.f.daemon.HeartBeatDaemon - HeartBeatTask Sending: {"id":"cs_context@0f372ed5-685a-43ba-b7f2-7acc64371e68","serial":"0f372ed5-685a-43ba-b7f2-7acc64371e68","host_name":"MLB-LT03/192.168.56.1","connector_type":"cs_context","cluster_id":"16efc199-10bd-47e5-ae12-35f6c5d9213d","cluster_name":"kytec-context-15537...}}
10:45:53.446 [Thread-5] DEBUG c.c.t.metrics.ClientMetricsManager - processingExecutionBeanList metrics size= 0
10:45:53.446 [Thread-5] DEBUG c.c.t.metrics.ClientMetricsManager - processingExecutionBeanList size= 0
10:45:53.639 [Thread-3] INFO  c.c.t.c.i.f.daemon.HeartBeatDaemon - HeartBeatTask Received: {"id":"cs_context@0f372ed5-685a-43ba-b7f2-7acc64371e68","serial":"0f372ed5-685a-43ba-b7f2-7acc64371e68","host_name":"MLB-LT03/192.168.56.1","connector_type":"cs_context","cluster_id":"16efc199-10bd-47e5-ae12-35f6c5d9213d","cluster_name":"kytec-context-15537... Connector","version":"1.0.8-10093","package":{"url":"https://context-service-downloads.rciad.ciscoccservice.com/files/latest/context-service-sdk-extension-1.0.8.jar"}}]}}
10:45:53.639 [Thread-3] INFO  c.c.t.connector.impl.ConnectorImpl - Ignoring upgrade notification because another upgrade is in progress. Started 10365 ms ago.

Hi Ankit Parikh,

So with 1.0.4 Jars it used to work all correctly. Now it no longer works with those Jars. I downloaded 1.0.7 jars from your site and tried with them and still didn't work. I re-registered and created two new customers and tried searching for them again and still no luck. The search begins but then stops, it doesn't return anything saying no results or anything like that.

Regards,

Jonathan

Attached debug information

Hi Jonathan,

Thank you for the information.

Could you please also share your

- Organization ID (you'll find it in Context Service org account confirmation email

- Customer IDs that you're trying to perform search on

- What mode are you using for search? Lab Mode or Production mode? (You can find from the parameter value of labMode)

Thank you

Ankit Parikh

Hi Ankit,

Please find requested details below;

Organisation ID: 9570a6f5-e0b3-4411-b777-7841bc08288d

Customer Created. ID: 23a03700-2ecb-11e6-872b-09fe9325a59a Location: https://context-service.rciad.ciscoccservice.com/context/context/v1/id/23a03700-2ecb-11e6-872b-09fe9325a59a

Customer Created. ID: 4ad64ab0-2ecd-11e6-8ce8-2d47631a5ea7 Location: https://context-service.rciad.ciscoccservice.com/context/context/v1/id/4ad64ab0-2ecd-11e6-8ce8-2d47631a5ea7

Customer Created. ID: cd49bac0-369f-11e6-a8fe-11bc15e4ab43 Location: https://context-service.rciad.ciscoccservice.com/context/context/v1/id/cd49bac0-369f-11e6-a8fe-11bc15e4ab43

Search Mode: Lab Mode

Best Regards,

Jonathan

Hi Jonathan,

Are you using same set of code (setup) to search for customers that created customers?

Based on the log files you sent in third message it seems like that your setup is using Context Service SDK 1.0.7-10011. Later in the heartbeat logs, it shows that an upgrade thread started to upgrade the SDK to 1.0.8-10093. However, I do not see full logs there.

- Did the upgrade finish or it got stuck?

- Do you have more logs that you can share to provide more details on the upgrade status?

Thank you

Ankit Parikh

Hi Ankit,

Yes the upgrade got stuck a few times. Although some attempts did work so I have a copy of the context-service-sdk-extension-1.0.8.jar. I tried pointing my pom file at it but as I don't have a copy of context-service-sdk-1.0.8.jar it tries to download the context-service-sdk-extension-1.0.8.jar again overwriting the current version messing the whole project up. That's why I went to download the latest jars from your site but you only had version 1.0.7 on there when I tried.

Here are the pom files that appear in the repository when it tries to upgrade.

It seems to error out because it can't find context-service-1.0.8.jar.

Regards,

Jonathan

jplouffe
Level 1
Level 1

Hi Jonathan,

Could you please upgrade to v2.0 (as detailed below) and see if the problem still occurs?

Shared files:

We are making a push to get everyone on the v2.0 release and would greatly appreciate it if you could do so as well.

Thank you very much,

Context Service Support Team

Jerry Plouffe

Hi Jerry,

Thanks for those jar files. Having some issues with the new jar files. I installed them and the builds happened with no errors.

I couldn't connect using lab mode. When I add config into the contextServiceClient.init it throws an error. When I removed it I could connect.

When I try and search I get an error saying the ContextServiceClient is not applicable for the arguments. From looking at your documentation the arguments seem correct.

I've attached screenshots for you to look at. I've not been able to get this working. When I revert back to 1.0.7 these errors disappear.

Regards,

Jonathan

Hi Jonathan,

Some of the method signatures have changed with SDK 2.0

Capture 3:

SearchParameters customerLookup = new SearchParameters(){{

  add("Context_City", "Boston");

  add("Context_Country", "US");

}};

List<Customer> cusLookup = contextServiceClient.search(Customer.class, customerLookup, AND);

For other issues, it would be extremely useful if you can send us your sample project. Please remove Connection Data from your project prior to sharing with us.

Thank you

Ankit Parikh

Hi Jonathon,

Regarding your issue with ContextServiceClient.init(), the third argument is now a ConnectorConfiguration object, instead of a BaseConfiguration object. It is used in the same way.

Thanks,
Chris Nota

Hi Jonathan,

Just checking in to make sure if your search issue is resolved. Please let me know.

Thank you

Ankit Parikh

Hi Ankit,

Sorry for the delay it been a busy few days.

So I can connect in lab mode and run searches. I am still getting no results on search.

Please find attached code and output.

Regards,

Jonathan