Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] AbstractPersistentCollection crashes when Product is exported
[Teneo] AbstractPersistentCollection crashes when Product is exported [message #846821] Mon, 16 April 2012 15:38 Go to previous message
Mauricio Reyes is currently offline Mauricio Reyes
Messages: 24
Registered: August 2011
Junior Member
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.

Mauricio

[Updated on: Mon, 16 April 2012 15:38]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:[EEF] Does EEF use property descriptors?
Next Topic:[Texo] NamedQuery annotation is not correct
Goto Forum:
  


Current Time: Sun May 19 01:21:38 EDT 2013

Powered by FUDForum. Page generated in 0.02818 seconds