-->
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: java.rmi.UnmarshalException
PostPosted: Sat Aug 12, 2006 8:17 am 
Newbie

Joined: Tue Jul 11, 2006 9:47 am
Posts: 19
Hi

I am receiving the following exception

java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: org.hibernate.collection.PersistentSet
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162)
at ManagerFacade_Stub.getData(Unknown Source)
at ManagerDelegate.getData(ManagerDelegate.java:93)
at test.loadTest(test.java:43)
at test.<init>(test.java:26)
at test.main(test.java:35)
Caused by: java.lang.ClassNotFoundException: org.hibernate.collection.PersistentSet
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:430)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)


I get that exception on my client side test file, I retreiving the data across Java's RMI and if I run this exact "test" on the server side I retreive the data correctly. In my bean I have a Set which I have mapped in Hibernate too so that seems to be working fine too. Any advice?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 12, 2006 8:26 am 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
Looks like you do not have the hibernate jar in the classpath on the client and are marshalling/unmarshalling a PersistentSet (hibernate specific class). Either add the jar to the classpath on the client or transform the PersistentSet to a Collection and then marshall it.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 12, 2006 8:30 am 
Newbie

Joined: Tue Jul 11, 2006 9:47 am
Posts: 19
Yeah thanks that was the problem, I had added it any now its working fine, had to add some extra jars though, the commons-logging and cglib which solved everything.

Thanks anyway


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.