Well, I was a little bit too quick: the problem is not solved!

When I cast the object to the correct class (Activity), I sometimes get a 

j[list=]ava.lang.ClassCastException or 
  | [list=]org.jbpm.JbpmException: couldn't deserialize object
  | 
  | Why? Strange enough, that it worked for 2 or 3 times. I've experimented 
with the serialVersionUID to set it to the default or the a generated value, 
but I didn't help me. 
  | 
  | Here is the code for Activity (now I used serialVersionUID = 1L):
  | 
  | /**
  |   |  * Container for an activity
  |   |  */
  |   | public class Activity implements java.io.Serializable {
  |   | 
  |   |     private static final long serialVersionUID = 1L;
  |   | 
  |   |     public boolean bApproved;
  |   | 
  |   |     public String taskId;
  |   |     
  |   |     public String processName;
  |   |     
  |   |     public String description;
  |   |     
  |   |     public String toString() {
  |   |         return "[Activity: bApproved=" + bApproved + "]";
  |   |     }
  |   | }
  | 
  | Regards,
  | Sven

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936923#3936923

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3936923


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to