Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-6193

JobEntity was updated by another transaction concurrently

    Details

    • Support Ticket IDs:

      Description

      The attached workflow causes the following exception, after completed the approval task; also, it then re-execute the last script task every 5 minutes, leading to the same exception again.

      SEVERE: exception during job execution: JobEntity [id=3670] was updated by another transaction concurrently
      org.activiti.engine.ActivitiOptimisticLockingException: JobEntity [id=3670] was updated by another transaction concurrently
      	at org.activiti.engine.impl.db.DbSqlSession$CheckedDeleteOperation.execute(DbSqlSession.java:246)
      	at org.activiti.engine.impl.db.DbSqlSession.flushDeletes(DbSqlSession.java:609)
      	at org.activiti.engine.impl.db.DbSqlSession.flush(DbSqlSession.java:477)
      	at org.activiti.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:171)
      	at org.activiti.engine.impl.interceptor.CommandContext.close(CommandContext.java:118)
      	at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:66)
      	at org.activiti.engine.impl.interceptor.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:64)
      	at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
      	at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)
      	at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)
      	at org.activiti.engine.impl.jobexecutor.ExecuteJobsRunnable.run(ExecuteJobsRunnable.java:52)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      

      In order to reproduce, create a user with user name 'kermit', and log as this user to start the process.

      The same workflow, run with Activiti Explorer (5.15) does not show the error.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                patrickdiligent patrick diligent
                Reporter:
                patrickdiligent patrick diligent
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: