failedJobRetryTimeCycle and OptimisticLockingException

491 views
Skip to first unread message

stepha...@gmail.com

unread,
Jul 9, 2014, 5:14:58 AM7/9/14
to camunda-...@googlegroups.com
Hi,

I'am testing this kind of process:
http://camunda.org/share/#/process/9d1ebffb-6866-4cc9-accb-95dc6b86d84e

There are 2 pools of tasks. Tasks within a pool must be executed in parallel. That's why I added NoOp tasks (see https://groups.google.com/forum/#!topic/camunda-bpm-users/8fUx40_PhAs )

But even if 'failedJobRetryTimeCycle' is set to R3/PT5S, retry after OptimisticLockingException occurs only after 5 minutes.
On the other side, the "technical task" 'Excep, which throw an Exception on first execution, is retried after 5 seconds as expected.

I seems that there are several retry strategies...

How can I set the retryTime on OptimisticException ?


Thanks for your help,
Stéphan

<camunda.version>7.1.0-Final</camunda.version>

Roman Smirnov

unread,
Jul 10, 2014, 4:15:34 AM7/10/14
to camunda-...@googlegroups.com, stepha...@gmail.com
Hi Stéphan,

How do you configure your process engine? Could you provide us your process engine configuration?

Cheers,
Roman

stepha...@gmail.com

unread,
Jul 10, 2014, 6:00:58 AM7/10/14
to camunda-...@googlegroups.com, stepha...@gmail.com
Hi Roman,

Thanks for your reply.

Actually, I did not do any specific configuration about the process engine and I use the default one.
Here's my processes.xml file content:

<?xml version="1.0" encoding="UTF-8" ?>
<process-application
xmlns="http://www.camunda.org/schema/1.0/ProcessApplication" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<process-archive name="ExecuteBPMN">
<process-engine>default</process-engine>
<properties>
<property name="isDeleteUponUndeploy">false</property>
<property name="isScanForProcessDefinitions">true</property>
</properties>
</process-archive>
</process-application>

The only change I made after unzipping the 'camunda-bpm-jboss-7.1.0-Final' archive is increasing the 'core-thread count' value in the 'standalone.xml file:

<bounded-queue-thread-pool name="job-executor-tp" allow-core-timeout="true">
<core-threads count="5"/>
<queue-length count="3"/>
<max-threads count="10"/>
<keepalive-time time="10" unit="seconds"/>
</bounded-queue-thread-pool>

I tried to change property value of the default job-acquisition as follow but I still have to wait for 5 minutes:

<job-acquisition name="default">
<acquisition-strategy>SEQUENTIAL</acquisition-strategy>
<properties>
<property name="lockTimeInMillis">3000</property>
<property name="waitTimeInMillis">5000</property>
<property name="maxJobsPerAcquisition">3</property>
</properties>
</job-acquisition>

Any idea ?

Cheers,
Stéphan

Roman Smirnov

unread,
Jul 10, 2014, 11:40:43 AM7/10/14
to camunda-...@googlegroups.com, stepha...@gmail.com
Hi Stéphan,

What do the following class "fr.demo.bpmn.task.SleepTaskDelegate"? How long is the timeout, if you call "wait()" insinde your JavaDelegate?

Cheers,
Roman

stepha...@gmail.com

unread,
Jul 10, 2014, 12:08:38 PM7/10/14
to camunda-...@googlegroups.com, stepha...@gmail.com
Hi Roman,

The "SleepTaskDelegate" just sleep 5 seconds (5*1second to be precise) as you can see hereafter:

@Override
public void execute(DelegateExecution execution) throws Exception {
String currentActivityName = execution.getCurrentActivityName();
LOGGER.info("Running : " + currentActivityName);

int remainingSeconds = 5;
LOGGER.info("\t" + currentActivityName + " sleeping "
+ remainingSeconds + "s");
while (--remainingSeconds > 0) {
// Sleep 1 second
Thread.currentThread().sleep(1000);
LOGGER.info("\t" + currentActivityName + " still sleeping for "
+ remainingSeconds + "s");
}

LOGGER.info(currentActivityName + " terminated");
}


Cheers,
Stéphan

Roman Smirnov

unread,
Jul 14, 2014, 6:04:54 AM7/14/14
to camunda-...@googlegroups.com, stepha...@gmail.com
Hi Stéphan,

I am sorry, but I am not able to reproduce your described behavior.

I tried to reproduce it in a simple test case and deployed your attached Bpmn inside the jboss as a process application. But it works as expected.

Could you provide the stacktrace?

Cheers,
Roman

stepha...@gmail.com

unread,
Sep 2, 2014, 5:40:12 AM9/2/14
to camunda-...@googlegroups.com, stepha...@gmail.com
Hi Roman,

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 ?

thorben....@camunda.com

unread,
Sep 2, 2014, 6:00:11 AM9/2/14
to camunda-...@googlegroups.com, stepha...@gmail.com
Hi Stephan,

I think what you are seeing fits the description of bug [1] that essentially describes that OptimisticLockingExceptions are not caught by the job executor retry mechanism. Thus, the job is only retried when the lock expires, which is the 5 minutes you report.
We fixed this bug during 7.2 development and the fix will be available in 7.2.0-Final. Unfortunately, there is no workaround for 7.1 and earlier.

Best regards,
Thorben

[1] https://app.camunda.com/jira/browse/CAM-2603

stepha...@gmail.com

unread,
Sep 2, 2014, 9:19:00 AM9/2/14
to camunda-...@googlegroups.com, stepha...@gmail.com
Thank you for that explanation.
Thank you.
Reply all
Reply to author
Forward
0 new messages