-
1. Re: No class loaders found
mailinator Sep 13, 2007 8:04 AM (in response to mailinator)Hi,
i have some more information.
jbpm is trying to end the process when this error occurs.
Stack
java.lang.ClassCastException: org.jbpm.scheduler.ejbtimer.EjbSchedulerServiceFactory
org.jbpm.svc.Services.getServiceFactory(Services.java:122)
org.jbpm.svc.Services.getService(Services.java:139)
org.jbpm.svc.Services.getCurrentService(Services.java:88)
org.jbpm.graph.exe.ProcessInstance.end(ProcessInstance.java:328)
thanks for helping,
regards,
O.M. -
2. Re: No class loaders found
mailinator Sep 13, 2007 9:04 AM (in response to mailinator)Hi again,
i wwas wondering : what is the relation beetween the EjbSchedulerService and ending a process instance ?
I'm wondering because it's seems that its related to my problem.
Regards,
O.M. -
3. Re: No class loaders found
estaub Sep 13, 2007 9:15 AM (in response to mailinator)It's trying to instantiate a scheduler in order to kill off all the timers in use by the process.
(I know, there probably aren't any timers in your case.)
It looks like the underlying problem is this:java.lang.ClassNotFoundException: No ClassLoaders found for: com.it.model.User
I don't recognize the class. Do you know what it is?
-Ed Staub -
4. Re: No class loaders found
mailinator Sep 13, 2007 9:44 AM (in response to mailinator)Hi Ed,
thanks for helping.
the class you are refering to is mine.
Its my User class.
What i am trying to do is : putting that user in the variable instance. Doing my things. Taking back the user.
LAST developpements :
i took the part of code which was suspicious :
taskInstance.end
and i put it somewhere else in my action.
and i have only one exception now :
java.lang.ClassCastException: org.jbpm.scheduler.ejbtimer.EjbSchedulerServiceFactory
org.jbpm.svc.Services.getServiceFactory(Services.java:122)
org.jbpm.svc.Services.getService(Services.java:139)
org.jbpm.svc.Services.getCurrentService(Services.java:88)
org.jbpm.graph.exe.ProcessInstance.end(ProcessInstance.java:328)
Its seems that jbpm is trying to end the process instance (wich is nice) but fail to do so. It try to end the instance because my task is the last one of he process.
I cant seem to understand why jbpm cant find the right class for that EjbSchedulerService thing.
Regards,
O.M. -
5. Re: No class loaders found
estaub Sep 13, 2007 10:16 AM (in response to mailinator)I said earlier that it was failing trying to instantiate the ServiceFactory. That's not exactly right. It's failing in casting it to a ServiceFactory.
"org.jbpm.scheduler.ejbtimer.EjbSchedulerServiceFactory" is indeed a ServiceFactory, the only thing I can think of is that ServiceFactory and EjbSchedulerServiceFactory are being loaded by two different classloaders that are fetching them from different places. So I'd be looking for "competing" deployments of the jbpm jarfiles.
-Ed Staub -
6. Re: No class loaders found
mailinator Sep 13, 2007 11:41 AM (in response to mailinator)Hi Ed,
thanks again for helping,
i searched that way and i found multiple deployment of the jbpm-jpdl.jar.
While removing that redundant deployement i got another exception (i'm trying to read some instance variable of type com.it.model.User) :
javax.servlet.ServletException: org.jbpm.JbpmException: couldn't deserialize object
caused by :
org.jbpm.JbpmException: couldn't deserialize object
org.jbpm.context.exe.converter.SerializableToByteArrayConverter.revert(SerializableToByteArrayConverter.java:66)
org.jbpm.context.exe.VariableInstance.getValue(VariableInstance.java:147)
caused by :
java.lang.ClassNotFoundException: No ClassLoaders found for: com.it.model.User
org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514)
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:242)
Regards,
O.M. -
7. Re: No class loaders found
estaub Sep 14, 2007 7:18 AM (in response to mailinator)com.it.model.User must be serializable. Is it?
The code for it must be accessible in either the process deployment or in the JBPM classpath. Is it?
-Ed Staub -
8. Re: No class loaders found
marques Apr 9, 2008 2:16 AM (in response to mailinator)hi,
have you found a solution to your problem?
because i've the same problem...
thanks