Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] HbHelper.INSTANCE.deRegisterDataStore([Teneo] HbHelper.INSTANCE.deRegisterDataStore)
[Teneo] HbHelper.INSTANCE.deRegisterDataStore [message #972765] Mon, 05 November 2012 22:06 Go to next message
RJ Mising name is currently offline RJ Mising nameFriend
Messages: 42
Registered: July 2009
Member
In my code HbHelper.INSTANCE.deRegisterDataStore gets into a infinite loop any tips on debugging that?

SEVERE: Error processing command. null
java.lang.StackOverflowError
at java.util.HashMap$HashIterator.<init>(HashMap.java:778)
at java.util.HashMap$KeyIterator.<init>(HashMap.java:826)
at java.util.HashMap$KeyIterator.<init>(HashMap.java:826)
at java.util.HashMap.newKeyIterator(HashMap.java:840)
at java.util.HashMap$KeySet.iterator(HashMap.java:874)
at java.util.AbstractCollection.toArray(AbstractCollection.java:120)
at java.util.ArrayList.<init>(ArrayList.java:131)
at org.eclipse.emf.teneo.ERuntime.computeConcreteInstanceMapping(ERuntime.java:268)
at org.eclipse.emf.teneo.ERuntime.removeEPackages(ERuntime.java:85)
at org.eclipse.emf.teneo.ecore.EModelResolver.unregisterOwnerShip(EModelResolver.java:100)
at org.eclipse.emf.teneo.hibernate.HbHelper.deRegisterDataStore(HbHelper.java:148)
at org.eclipse.emf.teneo.hibernate.HbBaseSessionDataStore.close(HbBaseSessionDataStore.java:64)
at org.eclipse.emf.teneo.hibernate.HbSessionDataStore.close(HbSessionDataStore.java:64)
at org.eclipse.emf.teneo.hibernate.HbHelper.deRegisterDataStore(HbHelper.java:151)
at org.eclipse.emf.teneo.hibernate.HbBaseSessionDataStore.close(HbBaseSessionDataStore.java:64)
at org.eclipse.emf.teneo.hibernate.HbSessionDataStore.close(HbSessionDataStore.java:64)
at org.eclipse.emf.teneo.hibernate.HbHelper.deRegisterDataStore(HbHelper.java:151)
at org.eclipse.emf.teneo.hibernate.HbBaseSessionDataStore.close(HbBaseSessionDataStore.java:64)
at org.eclipse.emf.teneo.hibernate.HbSessionDataStore.close(HbSessionDataStore.java:64)
at org.eclipse.emf.teneo.hibernate.HbHelper.deRegisterDataStore(HbHelper.java:151)
at org.eclipse.emf.teneo.hibernate.HbBaseSessionDataStore.close(HbBaseSessionDataStore.java:64)
at org.eclipse.emf.teneo.hibernate.HbSessionDataStore.close(HbSessionDataStore.java:64)
at org.eclipse.emf.teneo.hibernate.HbHelper.deRegisterDataStore(HbHelper.java:151)
at org.eclipse.emf.teneo.hibernate.HbBaseSessionDataStore.close(HbBaseSessionDataStore.java:64)
at org.eclipse.emf.teneo.hibernate.HbSessionDataStore.close(HbSessionDataStore.java:64)
at org.eclipse.emf.teneo.hibernate.HbHelper.deRegisterDataStore(HbHelper.java:151)
at org.eclipse.emf.teneo.hibernate.HbBaseSessionDataStore.close(HbBaseSessionDataStore.java:64)
at org.eclipse.emf.teneo.hibernate.HbSessionDataStore.close(HbSessionDataStore.java:64)
at org.eclipse.emf.teneo.hibernate.HbHelper.deRegisterDataStore(HbHelper.java:151)
at org.eclipse.emf.teneo.hibernate.HbBaseSessionDataStore.close(HbBaseSessionDataStore.java:64)
at org.eclipse.emf.teneo.hibernate.HbSessionDataStore.close(HbSessionDataStore.java:64)
at org.eclipse.emf.teneo.hibernate.HbHelper.deRegisterDataStore(HbHelper.java:151)
at org.eclipse.emf.teneo.hibernate.HbBaseSessionDataStore.close(HbBaseSessionDataStore.java:64)
at org.eclipse.emf.teneo.hibernate.HbSessionDataStore.close(HbSessionDataStore.java:64)

Re: [Teneo] HbHelper.INSTANCE.deRegisterDataStore [message #972793 is a reply to message #972765] Mon, 05 November 2012 22:29 Go to previous messageGo to next message
RJ Mising name is currently offline RJ Mising nameFriend
Messages: 42
Registered: July 2009
Member
calling
hbds.getSessionFactory().close();
hbds.close();
or
hbds.getSessionFactory().close();
HbHelper.INSTANCE.closeAll()
or
hbds.getSessionFactory().close();
HbHelper.INSTANCE.deRegisterDataStore(dbdname);
causes the above error with teneo 1.2 , this worked fine with teneo 1.0.1.

commenting hbds.getSessionFactory().close();
resolved the error.
Re: [Teneo] HbHelper.INSTANCE.deRegisterDataStore [message #972841 is a reply to message #972793] Mon, 05 November 2012 23:17 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5339
Registered: July 2009
Senior Member
Hi,
I published a new build for 1.2.0 which should solve this. For the 2.0.0 stream I will publish a new build later this
week which should solve this. Thanks for noting it.

gr. Martin

On 11/05/2012 11:29 PM, RJ Mising name wrote:
> calling hbds.getSessionFactory().close();
> hbds.close();
> or
> hbds.getSessionFactory().close();
> HbHelper.INSTANCE.closeAll()
> or
> hbds.getSessionFactory().close();
> HbHelper.INSTANCE.deRegisterDataStore(dbdname);
> causes the above error with teneo 1.2 , this worked fine with teneo 1.0.1.
>
> commenting hbds.getSessionFactory().close();
> resolved the error.


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Previous Topic:Edapt (Undo changes after release and migrate)
Next Topic:[EDAPT] Migration validation issue
Goto Forum:
  


Current Time: Fri Nov 21 19:30:20 GMT 2014

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

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