|[Teneo] AbstractPersistentCollection crashes when Product is exported [message #846821]
||Mon, 16 April 2012 15:38
| Mauricio Reyes
Registered: August 2011
Hi, I'm having a problem with an RCP client-server app based in EMF that crashes when the product is exported and I run it outside Eclipse.|
The exception I get is always:
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: <anyEClass>.<anyMultipleEReference>, no session or session was closed (where anyEClass and anyMultipleEReference are EMF EClass and EReference respectively)
I'm working with an RCP app that extends Teneo's HibernatePersistableEList, where I've extended it so I can invoke the server through custom logic when the doLoad() is called. Everything works perfect within Eclipse, but after I export the Product I get LazyInitializationException everytime the PersistentList is called after first load (my PersistableEList is filled with data from server, but all the multiple references of their contents can't be loaded).
E.g. One case is crashes in org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:122) and like the others, this happens always that !initialized is checked.
Is there something I'm missing when making the Product Export? Maybe some plugin that has some connection and isn't being included? Or is purely Hibernate session managing that works ok inside Eclipse? I think that the second option is where I've some problem, but I'm feeling a bit (or not just a bit) lost with this.
I'll appreciate any help to understand the situation and where and how Teneo/Hibernate uses initialized.
[Updated on: Mon, 16 April 2012 15:38]
Report message to a moderator