Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] LazyInitializationException
[Teneo] LazyInitializationException [message #609848] Fri, 28 September 2007 11:33
Parvez is currently offline ParvezFriend
Messages: 181
Registered: July 2009
Senior Member
Hi,

I am trying to handle LazyInitializationException in teneo 0.8.

http://dev.eclipse.org/newslists/news.eclipse.technology.emf t/msg03083.html

I am trying according to steps mentioned in above post (which were for
0.7.5) but didn't work.


I think I may not be doing it right for 0.8.

If I override & synchronize delegateSize() method in my class (which
extends HibernatePersistableEList)



@Override
protected synchronized int delegateSize()
{
return super.delegateSize();
}
I

then it works but makes the loading very very slow.

If I don't override this method and just do above steps then I still get
error:

org.hibernate.LazyInitializationException: illegal access to loading
collection
at
org.hibernate.collection.AbstractPersistentCollection.initia lize(AbstractPersistentCollection.java:341)
at
org.hibernate.collection.AbstractPersistentCollection.read(A bstractPersistentCollection.java:86)
at
org.hibernate.collection.AbstractPersistentCollection.readSi ze(AbstractPersistentCollection.java:109)
at org.hibernate.collection.PersistentList.size(PersistentList. java:91)
at
org.eclipse.emf.common.util.DelegatingEList.delegateSize(Del egatingEList.java:231)
at
org.eclipse.emf.teneo.mapping.elist.PersistableEList.delegat eSize(PersistableEList.java:434)
at
org.eclipse.emf.common.util.DelegatingEList.size(DelegatingE List.java:222)
at
org.eclipse.emf.common.util.DelegatingEList$EIterator.hasNex t(DelegatingEList.java:1048)

Any suggestions?

Thanks.
Previous Topic:[Announce] Servus Component Proposal
Next Topic:still problems with emft updates
Goto Forum:
  


Current Time: Thu Apr 25 00:20:49 GMT 2024

Powered by FUDForum. Page generated in 0.02602 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top