-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate with web service...
PostPosted: Wed Dec 17, 2003 7:00 pm 
Newbie

Joined: Tue Oct 14, 2003 3:51 pm
Posts: 2
I'm trying to get Hibernate to work with a web service implementation using Glue (used to be the MindElectric...)

The problem is that although I can load simple objects with hibernate and transfer them to the client side fine, when trying to send an object with a collection inside it, I get the following error on the client side:

java.rmi.UnmarshalException: java.io.IOException: no argument constructor is missing. java.lang.IllegalAccessException: Class electric.xml.io.complex.factories.DefaultFactory can not access a member of class net.sf.hibernate.impl.SessionImpl$CollectionEntry with modifiers ""

I am at this point thinking that there is something odd about the collection in the object that I am sending, as if it was sending the hibernate implementation of a List as opposed to the java.util.List... If I create the *exact* same object on the server, not loaded through hibernate and send it across, all is well on the client side... but when loading it with:

resources = session.find( "from Resource as res " );

and sending it, I get the above exception...

There must be some way to do this, but I'm out of ideas and can't find anything anywhere on this type of problem...

Any advice / examples / suggestions would be greatly appreciated...

Thanks,
JH


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 18, 2003 7:28 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
List implementation is hibernate specific as you suggest.
I though a no arg constructor was added to suit well with webservices.

It was dicussed on this forum and in the old one. Have a look

_________________
Emmanuel


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