Hi Ralf, Yes, hibernate does use cglibs as proxies for lazy fetch. I guess not using lazy is the solution for now! Ali
-----Original Message----- From: Ralf Joachim [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 12:13 PM To: [email protected] Subject: Re: [castor-user] might be a deadlock !?? Hi Emami, as far as I know does hibernate return cglib proxies to the original object if you switch to lazy. This cglib proxies may cause castor's marshaller to fail. The only suggestion I can give here is to not use lazy fetch. Ralf Ali Emami schrieb: > I am trying to marshall an object after I fetch it from the > persistance layer (hibernate on postgres) > > this is the snippet of my code where I'm trying to marshal the object, > but the marshal method never returns > > Marshaller marshaller = new Marshaller(writer); > marshaller.setMapping(mapping); > * marshaller.marshal(obj); <---------- *this line never returnes > > this only happens when I enable the lazy fetch in hibernate, whithout > the lazy fetch it works fine. > > any idea?? > > thanks a lot ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] ------------------------------------------------- ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

