|
I am storing a serialized version of a class in the
database.I ran the upload on a machine A, backed up the database and
restored the database on another machine B. On machine B when I try to retrieve
the object back I am getting a SQLException saying that the local class is not
compatible showing two different serialVersionUID's.There is no difference in
the class source between machine A and machine B. I haven't declared
the private serialVersionUID instance variable for the class (which I should).
What's confusing me is if the class hasn't
changed then why am I getting this "Local class not compatible" exceptions. I am
retrieving the object from an Entity Bean the sql type is set
as OID and the jdbc type as a
JAVA_OBJECT. In what cases can I get this exception apart from the class
source changing?
Cheers
Sachin Pandey
NUIX Pty Ltd Level 8, 143 York Street, Sydney 2000 Phone: (02) 92839010 Fax: (02) 92839020 Disclaimer:
This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing,copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. |
- Re: Local class not compatible Sachin Pandey
- Re: Local class not compatible Saravanan Subramanyan
- Re: Local class not compatible Sachin Pandey
- Re: Local class not compatible Saravanan Subramanyan
- Tranaction Attributes usage situati... Koneti Kavi Kumar
- Re: Local class not compatible Ian Vellosa
- Re: Local class not compatible Sanjeev Verma
- Re: Local class not compatible Sachin Pandey
- Re: Local class not compatible Ramakrishna N
- Re: Local class not compatible Ramakrishna N
