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
|