-
1. Re: Class Cast Exception while the BPEL Process Ends
dhanushgopinath Dec 17, 2008 7:25 AM (in response to dhanushgopinath)Hi,
Inorder to solve this problem, I tried upgrading my jbpm bpel instance to 1.1.1
I ran my process and now it throws a slightly different exception.17:52:39,153 ERROR [GraphElement] action threw exception: org.jbpm.scheduler.ejbtimer.EntitySchedulerServiceFactory java.lang.ClassCastException: org.jbpm.scheduler.ejbtimer.EntitySchedulerServiceFactory at org.jbpm.svc.Services.getServiceFactory(Services.java:131) at org.jbpm.svc.Services.getService(Services.java:148) at org.jbpm.svc.Services.getCurrentService(Services.java:94) at org.jbpm.graph.exe.ProcessInstance.end(ProcessInstance.java:328) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585)
Now its looking throwing class cast exception for the class EntitySchedulerServiceFactory.
Can I some how disable it, as I do not need the scheduler service in my application?
If so What should be done so that I can disable it ? Will commenting of the line<service name="scheduler" factory="org.jbpm.scheduler.ejbtimer.EntitySchedulerServiceFactory" />
in jbpm.cfg.xml suffice ?
Please let me know.
Thanks
Dhanush -
2. Re: Class Cast Exception while the BPEL Process Ends
aguizar Jan 12, 2009 8:00 AM (in response to dhanushgopinath)Commenting out the line will disable the scheduler service, but I'm curious as to why you get the exception. Several provided examples use the scheduler service and work correctly.
When you updated jbpm-bpel.jar, did you update the dependencies as well? In particular you should check that jbpm-jpdl.jar is at version 3.2.3. The manifest file contains the version information. If you did not update the dependencies, make sure you use the jar from the BPEL distro. -
3. Re: Class Cast Exception while the BPEL Process Ends
dhanushgopinath Jan 13, 2009 12:32 AM (in response to dhanushgopinath)THanks Alex,
I could resolve this issue earlier and it was a dependency issue only.
But now I am getting a different error for JNDI Lookup.
Its throws an error sayingejb timer entity lookup problem
Do i need to register these lookups somewhere?