Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error: Serial Version UID 1

Status
Not open for further replies.

Sch3lp

Programmer
Aug 13, 2002
3
BE
I need some help with this error, I know it's something about classes being different. But it's kinda strange in this case.

We're working on this project in which we use a SessionFacade to make the calls to the EJB's. In the facade there are methods which do these calls, so all you need to do is invoke the required methods (with arguments).

The exception pops up when I make a call called "getDomains()" to the sessionfacade, after I created a "Domain" Object.
According to the HDBM, there is in fact an object created...
But then when I try to "get" the object the exception occurs.

java.rmi.UnmarshalException: Error unmarshaling return; nested exception is:
java.io.InvalidClassException: javax.ejb.EJBException; Local class not c
ompatible: stream classdesc serialVersionUID=796770993296843510 local class seri
alVersionUID=-9219910240172116449
java.io.InvalidClassException: javax.ejb.EJBException; Local class not compatibl
e: stream classdesc serialVersionUID=796770993296843510 local class serialVersio
nUID=-9219910240172116449

Any help is appreciated.
 
This means that something is different between the two classes that affects serialization/deserialization between the remote class and the local class. You have two different versions of the class in play in your system. This can be caused by compiling the source with different versions of the compiler (1.3 vs 1.4) or by changing something in the class that affects the contract of serialization between the sender and the receiver (the marshaller and the unmarshaller).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top