Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » OutOfMemoryError in HbDataStore.initialize()
OutOfMemoryError in HbDataStore.initialize() [message #606890] Fri, 08 June 2007 14:17
Eclipse UserFriend
Originally posted by: david.skogan.gmail.com

Hi,

I have a ecore model with a total of 481 class/type definitions. But I run
out of memory when I try to initialize the database through teneo. I
succeeded with a smaller, but similar model file of approximately 120
class/type definitons. It seems like the problem occurs when
org.hibernate.loader.entity.EntityLoader creates static select/actions.

I have set the heap space to -Xmx1024m. Attached are my ecore model and main
file.

Any ideas?


My setup: Eclipse 3.3M6, EMF 3.3.0.v20070330, EMFT TENEO 0.8, Hibernate
3.2.4.sp1,

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
at java.lang.AbstractStringBuilder.append(Unknown Source)
at java.lang.StringBuffer.append(Unknown Source)
at org.hibernate.loader.JoinWalker.selectString(JoinWalker.java :953)
at
org.hibernate.loader.AbstractEntityJoinWalker.initStatementS tring(AbstractEntityJoinWalker.java:93)
at
org.hibernate.loader.AbstractEntityJoinWalker.initStatementS tring(AbstractEntityJoinWalker.java:78)
at
org.hibernate.loader.AbstractEntityJoinWalker.initAll(Abstra ctEntityJoinWalker.java:58)
at
org.hibernate.loader.entity.CascadeEntityJoinWalker.<init>(CascadeEntityJoinWalker.java:27)
at
org.hibernate.loader.entity.CascadeEntityLoader.<init>(CascadeEntityLoader.java:25)
at
org.hibernate.persister.entity.AbstractEntityPersister.creat eLoaders(AbstractEntityPersister.java:3013)
at
org.hibernate.persister.entity.AbstractEntityPersister.postI nstantiate(AbstractEntityPersister.java:2977)
at
org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:290)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1294)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.buildSess ionFactory(HbSessionDataStore.java:156)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:79)
at data.db.InitDB.doQuickStart(InitDB.java:67)
at data.db.InitDB.main(InitDB.java:29)


Regards
David



  • Attachment: InitDB.java
    (Size: 2.36KB, Downloaded 107 times)
  • Attachment: model.ecore
    (Size: 271.69KB, Downloaded 235 times)
Previous Topic:[teneo] unique/required java annotations
Next Topic:[Teneo] Exception and Persistence mapping
Goto Forum:
  


Current Time: Thu Jan 21 06:20:40 GMT 2021

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

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

Back to the top