Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: InvalidClassException on Hibernate's SerializableProxy
PostPosted: Tue Mar 20, 2012 10:24 am 
Newbie

Joined: Thu Apr 21, 2011 8:59 am
Posts: 14
Hi All,

I have an application which was running on JBoss4(with Hibernate for persistence) and had some data serialized ( saved in database ).
Now, we migrated the application to JBoss6 with the serialized data retained. However, when reading one of the entities from this data, I am facing InvalidClassException.
The exception is similar to
Code:
java.io.InvalidClassException: org.hibernate.proxy.pojo.javassist.SerializableProxy; local class incompatible: stream classdesc serialVersionUID = <some number> , local class serialVersionUID = <some diff number>


I understand that this error can occur in case of serializing entities with a class and trying to deserialize it back with the same class(but with different serialversion uuid). The entity that I am trying to read has compatible changes. So, I believe there should not be any issue with my entity.
And, the exception also does not complain about my entity but rather complaining about the Hibernate class SerializableProxy being different.

Any ideas on what is wrong here and how I can resolve this? Is this because the Hibernate being using with JBoss6 is different from the Hibernate version of JBoss4 which i used to persist these entities?

Thanks,

_________________
Lokesh, C
( SCBCD 5, CCENT, SCJP 5 )


Top
 Profile  
 
 Post subject: Re: InvalidClassException on Hibernate's SerializableProxy
PostPosted: Mon Mar 26, 2012 12:50 pm 
Newbie

Joined: Thu Apr 21, 2011 8:59 am
Posts: 14
Hi All,
Does any one have any suggestions or ideas regarding this??
Thanks,

_________________
Lokesh, C
( SCBCD 5, CCENT, SCJP 5 )


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.