sorry for late response.
Here after is the log produced by the execution.
You can see that the task "ExceptionThrower (Excep)" throws a custom exception at "09:28:50,400" and it is retried 5 seconds later at "09:29:00,572".
On the other side, an OptimisticLockingException is raised at "09:29:04,681" but we waint 5 minute for retring at "09:34:04,808"
<code>
09:28:46,306 INFO [stdout] (http-/127.0.0.1:8080-2) Start START (StartEvent_1)
09:28:46,306 INFO [stdout] (http-/127.0.0.1:8080-2) Start START (StartEvent_1)
09:28:46,322 INFO [SleepTaskDelegate] (job-executor-tp-threads - 9) Running : P1T4
09:28:46,322 INFO [SleepTaskDelegate] (job-executor-tp-threads - 9) P1T4 sleeping 5s
09:28:46,338 INFO [SleepTaskDelegate] (job-executor-tp-threads - 8) Running : P1T3
09:28:46,338 INFO [SleepTaskDelegate] (job-executor-tp-threads - 8) P1T3 sleeping 5s
09:28:46,338 INFO [SleepTaskDelegate] (job-executor-tp-threads - 7) Running : P1T2
09:28:46,338 INFO [SleepTaskDelegate] (job-executor-tp-threads - 7) P1T2 sleeping 5s
09:28:46,431 INFO [stdout] (job-executor-tp-threads - 6) ExceptionThrower (P1T1) - 1
09:28:46,431 INFO [stdout] (job-executor-tp-threads - 6) ExceptionThrower (P1T1) - throwing Exception !
09:28:46,431 SEVERE [org.camunda.bpm.engine.impl.interceptor.CommandContext] (job-executor-tp-threads - 6) Error while closing command context: org.camunda.bpm.engine.impl.pvm.PvmException: couldn't execute activity <serviceTask id="ServiceTask_1" ...>: Some custom exception
at org.camunda.bpm.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:48) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:728) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:719) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:63) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:63) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:728) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:728) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:728) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:719) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:54) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext$1.call(CommandContext.java:77) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext$1.call(CommandContext.java:75) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.application.AbstractProcessApplication.execute(AbstractProcessApplication.java:100) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.context.Context.executeWithinProcessApplication(Context.java:147) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:75) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.jobexecutor.AsyncContinuationJobHandler.execute(AsyncContinuationJobHandler.java:50) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.JobEntity.execute(JobEntity.java:94) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.MessageEntity.execute(MessageEntity.java:32) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.cmd.ExecuteJobsCmd.execute(ExecuteJobsCmd.java:84) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:90) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:59) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:32) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.executeJob(ExecuteJobsRunnable.java:79) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.run(ExecuteJobsRunnable.java:67) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:806) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:826) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_60]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
Caused by: java.lang.Exception: Some custom exception
at fr.demo.bpmn.task.ExceptionThrower.execute(ExceptionThrower.java:20)
at org.camunda.bpm.engine.impl.delegate.JavaDelegateInvocation.invoke(JavaDelegateInvocation.java:34) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:39) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:42) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.bpmn.behavior.ServiceTaskJavaDelegateActivityBehavior.execute(ServiceTaskJavaDelegateActivityBehavior.java:49) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.bpmn.behavior.ServiceTaskJavaDelegateActivityBehavior.execute(ServiceTaskJavaDelegateActivityBehavior.java:40) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.bpmn.helper.ClassDelegate.execute(ClassDelegate.java:111) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:44) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
... 37 more
09:28:46,588 WARNING [org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable] (job-executor-tp-threads - 6) Exception while executing job with id a816fce6-0bf1-11e4-9ac4-bc305bacc5da: org.camunda.bpm.engine.impl.pvm.PvmException: couldn't execute activity <serviceTask id="ServiceTask_1" ...>: Some custom exception
at org.camunda.bpm.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:48) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:728) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:719) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:63) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:63) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:728) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:728) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:728) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:719) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:54) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext$1.call(CommandContext.java:77) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext$1.call(CommandContext.java:75) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.application.AbstractProcessApplication.execute(AbstractProcessApplication.java:100) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.context.Context.executeWithinProcessApplication(Context.java:147) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:75) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.jobexecutor.AsyncContinuationJobHandler.execute(AsyncContinuationJobHandler.java:50) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.JobEntity.execute(JobEntity.java:94) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.MessageEntity.execute(MessageEntity.java:32) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.cmd.ExecuteJobsCmd.execute(ExecuteJobsCmd.java:84) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:90) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:59) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:32) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.executeJob(ExecuteJobsRunnable.java:79) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.run(ExecuteJobsRunnable.java:67) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:806) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:826) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_60]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
Caused by: java.lang.Exception: Some custom exception
at fr.demo.bpmn.task.ExceptionThrower.execute(ExceptionThrower.java:20)
at org.camunda.bpm.engine.impl.delegate.JavaDelegateInvocation.invoke(JavaDelegateInvocation.java:34) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:39) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:42) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.bpmn.behavior.ServiceTaskJavaDelegateActivityBehavior.execute(ServiceTaskJavaDelegateActivityBehavior.java:49) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.bpmn.behavior.ServiceTaskJavaDelegateActivityBehavior.execute(ServiceTaskJavaDelegateActivityBehavior.java:40) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.bpmn.helper.ClassDelegate.execute(ClassDelegate.java:111) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:44) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
... 37 more
09:28:46,603 INFO [stdout] (job-executor-tp-threads - 6) ExceptionThrower (P1T1) - 1
09:28:46,603 INFO [stdout] (job-executor-tp-threads - 6) ExceptionThrower (P1T1) - No more exception - Keep going
09:28:46,619 INFO [stdout] (job-executor-tp-threads - 6) NoOp : noop_1_1:a8444e81-0bf1-11e4-9ac4-bc305bacc5da
09:28:47,322 INFO [SleepTaskDelegate] (job-executor-tp-threads - 9) P1T4 still sleeping for 4s
09:28:47,338 INFO [SleepTaskDelegate] (job-executor-tp-threads - 8) P1T3 still sleeping for 4s
09:28:47,338 INFO [SleepTaskDelegate] (job-executor-tp-threads - 7) P1T2 still sleeping for 4s
09:28:48,338 INFO [SleepTaskDelegate] (job-executor-tp-threads - 9) P1T4 still sleeping for 3s
09:28:48,338 INFO [SleepTaskDelegate] (job-executor-tp-threads - 8) P1T3 still sleeping for 3s
09:28:48,353 INFO [SleepTaskDelegate] (job-executor-tp-threads - 7) P1T2 still sleeping for 3s
09:28:49,338 INFO [SleepTaskDelegate] (job-executor-tp-threads - 9) P1T4 still sleeping for 2s
09:28:49,338 INFO [SleepTaskDelegate] (job-executor-tp-threads - 8) P1T3 still sleeping for 2s
09:28:49,353 INFO [SleepTaskDelegate] (job-executor-tp-threads - 7) P1T2 still sleeping for 2s
09:28:50,338 INFO [SleepTaskDelegate] (job-executor-tp-threads - 9) P1T4 still sleeping for 1s
09:28:50,338 INFO [SleepTaskDelegate] (job-executor-tp-threads - 9) P1T4 terminated
09:28:50,338 INFO [SleepTaskDelegate] (job-executor-tp-threads - 8) P1T3 still sleeping for 1s
09:28:50,353 INFO [SleepTaskDelegate] (job-executor-tp-threads - 8) P1T3 terminated
09:28:50,353 INFO [stdout] (job-executor-tp-threads - 6) NoOp : noop_1_4:aa8082e5-0bf1-11e4-9ac4-bc305bacc5da
09:28:50,353 INFO [SleepTaskDelegate] (job-executor-tp-threads - 7) P1T2 still sleeping for 1s
09:28:50,353 INFO [SleepTaskDelegate] (job-executor-tp-threads - 7) P1T2 terminated
09:28:50,369 INFO [stdout] (job-executor-tp-threads - 9) NoOp : noop_1_3:aa82f3e8-0bf1-11e4-9ac4-bc305bacc5da
09:28:50,385 INFO [stdout] (job-executor-tp-threads - 8) ExceptionThrower (Excep) - 1
09:28:50,385 INFO [stdout] (job-executor-tp-threads - 8) ExceptionThrower (Excep) - throwing Exception !
09:28:50,400 SEVERE [org.camunda.bpm.engine.impl.interceptor.CommandContext] (job-executor-tp-threads - 8) Error while closing command context: org.camunda.bpm.engine.impl.pvm.PvmException: couldn't execute activity <serviceTask id="noop_1_2" ...>: Some custom exception
at org.camunda.bpm.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:48) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:728) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:719) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:63) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:63) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:728) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:728) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:728) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:719) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:54) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext$1.call(CommandContext.java:77) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext$1.call(CommandContext.java:75) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.application.AbstractProcessApplication.execute(AbstractProcessApplication.java:100) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.context.Context.executeWithinProcessApplication(Context.java:147) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:75) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.jobexecutor.AsyncContinuationJobHandler.execute(AsyncContinuationJobHandler.java:50) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.JobEntity.execute(JobEntity.java:94) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.MessageEntity.execute(MessageEntity.java:32) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.cmd.ExecuteJobsCmd.execute(ExecuteJobsCmd.java:84) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:90) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:59) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:32) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.executeJob(ExecuteJobsRunnable.java:79) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.run(ExecuteJobsRunnable.java:67) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:806) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:847) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_60]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
Caused by: java.lang.Exception: Some custom exception
at fr.demo.bpmn.task.ExceptionThrower.execute(ExceptionThrower.java:20)
at org.camunda.bpm.engine.impl.delegate.JavaDelegateInvocation.invoke(JavaDelegateInvocation.java:34) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:39) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:42) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.bpmn.behavior.ServiceTaskJavaDelegateActivityBehavior.execute(ServiceTaskJavaDelegateActivityBehavior.java:49) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.bpmn.behavior.ServiceTaskJavaDelegateActivityBehavior.execute(ServiceTaskJavaDelegateActivityBehavior.java:40) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.bpmn.helper.ClassDelegate.execute(ClassDelegate.java:111) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:44) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
... 37 more
09:28:50,556 WARNING [org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable] (job-executor-tp-threads - 8) Exception while executing job with id aa82f3e7-0bf1-11e4-9ac4-bc305bacc5da: org.camunda.bpm.engine.impl.pvm.PvmException: couldn't execute activity <serviceTask id="noop_1_2" ...>: Some custom exception
at org.camunda.bpm.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:48) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:728) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:719) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:63) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:63) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:728) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:728) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:728) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:719) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:54) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:93) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext$1.call(CommandContext.java:77) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext$1.call(CommandContext.java:75) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.application.AbstractProcessApplication.execute(AbstractProcessApplication.java:100) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.context.Context.executeWithinProcessApplication(Context.java:147) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:75) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.jobexecutor.AsyncContinuationJobHandler.execute(AsyncContinuationJobHandler.java:50) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.JobEntity.execute(JobEntity.java:94) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.persistence.entity.MessageEntity.execute(MessageEntity.java:32) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.cmd.ExecuteJobsCmd.execute(ExecuteJobsCmd.java:84) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:90) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:59) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:32) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.executeJob(ExecuteJobsRunnable.java:79) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.run(ExecuteJobsRunnable.java:67) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:806) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:847) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_60]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
Caused by: java.lang.Exception: Some custom exception
at fr.demo.bpmn.task.ExceptionThrower.execute(ExceptionThrower.java:20)
at org.camunda.bpm.engine.impl.delegate.JavaDelegateInvocation.invoke(JavaDelegateInvocation.java:34) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:39) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:42) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.bpmn.behavior.ServiceTaskJavaDelegateActivityBehavior.execute(ServiceTaskJavaDelegateActivityBehavior.java:49) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.bpmn.behavior.ServiceTaskJavaDelegateActivityBehavior.execute(ServiceTaskJavaDelegateActivityBehavior.java:40) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.bpmn.helper.ClassDelegate.execute(ClassDelegate.java:111) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:44) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
... 37 more
09:29:00,572 INFO [stdout] (job-executor-tp-threads - 10) ExceptionThrower (Excep) - 1
09:29:00,572 INFO [stdout] (job-executor-tp-threads - 10) ExceptionThrower (Excep) - No more exception - Keep going
09:29:00,619 INFO [SleepTaskDelegate] (job-executor-tp-threads - 11) Running : P2T1
09:29:00,619 INFO [SleepTaskDelegate] (job-executor-tp-threads - 8) Running : P2T3
09:29:00,635 INFO [SleepTaskDelegate] (job-executor-tp-threads - 11) P2T1 sleeping 5s
09:29:00,635 INFO [SleepTaskDelegate] (job-executor-tp-threads - 12) Running : P2T2
09:29:00,635 INFO [SleepTaskDelegate] (job-executor-tp-threads - 8) P2T3 sleeping 5s
09:29:00,635 INFO [SleepTaskDelegate] (job-executor-tp-threads - 12) P2T2 sleeping 5s
09:29:01,635 INFO [SleepTaskDelegate] (job-executor-tp-threads - 11) P2T1 still sleeping for 4s
09:29:01,635 INFO [SleepTaskDelegate] (job-executor-tp-threads - 8) P2T3 still sleeping for 4s
09:29:01,635 INFO [SleepTaskDelegate] (job-executor-tp-threads - 12) P2T2 still sleeping for 4s
09:29:02,635 INFO [SleepTaskDelegate] (job-executor-tp-threads - 11) P2T1 still sleeping for 3s
09:29:02,635 INFO [SleepTaskDelegate] (job-executor-tp-threads - 8) P2T3 still sleeping for 3s
09:29:02,635 INFO [SleepTaskDelegate] (job-executor-tp-threads - 12) P2T2 still sleeping for 3s
09:29:03,635 INFO [SleepTaskDelegate] (job-executor-tp-threads - 11) P2T1 still sleeping for 2s
09:29:03,635 INFO [SleepTaskDelegate] (job-executor-tp-threads - 8) P2T3 still sleeping for 2s
09:29:03,635 INFO [SleepTaskDelegate] (job-executor-tp-threads - 12) P2T2 still sleeping for 2s
09:29:04,635 INFO [SleepTaskDelegate] (job-executor-tp-threads - 11) P2T1 still sleeping for 1s
09:29:04,635 INFO [SleepTaskDelegate] (job-executor-tp-threads - 11) P2T1 terminated
09:29:04,635 INFO [SleepTaskDelegate] (job-executor-tp-threads - 8) P2T3 still sleeping for 1s
09:29:04,650 INFO [SleepTaskDelegate] (job-executor-tp-threads - 8) P2T3 terminated
09:29:04,650 INFO [SleepTaskDelegate] (job-executor-tp-threads - 12) P2T2 still sleeping for 1s
09:29:04,650 INFO [SleepTaskDelegate] (job-executor-tp-threads - 12) P2T2 terminated
09:29:04,650 INFO [stdout] (job-executor-tp-threads - 8) NoOp : noop_2_1:b3060f8a-0bf1-11e4-9ac4-bc305bacc5da
09:29:04,681 INFO [stdout] (job-executor-tp-threads - 11) NoOp : noop_2_3:b30aca7d-0bf1-11e4-9ac4-bc305bacc5da
09:29:04,681 INFO [stdout] (job-executor-tp-threads - 10) NoOp : noop_2_2:b30aca7e-0bf1-11e4-9ac4-bc305bacc5da
09:29:04,681 WARNING [org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable] (job-executor-tp-threads - 10) Exception while executing job with id b3060f8b-0bf1-11e4-9ac4-bc305bacc5da: org.camunda.bpm.engine.OptimisticLockingException: ExecutionEntity[a779ab6f-0bf1-11e4-9ac4-bc305bacc5da] was updated by another transaction concurrently
at org.camunda.bpm.engine.impl.db.DbSqlSession.flushUpdates(DbSqlSession.java:692) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.db.DbSqlSession.flush(DbSqlSession.java:488) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:196) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContext.close(CommandContext.java:126) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:99) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:59) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:32) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.executeJob(ExecuteJobsRunnable.java:79) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.run(ExecuteJobsRunnable.java:67) [camunda-engine-7.1.0-Final.jar:7.1.0-Final]
at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:806) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:847) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_60]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
09:34:04,808 INFO [stdout] (job-executor-tp-threads - 13) NoOp : noop_2_2:65ee8971-0bf2-11e4-9ac4-bc305bacc5da
09:34:04,823 INFO [stdout] (job-executor-tp-threads - 13) End END (EndEvent_2)
09:34:04,839 INFO [stdout] (job-executor-tp-threads - 13) End END (EndEvent_2)
</code>
Any idea ?