-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Hibernate Serialization Exceptions when deploying
PostPosted: Thu Dec 15, 2005 6:31 pm 
Beginner
Beginner

Joined: Tue Nov 15, 2005 6:56 pm
Posts: 39
I'm using Hibernate3.1. I generated my POJOs using hibernate-tools3.1-beta2

My pojo generation worked but I'm gettting hibernate serialization exceptions when starting my application in JBOSS.

The exceptions look like:

Code:
org.hibernate.HibernateException: org.hibernate.type.SerializationException: could not deserialize
....
Caused by: java.io.InvalidClassException: org.dom4j.tree.AbstractNode; local class incompatible: stream classdesc serialVersionUID = 4188621179618565246, local class serialVersionUID = 4436254242831845461
   at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
   at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
   at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
   at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
   at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
   at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
   at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
   at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
   at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
   at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
   at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
   at org.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:204)


Anybody know what the problem might be?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 16, 2005 3:02 am 
Newbie

Joined: Sun Aug 07, 2005 3:55 am
Posts: 11
Location: slovakia
it seems that Your JBoss uses different version of Hibernate fro deserialization of an object than it was serialized I guess ... You did it with 3.1 but JBoss uses 3.0.x ?! ... and the problem might be that they have a different version of the dom4j.jar ... am I right ?!

_________________
JK@res


Top
 Profile  
 
 Post subject: I think you're right...but...more errors...
PostPosted: Fri Dec 16, 2005 4:58 pm 
Beginner
Beginner

Joined: Tue Nov 15, 2005 6:56 pm
Posts: 39
I think you're right but not 100% sure. I know in our build process we make sure we copy the version of the Hibernate3.jar file into our deployment to make sure we use the same version in JBOSS. So I think we're ok there. I did notice that the new Hibernate-tools3.1 used a newer version of the dom4j.jar file than we had. I copied that version into our Jboss deployment and I got passed the errors only to encounter different errors when starting a custom HibernateService we have. I'm not sure if this is an improvement or not?!? I think it is. I've posted another topic regarding that problem at http://forum.hibernate.org/viewtopic.ph ... highlight= if you want to take a look.

I appreciate the help. Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.