-->
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.  [ 5 posts ] 
Author Message
 Post subject: ClassNotFoundException after update to 3.5.
PostPosted: Wed May 26, 2010 6:04 am 
Regular
Regular

Joined: Thu Nov 26, 2009 8:45 am
Posts: 78
Hi,

i updated the client and the server of my application to hibernate 3.5. The compiler tells me, there are no errors, but when i try to retrieve some objects at runtime, i get the following exception:

Code:
error unmarshalling return; nested exception is:  java.lang.ClassNotFoundException: org.hibernate.proxy.pojo.javassist.SerializableProxy: java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
   java.lang.ClassNotFoundException: org.hibernate.proxy.pojo.javassist.SerializableProxy
   at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:178)
   at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
   at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)


a later on appearing exception tells me, that the versions of the serializableProxy are different:
Code:
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
   java.io.InvalidClassException: org.hibernate.proxy.pojo.javassist.SerializableProxy; local class incompatible: stream classdesc serialVersionUID = -7588447293838694298, local class serialVersionUID = 1180036893511205383
   at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:173)
   at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
   at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)

but i'm definitly using the same hibernate.jar.

i inspected the jar file, the org.hibernate.proxy.pojo.javassist.SerializableProxy is placed where it should be.
if i replace the 3.5. jar with the old ones, 3.2.6. everything works fine, what am i missing here?


Top
 Profile  
 
 Post subject: Re: ClassNotFoundException after update to 3.5.
PostPosted: Wed May 26, 2010 6:09 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
I guess that either your server or your client is still using an old hibernate.jar version,
otherwise the different serialVersionUID's of SerializableProxy are not explainable.

I suggest you check the correct deployment of your server and eventually consider also to restart the server.


Top
 Profile  
 
 Post subject: Re: ClassNotFoundException after update to 3.5.
PostPosted: Wed May 26, 2010 6:32 am 
Regular
Regular

Joined: Thu Nov 26, 2009 8:45 am
Posts: 78
got it, while developing eclipse rcp, i missed to update my plugin.xml also. works now. thx eitherway!


Top
 Profile  
 
 Post subject: Re: ClassNotFoundException after update to 3.5.
PostPosted: Wed May 26, 2010 7:40 am 
Newbie

Joined: Wed May 26, 2010 5:02 am
Posts: 4
Hi,

I can't remember exactly what file made the mistake, but you have to use that jar files what are in the lib/required directory.

Feri


Top
 Profile  
 
 Post subject: Re: ClassNotFoundException after update to 3.5.
PostPosted: Wed May 26, 2010 8:58 am 
Regular
Regular

Joined: Thu Nov 26, 2009 8:45 am
Posts: 78
yes, i know. i took them, client and server got'em, but i forgot to tell the plugin.xml (client) to use it (there are two locations where you have to define your libs). so it still uses the older version (which was on the filesystem still available).
but anyway, it works now as expected. thx to everybody


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