AnsweredAssumed Answered

TimerEntity was updated by another transaction concurre

Question asked by maulee17@gmail.com on Dec 29, 2012
Latest reply on Dec 30, 2012 by ronald.van.kuijk
Hi,

Getting following exception, I am running multiple instances of a same process definition. I have multiple timer to wait when any application exception is thrown. Process is retried after that time interval. Currently process is not getting retried after 30 seconds.
I have use notation PT30S.

Please let me know, what is going wrong and how can I fix it.

Thanks & Regards,
Maulee Parikh.




2012-12-29 08:12:32,776 ERROR [STDERR] (Thread-17) Dec 29, 2012 8:12:32 AM org.activiti.engine.impl.interceptor.CommandContext close
SEVERE: Error while closing command context
org.activiti.engine.ActivitiOptimisticLockingException: TimerEntity[973] was updated by another transaction concurrently
        at org.activiti.engine.impl.db.DbSqlSession.flushUpdates(DbSqlSession.java:452)
        at org.activiti.engine.impl.db.DbSqlSession.flush(DbSqlSession.java:348)
        at org.activiti.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:149)
        at org.activiti.engine.impl.interceptor.CommandContext.close(CommandContext.java:105)
        at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:49)
        at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:42)
        at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
        at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:40)
        at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
        at org.activiti.engine.impl.jobexecutor.AcquireJobsRunnable.run(AcquireJobsRunnable.java:57)
        at java.lang.Thread.run(Thread.java:662)
2012-12-29 08:12:32,779 ERROR [STDERR] (Thread-17) Dec 29, 2012 8:12:32 AM org.activiti.engine.impl.jobexecutor.AcquireJobsRunnable run
SEVERE: exception during job acquisition: TimerEntity[973] was updated by another transaction concurrently
org.activiti.engine.ActivitiOptimisticLockingException: TimerEntity[973] was updated by another transaction concurrently
        at org.activiti.engine.impl.db.DbSqlSession.flushUpdates(DbSqlSession.java:452)
        at org.activiti.engine.impl.db.DbSqlSession.flush(DbSqlSession.java:348)
        at org.activiti.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:149)
        at org.activiti.engine.impl.interceptor.CommandContext.close(CommandContext.java:105)
        at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:49)
        at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:42)
        at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
        at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:40)
        at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
        at org.activiti.engine.impl.jobexecutor.AcquireJobsRunnable.run(AcquireJobsRunnable.java:57)
        at java.lang.Thread.run(Thread.java:662)

Outcomes