Howto solve the InvalidClassException

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Howto solve the InvalidClassException

Raj-18
Hi all,

 

Using RMI i connected user Login service from outside application, if input
is wrong username or wrong password, its giving proper response mesg as "no
user found" & "password incorrect". but if input is right username password
its showing following errors:

 

java.rmi.UnmarshalException: error unmarshalling return; nested exception
is:  

java.io.InvalidClassException: org.ofbiz.entity.GenericEntity; local class
incompatible: stream classdesc serialVersionUID = -8060388945356960605,
local class serialVersionUID = 2101858786673435162

 

and i imported required jar files such as
ofbiz,ofbiz-base,entity,service,entityext,ofbiz-service-rmi

 

How to solve this?

Thanks in advance

 

Reply | Threaded
Open this post in threaded view
|

RE: Howto solve the InvalidClassException

Ravish Kamath
Raj,

The serialVersionUID is an universal identifier of a Serializable class.
This is used by Deserialization to ensure that the loaded class corresponds
exactly to a serialized object. If no match is found then an invalid
classexception is thrown.

Please ensure that your ofbiz-entity.jar [org.ofbiz.entity.GenericEntity
class resides in this jar] is the same on both sides.

cheers,
ravish

-----Original Message-----
From: Raj [mailto:[hidden email]]
Sent: Tuesday, July 11, 2006 11:13 PM
To: [hidden email]
Subject: Howto solve the InvalidClassException


Hi all,



Using RMI i connected user Login service from outside application, if input
is wrong username or wrong password, its giving proper response mesg as "no
user found" & "password incorrect". but if input is right username password
its showing following errors:



java.rmi.UnmarshalException: error unmarshalling return; nested exception
is:

java.io.InvalidClassException: org.ofbiz.entity.GenericEntity; local class
incompatible: stream classdesc serialVersionUID = -8060388945356960605,
local class serialVersionUID = 2101858786673435162



and i imported required jar files such as
ofbiz,ofbiz-base,entity,service,entityext,ofbiz-service-rmi



How to solve this?

Thanks in advance