[jbpm-issues] [JBoss JIRA] Commented: (JBPM-1024) Serializable variables are not being deserialized when retrieved from process

Luxitano Daniel (JIRA) jira-events at lists.jboss.org
Tue Apr 15 08:18:06 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBPM-1024?page=comments#action_12408885 ] 
            
Luxitano Daniel commented on JBPM-1024:
---------------------------------------

I have exactly the same problem with the jbpm-starters-kit-3.1.4.
I think it's a problem of classloader but I don't know where the ProcessClassLoader is defined.

Here is the full stack trace :

by: org.jbpm.JbpmException: couldn't deserialize object
 at org.jbpm.context.exe.converter.SerializableToByteArrayConverter.revert(SerializableToByteArrayConverter.java:66)
 at org.jbpm.context.exe.VariableInstance.getValue(VariableInstance.java:146)
 at org.jbpm.context.exe.VariableContainer.getVariableLocally(VariableContainer.java:129)
 at org.jbpm.context.exe.VariableContainer.getVariable(VariableContainer.java:29)
 at org.jbpm.context.exe.ContextInstance.getVariable(ContextInstance.java:133)
 at org.jbpm.context.exe.ContextInstance.getVariable(ContextInstance.java:121)
 at com.sample.action.ItemsInStock.execute(ItemsInStock.java:26)
 at org.jbpm.graph.def.Action.execute(Action.java:123)
 at org.jbpm.graph.def.Action$$FastClassByCGLIB$$7876e90e.invoke(<generated>)
 at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
 at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:136)
 at org.jbpm.graph.def.Action$$EnhancerByCGLIB$$ff3b8cb.execute(<generated>)
 at org.jbpm.graph.def.Node.execute(Node.java:328)
 ... 59 more
by: java.lang.ClassNotFoundException: No ClassLoaders found for: data.TestSerVar
 at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)
 at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:475)
 at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:242)
 at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:574)
 at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538)
 at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
 at org.jbpm.context.exe.converter.SerializableToByteArrayConverter.revert(SerializableToByteArrayConverter.java:64)
 ... 71 more

and the variable class is serializable :

package data;

import java.io.Serializable;

public class TestSerVar  implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private int idBuyer;
	
	public TestSerVar(int idB){
		setIdBuyer(idB);		
	}
	
	private void setIdBuyer(int idB){
		this.idBuyer = idB;
	}
	
	public int getIdBuyer(){
		return idBuyer;
	}
}



> Serializable variables are not being deserialized when retrieved from process
> -----------------------------------------------------------------------------
>
>                 Key: JBPM-1024
>                 URL: http://jira.jboss.com/jira/browse/JBPM-1024
>             Project: JBoss jBPM
>          Issue Type: Bug
>          Components: Core Engine
>    Affects Versions: jBPM 3.1.4
>            Reporter: thilker
>         Assigned To: Tom Baeyens
>
> Storing an serializable object in a process should write an "R" in the column "converter" in table JBPM_VARIABLEINSTANCE.
> But the value of the field is "null".
> The cause:
> The converter ID is retrieved in class org.jbpm.db.hibernate.Converter at line 63.
> For the case of the SerializableToByteArrayConverter the ID is "null".
> Regards,
> Thorsten 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbpm-issues mailing list