Hello.
We are experiencing similar issues with job executor. We are running 10 service tasks at most at the same time and sometimes the transition from completed script task (which precedes service task) to service task takes more than an hour and a half. We are using activiti 5.12 in our web app and after the script task was completed, the following exception was thrown:
<code>
org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already. Could not load org.activiti.engine.impl.jobexecutor.ExecuteJobsRunnable. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1600)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at org.activiti.engine.impl.jobexecutor.DefaultJobExecutor.executeJobs(DefaultJobExecutor.java:82)
at org.activiti.engine.impl.jobexecutor.AcquireJobsRunnable.run(AcquireJobsRunnable.java:62)
at java.lang.Thread.run(Thread.java:662)
Exception in thread "Thread-156" java.lang.NoClassDefFoundError: org/activiti/engine/impl/jobexecutor/ExecuteJobsRunnable
at org.activiti.engine.impl.jobexecutor.DefaultJobExecutor.executeJobs(DefaultJobExecutor.java:82)
at org.activiti.engine.impl.jobexecutor.AcquireJobsRunnable.run(AcquireJobsRunnable.java:62)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: org.activiti.engine.impl.jobexecutor.ExecuteJobsRunnable
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
… 3 more
</code>
Hour and a half later service task started it's execution and completed successfully. We are not using any timers in our process.
Data recored in act_hi_actinst for that particular case:
<code>
"Script Task";"scriptTask";"";"2014-01-22 00:53:34.307";"2014-01-22 00:53:34.318";11
"Unlock";"serviceTask";"";"2014-01-22 02:33:38.991";"2014-01-22 02:33:39.048";57
"Exclusive Gateway";"exclusiveGateway";"";"2014-01-22 02:33:39.048";"2014-01-22 02:33:39.049";1
"Receive Task";"receiveTask";"";"2014-01-22 02:33:39.049";"2014-01-22 02:33:41.951";2902
"Exclusive Gateway";"exclusiveGateway";"";"2014-01-22 02:33:41.951";"2014-01-22 02:33:41.952";1
"Exclusive Gateway";"exclusiveGateway";"";"2014-01-22 02:33:41.952";"2014-01-22 02:33:41.952";0
"End";"endEvent";"";"2014-01-22 02:33:41.952";"2014-01-22 02:33:41.952";0
</code>
In a few cases the transition never happend and service task never actually started. Such service tasks are present in act_ru_execution table but nothing is happening.
<code>
"servicetask3";t;f;t;f;1;4
</code>
Any idea what's causing these issues?
Best regards