When I use workflow-extension to start a process, which does not have process definition on Camunda yet, I received an ambiguous error in the console (see code below)
- It only said “Data not found” which is really hard to detect the real problem
- It comes from ContentStoreErrorHandler which I think it’s a missing from Workflow extension
Can you improve the message logs so administrator can understand the error easily?
2024-11-29 15:30:00,172 [ttp-nio-9090-exec-10][INFO ][internal.operation.StartProcessOperation][u:claims_migration_user] - START_PROCESS is called with parameters [processDefinition=Claims_HandleBooking, businessKey=]
2024-11-29 15:30:00,819 [ttp-nio-9090-exec-10][INFO ][lient.exception.ContentStoreErrorHandler][u:claims_migration_user] - Can not read error response from server
2024-11-29 15:30:00,820 [ttp-nio-9090-exec-10][WARN ][.googlecode.jsonrpc4j.JsonRpcBasicServer][u:claims_migration_user] - Error in JSON-RPC Service
com.mgmtp.a12.contentstore.client.exception.MissingDataException: Data not found
at com.mgmtp.a12.contentstore.client.exception.ContentStoreErrorHandler.handleError(ContentStoreErrorHandler.java:71)
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:137)
at com.mgmtp.a12.connector.rest.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:38)
at org.springframework.web.client.ResponseErrorHandler.handleError(ResponseErrorHandler.java:63)
at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:915)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:864)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:764)
at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:646)
at com.mgmtp.a12.connector.rest.GenericRestConnector.executeMethod(GenericRestConnector.java:63)
at com.mgmtp.a12.connector.rest.RestPostConnector.callServer(RestPostConnector.java:27)
at com.mgmtp.a12.workflows.camunda.client.internal.CamundaRestClient.startProcessInstance(CamundaRestClient.kt:47)
at com.mgmtp.a12.workflows.extension.internal.operation.StartProcessOperation.rpc(StartProcessOperation.kt:61)