ClassNotFound and then found randomly using service task that invokes a Java Class

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2015 11:57 AM
I installed a simple process where a service task invokes a Java class (AWDocMailConsumerService) at regular time intervals.
i don't use the application activiti-explorer.
I use external web app that invokes Activiti REST services and through which the user enters the values (relative to the user task) in a form.
I use Activiti 5.18.0
The jar containing the Java class and all the required libraries are installed in webapps/activiti-rest/WEB-INF/lib
I use a tomcat 7.0.1 on Windows 64bit environment.
Once I deployed everything and started tomcat, I get randomly the following error:
11:48:29,986 [pool-1-thread-2] ERROR org.activiti.engine.impl.jobexecutor.TimerExecuteNestedActivityJobHandler - exception during
timer execution
…
Caused by: org.activiti.engine.ActivitiClassLoadingException: Class not found: it.awtech.activiti.AWDocMailConsumerService
at org.activiti.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:87)
at org.activiti.engine.impl.util.ReflectUtil.instantiate(ReflectUtil.java:134)
… 73 more
Caused by: java.lang.ClassNotFoundException: it.awtech.activiti.AWDocMailConsumerService
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:270)
at org.activiti.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:291)
at org.activiti.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:68)
… 74 more
The class code AWDocMailConsumerService runs successfully but in most cases not the first attempt and it may happen that no longer run if the error is repeated for at least 3 consecutive times.
Cheers,
Claudio Rosso
i don't use the application activiti-explorer.
I use external web app that invokes Activiti REST services and through which the user enters the values (relative to the user task) in a form.
I use Activiti 5.18.0
The jar containing the Java class and all the required libraries are installed in webapps/activiti-rest/WEB-INF/lib
I use a tomcat 7.0.1 on Windows 64bit environment.
Once I deployed everything and started tomcat, I get randomly the following error:
11:48:29,986 [pool-1-thread-2] ERROR org.activiti.engine.impl.jobexecutor.TimerExecuteNestedActivityJobHandler - exception during
timer execution
…
Caused by: org.activiti.engine.ActivitiClassLoadingException: Class not found: it.awtech.activiti.AWDocMailConsumerService
at org.activiti.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:87)
at org.activiti.engine.impl.util.ReflectUtil.instantiate(ReflectUtil.java:134)
… 73 more
Caused by: java.lang.ClassNotFoundException: it.awtech.activiti.AWDocMailConsumerService
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:270)
at org.activiti.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:291)
at org.activiti.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:68)
… 74 more
The class code AWDocMailConsumerService runs successfully but in most cases not the first attempt and it may happen that no longer run if the error is repeated for at least 3 consecutive times.
Cheers,
Claudio Rosso
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2015 11:58 AM
In attached the workflow definition and the full error log.
catalina_7.txt.zip
7 KB
workflow_2.txt.zip
2 KB
