10-25-2016 07:07 AM
Hello!
In a for i am trying to do an update of the same customer. In run mode the first update is doing ok, but the next is throwing the next exception:
09:46:30.776 [Thread-13] DEBUG c.c.t.c.ContextEncryptionService - Search by field values is called for </context/context/v1/search> with parameters: {wg=[production], op=[AND], piiElementHashes.IA_Company=[35c08c984e664772f702bc3e7729bbb8af4d497b7d7f3fcf21231d772604a26e], piiElementHashes.IA_Num_Client=[e664fee0cb398cae461f88103e1ce57e0ce0920180929658396af9383a4bd493], type=[customer]}
09:46:30.812 [Thread-28] DEBUG c.c.t.c.ContextEncryptionService - Search by field values is called for </context/context/v1/search> with parameters: {wg=[production], op=[AND], piiElementHashes.IA_Company=[35c08c984e664772f702bc3e7729bbb8af4d497b7d7f3fcf21231d772604a26e], piiElementHashes.IA_Num_Client=[d121f70602566fc7a0559d4773367dd93809763033e81d67fa5dc0036ce6d33f], type=[customer]}
09:46:30.897 [Thread-36] DEBUG c.c.t.c.ContextEncryptionService - Search by field values is called for </context/context/v1/search> with parameters: {wg=[production], op=[OR], customerId=[570cb380-85af-11e6-abf0-eb3e5baf184d], type=[pod]}
09:46:31.099 [Thread-39] DEBUG c.c.t.c.ContextEncryptionService - Search by field values is called for </context/context/v1/search> with parameters: {wg=[production], op=[AND], piiElementHashes.IA_Company=[35c08c984e664772f702bc3e7729bbb8af4d497b7d7f3fcf21231d772604a26e], piiElementHashes.IA_Num_Client=[d210976dcb3ee354c8aa4e77d5b59c53f732eda05d204c723fb15a986103c937], type=[customer]}
09:46:31.135 [Thread-23] DEBUG c.c.t.c.ContextEncryptionService - Search by field values is called for </context/context/v1/search> with parameters: {wg=[production], op=[AND], piiElementHashes.IA_Company=[35c08c984e664772f702bc3e7729bbb8af4d497b7d7f3fcf21231d772604a26e], piiElementHashes.IA_Num_Client=[d121f70602566fc7a0559d4773367dd93809763033e81d67fa5dc0036ce6d33f], type=[customer]}
09:46:31.201 [Thread-32] DEBUG c.c.t.metrics.ClientMetricsManager - processingExecutionBeanList metrics size= 18
09:46:31.202 [Thread-32] DEBUG c.c.t.metrics.ClientMetricsManager - processingExecutionBeanList size= 18
09:46:31.202 [Thread-32] DEBUG c.c.t.metrics.ClientMetricsManager - logReportingEventBeanList size= 0
09:46:31.211 [Thread-22] INFO com.cisco.thunderhead.RESTClient - ERROR HTTP STATUS = 400
09:46:31.312 [Thread-22] INFO com.cisco.thunderhead.RESTClient - Error on UPDATE: https://context-service.produs1.ciscoccservice.com/context/context/v1/id/c3960ff0-921c-11e6-8a19-41afa69a6ea9
com.cisco.thunderhead.errors.InvalidInputRestApiException: java.lang.Exception: {"errorType":"syncError","errorData":"lastUpdated","errorMessage":"Last updated date (2016-10-14T15:40:31.772Z) does not match db., trackingId: b600b900-d470-423e-83b4-1d459d0de529"}: RestApiError with errorType: syncError, errorData: lastUpdated, errorMessage: Last updated date (2016-10-14T15:40:31.772Z) does not match db., trackingId: b600b900-d470-423e-83b4-1d459d0de529
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_101]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_101]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_101]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_101]
at com.cisco.thunderhead.errors.ApiExceptionFactory.getApiException(ApiExceptionFactory.java:78) ~[context-service-sdk-extension-2.0.2-10370.jar:na]
at com.cisco.thunderhead.errors.ApiExceptionFactory.generateApiException(ApiExceptionFactory.java:113) ~[context-service-sdk-extension-2.0.2-10370.jar:na]
at com.cisco.thunderhead.RESTClient.createExceptionFromErrorString(RESTClient.java:841) [context-service-sdk-extension-2.0.2-10370.jar:na]
at com.cisco.thunderhead.RESTClient.throwApiException(RESTClient.java:858) [context-service-sdk-extension-2.0.2-10370.jar:na]
at com.cisco.thunderhead.RESTClient.update(RESTClient.java:671) [context-service-sdk-extension-2.0.2-10370.jar:na]
at com.cisco.thunderhead.RESTClient.update(RESTClient.java:648) [context-service-sdk-extension-2.0.2-10370.jar:na]
at com.cisco.thunderhead.RESTClient.update(RESTClient.java:705) [context-service-sdk-extension-2.0.2-10370.jar:na]
at com.cisco.thunderhead.client.BaseEncryptionService.encryptAndUpdate(BaseEncryptionService.java:160) [context-service-sdk-extension-2.0.2-10370.jar:na]
at com.cisco.thunderhead.client.ContextServiceClientImpl$2.execute(ContextServiceClientImpl.java:420) [context-service-sdk-extension-2.0.2-10370.jar:na]
at com.cisco.thunderhead.client.ContextServiceClientImpl$2.execute(ContextServiceClientImpl.java:416) [context-service-sdk-extension-2.0.2-10370.jar:na]
at com.cisco.thunderhead.client.ContextServiceClientImpl$ContextCallable.call(ContextServiceClientImpl.java:1099) [context-service-sdk-extension-2.0.2-10370.jar:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_101]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_101]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_101]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_101]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_101]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
Caused by: java.lang.Exception: {"errorType":"syncError","errorData":"lastUpdated","errorMessage":"Last updated date (2016-10-14T15:40:31.772Z) does not match db., trackingId: b600b900-d470-423e-83b4-1d459d0de529"}
... 15 common frames omitted
09:46:31.325 [Thread-22] ERROR c.c.t.c.ContextServiceClientImpl - RestApiError with errorType: syncError, errorData: lastUpdated, errorMessage: Last updated date (2016-10-14T15:40:31.772Z) does not match db., trackingId: b600b900-d470-423e-83b4-1d459d0de529
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.RESTClient.createExceptionFromErrorString(RESTClient.java:841)
at com.cisco.thunderhead.RESTClient.throwApiException(RESTClient.java:858)
at com.cisco.thunderhead.RESTClient.update(RESTClient.java:671)
at com.cisco.thunderhead.RESTClient.update(RESTClient.java:648)
at com.cisco.thunderhead.RESTClient.update(RESTClient.java:705)
at com.cisco.thunderhead.client.BaseEncryptionService.encryptAndUpdate(BaseEncryptionService.java:160)
at com.cisco.thunderhead.client.ContextServiceClientImpl$2.execute(ContextServiceClientImpl.java:420)
at com.cisco.thunderhead.client.ContextServiceClientImpl$2.execute(ContextServiceClientImpl.java:416)
at com.cisco.thunderhead.client.ContextServiceClientImpl$ContextCallable.call(ContextServiceClientImpl.java:1099)
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)
Caused by: java.lang.Exception: {"errorType":"syncError","errorData":"lastUpdated","errorMessage":"Last updated date (2016-10-14T15:40:31.772Z) does not match db., trackingId: b600b900-d470-423e-83b4-1d459d0de529"}
... 15 more
How can I fix this? Thanks