Sometimes when executing runtimeService.setVariables, taskService.setVariables and taskService.complete will cause below error. Any advice will be appreciated.
How do you configure the engine? The id generator is a configuration property of the process engine (i.e. you don’t use it directly) and the IDs of the entities you listed suggest that the deprecated class DbIdGenerator is in use.
Any workflow engine interaction and ourselve system logic code execution.
No error occurs right after execution.
Maybe, 30 - 60 minutes after the execution, the error comes up in the console.
Even the error comes up, NO side effect we’ve found in the process or our biz logic processing. Just like nothing happened except those error messages in the console.
By tracking the error detail, this would caused by the class called org.camunda.bpm.engine.impl.metrics.reporter.MetricsCollectionTask
The error occured while inserting data into ACT_RU_METER_LOG.
Finally, I found the root cause.
One of our developer used backup from another database server and restored the camunda database to his local. That caused this MetricsCollectionTask issue.
I identified this by query the data from ACT_RU_METER_LOG and found the REPORTER value contains different IP address.
SELECT * FROM ACT_RU_METER_LOG WHERE id_ IN ('57400', '57391', '57495', '57504', '57609', '57513')
After clearing his local ACT_RU_METER_LOG table, the error has gone.