cancel
Showing results for 
Search instead for 
Did you mean: 

Java Async Service Task: Couldn't instantiate class message in ACT_RU_JOB, but no exception thrown in Tomcat

ctri
Champ in-the-making
Champ in-the-making
Hello,

I am using the Activiti Explorer in order to deploy my process and I trigger its execution by using the REST api (both activiti-explorer and activiti-rest share the same database). The first task in my process is an async Java Service Task. I am pretty sure that the corresponding class is contained in a jar that's in the right places i.e. %catalina_home%/webapps/activiti-explorer/WEB-INF/lib and %catalina_home%/webapps/activiti-rest/WEB-INF/lib.
The problem is that sometimes (not always) some process executions freeze in this very first task but no exception is thrown (at least it is not visible in Tomcat's console/logs). However, I am able to see some exception messages in the ACT_RU_JOB table: couldn't instantiate class my.package.InitTask
I am using Activiti 5.16.1, Tomcat 8.0.14 and JDK 1.8.25

Thank you in advance,
Christos
1 REPLY 1

ctri
Champ in-the-making
Champ in-the-making
The same problem occurs even if I deploy the process via the REST api.