Hi, I've deployed my backend application, based on 1.5.0-SNAPSHOT to my jboss-4.2.2GA. I'm now starting my RCP frontend and try to load some data.
My model contains e.g.: Entity Fault { scaffold - @Person caller } Entity Person { scaffold String firstname nullable - @Address address } BasicType Address { String street nullable } If I load a fault and call getCaller() on it, I got the following exception: org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:57) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:166) at de.itemis.mitgas.stm.backend.person.domain.Person_$$_javassist_0.getAddress(Person_$$_javassist_0.java) at de.itemis.mitgas.stm.backend.person.richclient.data.RichPersonBase.fromModel(RichPersonBase.java:305) at de.itemis.mitgas.stm.backend.fault.richclient.data.RichFaultBase.getCaller(RichFaultBase.java:322) The generated methods are: RichFaultBase: public RichPerson getCaller() { if (original != null && populated == null && associationLoader != null) { populated = associationLoader.populateAssociations(original); if (populated.getCaller() != null) { caller = new RichPerson(); caller.fromModel(populated.getCaller()); //line 322 } else { caller = null; } } return caller; } and RichPerson: public void fromModel(Person model) { original = model; populated = null; setAddressStreet(model.getAddress().getStreet()); // line 305 .... } Whats wrong here? Why does the object at client side needs/knows the hibernate sessions from the last findAll<Fault>() method call? Could I use BasicType here? Regards Steffen... -- View this message in context: http://www.nabble.com/-sculptor--LazyInitializationException-on-associationLoader-tp21142331s17564p21142331.html Sent from the Fornax-Platform mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Fornax-developer mailing list Fornax-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fornax-developer