AnsweredAssumed Answered

ActivitiOptimisticLockingException on delete from ACT_RU_EXECUTION

Question asked by nutsnbolts on Aug 11, 2014
Latest reply on Aug 20, 2014 by nutsnbolts
I am using Activiti 5.12 and am encountering an ActivitiOptimisticLockingException on delete from ACT_RU_EXECUTION. The workflow which I created looks like the "Activiti Definition.txt" The receive task is a just sitting there, so that the timer would fire every 1 minute and kick off the service task which would run for however long it needs to take. There is a static variable within the delegate class of the service object called that will ensure that only 1 instance of the code will be processed at any 1 time.

The cause of the error which I am observing seems to be related to EXECUTION ID 2417310, if you observe the logfile during the time frame of 2014-08-11 00:03:59, activiti has accessed this value and subsequently deleted it from ACT_RU_EXECUTION at 2014-08-11 00:03:59,028. However at 2014-08-11 00:08:16,546 it tries to access the value again, and tries to delete it 1 more time. This causes a rollback in all my transactions which I have been processing during the timeframe. This exception does not seem to happen consistently. Any ideas how I might go about solving this?

Find attached the debug output