I am using JBoss final 3.0. I have a CMP 2.0 bean that has among other things this method:
public abstract void setDataGroup(int dataGroup);
While invoking the method from a client like this:
MyTestHome home = ...;
MyTest r = home.create(....);
r.setDataGroup(1);
I got the following error:
java.rmi.UnmarshalException: Error unmarshaling return; nested exception is:
java.io.InvalidClassException: javax.ejb.EJBException; Local class not compatible: stream classdesc serialVersionUID=796770993296843510 local class serialVersionUID=-9219910240172116449
java.io.InvalidClassException: javax.ejb.EJBException; Local class not compatible: stream classdesc serialVersionUID=796770993296843510 local class serialVersionUID=-9219910240172116449
at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:529)
at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:573)
at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:942)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:372)
Can any one help me please?
Regards.
That was my mistake: I forgot create a fieldname in the database.