Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] - Union Subclass out of memory
[Teneo] - Union Subclass out of memory [message #610145] Thu, 25 October 2007 10:18
Shane Coughlan is currently offline Shane CoughlanFriend
Messages: 16
Registered: July 2009
Junior Member
Hi,

I am using teneo 0.8, EMF 2.3 and hibernate 3

I generated the hibernate mappings using
the right click Teneo option - Generate OR Mapping(joined-subclass),
creating our hibernate.hbm.xml file.

I modified the hibernate.hbm.xml file to use union-subclass
instead of joined-subclass.

On starting our application using the new hibernate mappings
we run into an out of memory exception(below).

any help is greatly appreciated.

Is there a teneo option to generate Hibernate mappings using
union-subclass?

Thanks,
Shane

Exception in thread "Thread-2" java.lang.OutOfMemoryError: Java heap space
at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:45)
at java.lang.StringBuffer.<init>(StringBuffer.java:91)
at org.hibernate.sql.Select.toStatementString(Select.java:36)
at
org.hibernate.loader.AbstractEntityJoinWalker.initStatementS tring(AbstractEntityJoinWalker.java:115)
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.EntityJoinWalker.<init>(EntityJoinWalker.java:42)
at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:65)
at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:43)
at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:33)
at
org.hibernate.loader.entity.BatchingEntityLoader.createBatch ingEntityLoader(BatchingEntityLoader.java:103)
at
org.hibernate.persister.entity.AbstractEntityPersister.creat eEntityLoader(AbstractEntityPersister.java:1744)
at
org.hibernate.persister.entity.AbstractEntityPersister.creat eEntityLoader(AbstractEntityPersister.java:1748)
at
org.hibernate.persister.entity.AbstractEntityPersister.creat eLoaders(AbstractEntityPersister.java:2980)
at
org.hibernate.persister.entity.AbstractEntityPersister.postI nstantiate(AbstractEntityPersister.java:2971)
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 com.pilz.pas.platform.db.DBHelper.<init>(DBHelper.java:212)
at
com.pilz.pas.platform.db.DBHelperFactory.initializeProjectsR epository(DBHelperFactory.java:150)
at
com.pilz.pas.platform.db.DBHelperFactory.initializeProjectsR epository(DBHelperFactory.java:127)
at
com.pilz.pas.platform.db.DBHelperFactory.initDefaultProjects Workspace(DBHelperFactory.java:39)
at
com.pilz.pas.platform.gui.internal.ApplicationWorkbenchWindo wAdvisor.postWindowCreate(ApplicationWorkbenchWindowAdvisor. java:255)
at
org.eclipse.ui.internal.WorkbenchWindow.fireWindowCreated(Wo rkbenchWindow.java:1192)
at org.eclipse.ui.internal.WorkbenchWindow.open(WorkbenchWindow .java:752)
at
org.eclipse.ui.internal.Workbench$21.runWithException(Workbe nch.java:1037)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3659)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3296)
Previous Topic:[Teneo] Working with multiple hbm files
Next Topic:[TENEO] How to avoid mapping of transient EReferences?
Goto Forum:
  


Current Time: Sat Apr 13 18:16:47 GMT 2024

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

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

Back to the top