Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [TENEO] stackoverflow when saving a copied resource
[TENEO] stackoverflow when saving a copied resource [message #71985] Fri, 16 February 2007 17:35 Go to next message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
I am trying to take an XMI resource, copy it, add it to a teneo resource,
then save the new teneo resource.

I am able to create the teneo resource, load the XMI resource, do the copy
of the resource with the EMF utility methods, and then add the new copy of
the resource to the teneo resource. However, when I go to save the teneo
resorce the process runs for a very long time and then finally throws an
error and exits. The error log contains the following...

java.lang.StackOverflowError
at java.nio.CharBuffer.<init>(Unknown Source)
at java.nio.HeapCharBuffer.<init>(Unknown Source)
at java.nio.CharBuffer.wrap(Unknown Source)
at sun.nio.cs.StreamEncoder$CharsetSE.implWrite(Unknown Source)
at sun.nio.cs.StreamEncoder.write(Unknown Source)
at sun.nio.cs.StreamEncoder.write(Unknown Source)
at java.io.OutputStreamWriter.write(Unknown Source)
at java.io.Writer.write(Unknown Source)
at
org.apache.log4j.helpers.CountingQuietWriter.write(CountingQ uietWriter.java:36)
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.jav a:292)
at
org.apache.log4j.RollingFileAppender.subAppend(RollingFileAp pender.java:225)
at org.apache.log4j.WriterAppender.append(WriterAppender.java:1 50)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton. java:221)
at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOn Appenders(AppenderAttachableImpl.java:57)
at org.apache.log4j.Category.callAppenders(Category.java:187)
at org.apache.log4j.Category.forcedLog(Category.java:372)
at org.apache.log4j.Category.log(Category.java:864)
at org.apache.commons.logging.impl.Log4JLogger.debug(Log4JLogge r.java:110)
at
org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler.getID(IdentifierCacheHandler.java:63)
at
org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer.getIden tifier(EMFTuplizer.java:65)
at
org.hibernate.persister.entity.AbstractEntityPersister.getId entifier(AbstractEntityPersister.java:3539)
at
org.hibernate.persister.entity.AbstractEntityPersister.isTra nsient(AbstractEntityPersister.java:3255)
at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.jav a:181)
at
org.hibernate.event.def.AbstractSaveEventListener.getEntityS tate(AbstractSaveEventListener.java:487)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.per formSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:84)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl. java:507)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :499)
at
org.hibernate.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
at
org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
at
org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:437)
at
org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:326)
at
org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:180)
at
org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:108)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:186)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:175)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.per formSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:98)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl. java:507)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :499)
at
org.hibernate.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
at
org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
at
org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:437)
at
org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:326)
at
org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:180)
at
org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:108)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:186)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:175)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.per formSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:98)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl. java:507)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :499)
.....
Re: [TENEO] stackoverflow when saving a copied resource [message #72004 is a reply to message #71985] Fri, 16 February 2007 17:48 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Mark,
How large is the xmi? When you save the copy to xmi that works fine?
Can you reproduce it for a small set of data?

gr. Martin

mark wrote:
> I am trying to take an XMI resource, copy it, add it to a teneo
> resource, then save the new teneo resource.
>
> I am able to create the teneo resource, load the XMI resource, do the
> copy of the resource with the EMF utility methods, and then add the new
> copy of the resource to the teneo resource. However, when I go to save
> the teneo resorce the process runs for a very long time and then finally
> throws an error and exits. The error log contains the following...
>
> java.lang.StackOverflowError
> at java.nio.CharBuffer.<init>(Unknown Source)
> at java.nio.HeapCharBuffer.<init>(Unknown Source)
> at java.nio.CharBuffer.wrap(Unknown Source)
> at sun.nio.cs.StreamEncoder$CharsetSE.implWrite(Unknown Source)
> at sun.nio.cs.StreamEncoder.write(Unknown Source)
> at sun.nio.cs.StreamEncoder.write(Unknown Source)
> at java.io.OutputStreamWriter.write(Unknown Source)
> at java.io.Writer.write(Unknown Source)
> at
> org.apache.log4j.helpers.CountingQuietWriter.write(CountingQ uietWriter.java:36)
>
> at org.apache.log4j.WriterAppender.subAppend(WriterAppender.jav a:292)
> at
> org.apache.log4j.RollingFileAppender.subAppend(RollingFileAp pender.java:225)
>
> at org.apache.log4j.WriterAppender.append(WriterAppender.java:1 50)
> at
> org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton. java:221)
> at
> org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOn Appenders(AppenderAttachableImpl.java:57)
>
> at org.apache.log4j.Category.callAppenders(Category.java:187)
> at org.apache.log4j.Category.forcedLog(Category.java:372)
> at org.apache.log4j.Category.log(Category.java:864)
> at
> org.apache.commons.logging.impl.Log4JLogger.debug(Log4JLogge r.java:110)
> at
> org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler.getID(IdentifierCacheHandler.java:63)
>
> at
> org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer.getIden tifier(EMFTuplizer.java:65)
>
> at
> org.hibernate.persister.entity.AbstractEntityPersister.getId entifier(AbstractEntityPersister.java:3539)
>
> at
> org.hibernate.persister.entity.AbstractEntityPersister.isTra nsient(AbstractEntityPersister.java:3255)
>
> at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.jav a:181)
> at
> org.hibernate.event.def.AbstractSaveEventListener.getEntityS tate(AbstractSaveEventListener.java:487)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.per formSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:84)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>
> at
> org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl. java:507)
> at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :499)
> at
> org.hibernate.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at
> org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
> at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
> at
> org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:437)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:326)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:180)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:108)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:186)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:175)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.per formSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:98)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>
> at
> org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl. java:507)
> at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :499)
> at
> org.hibernate.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at
> org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
> at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
> at
> org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:437)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:326)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:180)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:108)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:186)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:175)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.per formSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:98)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>
> at
> org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl. java:507)
> at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :499)
> .....
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [TENEO] stackoverflow when saving a copied resource [message #72023 is a reply to message #72004] Fri, 16 February 2007 18:00 Go to previous messageGo to next message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
The XMI file is 4.5M. I will try to save a smaller amount of data...

I have also attached the end of the console log for you.

15-Feb-2007 14:16:11,710 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.OrganizationImpl field
contacts
15-Feb-2007 14:16:11,710 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.OrganizationImpl field
services
15-Feb-2007 14:16:11,710 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.OrganizationImpl field
namedEquipment
15-Feb-2007 14:16:11,710 [DEBUG]
org.hibernate.event.def.AbstractSaveEventListener: executing
identity-insert immediately
15-Feb-2007 14:16:11,710 [DEBUG]
org.hibernate.persister.entity.AbstractEntityPersister: Inserting entity:
Organization (native id)
15-Feb-2007 14:16:11,710 [DEBUG]
org.hibernate.persister.entity.AbstractEntityPersister: Version: 0
15-Feb-2007 14:16:11,710 [DEBUG] org.hibernate.jdbc.AbstractBatcher: about
to open PreparedStatement (open PreparedStatements: 0, globally: 0)
15-Feb-2007 14:16:11,710 [DEBUG] org.hibernate.SQL: insert into
`organization` (e_version, `name`, `dtype`) values (?, ?, 'Organization')
15-Feb-2007 14:16:11,710 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
preparing statement
15-Feb-2007 14:16:11,750 [DEBUG]
org.hibernate.persister.entity.AbstractEntityPersister: Dehydrating
entity: [Organization#<null>]
15-Feb-2007 14:16:11,750 [DEBUG] org.hibernate.type.IntegerType: binding
'0' to parameter: 1
15-Feb-2007 14:16:11,750 [DEBUG] org.hibernate.type.StringType: binding
'GLVSN (GALAVISION)' to parameter: 2
15-Feb-2007 14:16:11,870 [DEBUG]
org.hibernate.id.IdentifierGeneratorFactory: Natively generated identity:
22
15-Feb-2007 14:16:11,870 [DEBUG] org.hibernate.jdbc.AbstractBatcher: about
to close PreparedStatement (open PreparedStatements: 1, globally: 1)
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
closing statement
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
Setting id: 22 for object srd.impl.OrganizationImpl in idcache
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
Setting id: 22 for object srd.impl.OrganizationImpl in idcache
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Cascade: processing
cascade ACTION_SAVE_UPDATE for: Organization
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Cascade: cascade
ACTION_SAVE_UPDATE for collection: Organization.contacts
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.CascadingAction:
cascading to saveOrUpdate: Contact
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
ID for object srd.impl.ContactImpl not found in id cache
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
ID for object srd.impl.ContactImpl not found in id cache
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.event.def.AbstractSaveEventListener: transient instance of:
Contact
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.event.def.DefaultSaveOrUpdateEventListener: saving transient
instance
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.event.def.AbstractSaveEventListener: saving [Contact#<null>]
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.event.def.AbstractSaveEventListener: executing insertions
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Cascade: processing
cascade ACTION_SAVE_UPDATE for: Contact
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created persistable
list EList of type:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of
member physicalAddresses owned by srd.impl.ContactImpl with delegate list
java.util.ArrayList
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created persistable
list EList of type:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of
member phoneNumbers owned by srd.impl.ContactImpl with delegate list
java.util.ArrayList
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created persistable
list EList of type:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of
member emailAddresses owned by srd.impl.ContactImpl with delegate list
java.util.ArrayList
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created persistable
list EList of type:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of
member authInfo owned by srd.impl.ContactImpl with delegate list
java.util.ArrayList
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created persistable
list EList of type:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of
member urlAddresses owned by srd.impl.ContactImpl with delegate list
java.util.ArrayList
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created persistable
list EList of type:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of
member ipAddresses owned by srd.impl.ContactImpl with delegate list
java.util.ArrayList
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created persistable
list EList of type:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of
member services owned by srd.impl.ContactImpl with delegate list
java.util.ArrayList
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created persistable
list EList of type:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of
member namedEquipment owned by srd.impl.ContactImpl with delegate list
java.util.ArrayList
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.CascadingAction:
cascading to saveOrUpdate: Organization
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.event.def.AbstractSaveEventListener: persistent instance of:
Organization
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.event.def.DefaultSaveOrUpdateEventListener: ignoring
persistent instance
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.event.def.DefaultSaveOrUpdateEventListener: object already
associated with session: [Organization#22]
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Cascade: done
processing cascade ACTION_SAVE_UPDATE for: Contact
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Versioning: Seeding:
0
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
Setting version: 0 for object srd.impl.ContactImpl in idcache
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.ContactImpl field
physicalAddresses
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.ContactImpl field
phoneNumbers
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.ContactImpl field
emailAddresses
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.ContactImpl field authInfo
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.ContactImpl field
urlAddresses
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.ContactImpl field ipAddresses
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.ContactImpl field services
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.ContactImpl field
namedEquipment
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.event.def.AbstractSaveEventListener: executing
identity-insert immediately
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.persister.entity.AbstractEntityPersister: Inserting entity:
Contact (native id)
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.persister.entity.AbstractEntityPersister: Version: 0
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.jdbc.AbstractBatcher: about
to open PreparedStatement (open PreparedStatements: 0, globally: 0)
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.SQL: insert into `contact`
(e_version, `description`, `firstname`, `lastname`, `middlename`,
`nickname`, `callorder`, `dtype`) values (?, ?, ?, ?, ?, ?, ?, 'Contact')
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
preparing statement
15-Feb-2007 14:16:12,882 [DEBUG]
org.hibernate.persister.entity.AbstractEntityPersister: Dehydrating
entity: [Contact#<null>]
15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.IntegerType: binding
'0' to parameter: 1
15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.StringType: binding
'24 HOUR' to parameter: 2
15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.StringType: binding '
' to parameter: 3
15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.StringType: binding '
' to parameter: 4
15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.StringType: binding '
' to parameter: 5
15-Feb-2007 14:16:13,983 [DEBUG] org.hibernate.type.StringType: binding
null to parameter: 6
15-Feb-2007 14:16:13,983 [DEBUG] org.hibernate.type.StringType: binding
null to parameter: 7
15-Feb-2007 14:16:14,033 [DEBUG]
org.hibernate.id.IdentifierGeneratorFactory: Natively generated identity:
59
15-Feb-2007 14:16:14,033 [DEBUG] org.hibernate.jdbc.AbstractBatcher: about
to close PreparedStatement (open PreparedStatements: 1, globally: 1)
15-Feb-2007 14:16:14,033 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
closing statement
15-Feb-2007 14:16:14,033 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
Setting id: 59 for object srd.impl.ContactImpl in idcache
15-Feb-2007 14:16:14,033 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
Setting id: 59 for object srd.impl.ContactImpl in idcache
15-Feb-2007 14:16:15,155 [DEBUG] org.hibernate.engine.Cascade: processing
cascade ACTION_SAVE_UPDATE for: Contact
15-Feb-2007 14:16:15,155 [DEBUG] org.hibernate.engine.Cascade: cascade
ACTION_SAVE_UPDATE for collection: Contact.physicalAddresses
15-Feb-2007 14:16:15,155 [DEBUG] org.hibernate.engine.Cascade: done
cascade ACTION_SAVE_UPDATE for collection: Contact.physicalAddresses
15-Feb-2007 14:16:15,155 [DEBUG] org.hibernate.engine.Cascade: cascade
ACTION_SAVE_UPDATE for collection: Contact.phoneNumbers
15-Feb-2007 14:16:15,155 [DEBUG] org.hibernate.engine.CascadingAction:
cascading to saveOrUpdate: PhoneNumber
15-Feb-2007 14:16:15,155 [DEBUG]
org.hibernate.transaction.JDBCTransaction: rollback
15-Feb-2007 14:16:15,626 [DEBUG]
org.hibernate.transaction.JDBCTransaction: rolled back JDBC Connection
15-Feb-2007 14:16:15,626 [DEBUG] org.hibernate.jdbc.JDBCContext: after
transaction completion
15-Feb-2007 14:16:15,626 [DEBUG] org.hibernate.jdbc.ConnectionManager:
aggressively releasing JDBC connection
15-Feb-2007 14:16:15,626 [DEBUG] org.hibernate.jdbc.ConnectionManager:
releasing JDBC connection [ (open PreparedStatements: 0, globally: 0)
(open ResultSets: 0, globally: 0)]
15-Feb-2007 14:16:15,626 [DEBUG]
org.hibernate.connection.DriverManagerConnectionProvider: returning
connection to pool, pool size: 1
15-Feb-2007 14:16:16,287 [DEBUG] org.hibernate.impl.SessionImpl: after
transaction completion
15-Feb-2007 14:16:16,287 [DEBUG] org.hibernate.impl.SessionImpl: closing
session
15-Feb-2007 14:16:16,287 [DEBUG] org.hibernate.jdbc.ConnectionManager:
connection already null in cleanup : no action
Re: [TENEO] stackoverflow when saving a copied resource [message #72061 is a reply to message #72023] Fri, 16 February 2007 19:03 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Could it be a java stack size issue? It is maybe easier to set the java stack size to a higher value
and test that.

gr. Martin

mark wrote:
> The XMI file is 4.5M. I will try to save a smaller amount of data...
>
> I have also attached the end of the console log for you.
>
> 15-Feb-2007 14:16:11,710 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.OrganizationImpl field
> contacts
> 15-Feb-2007 14:16:11,710 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.OrganizationImpl field
> services
> 15-Feb-2007 14:16:11,710 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.OrganizationImpl field
> namedEquipment
> 15-Feb-2007 14:16:11,710 [DEBUG]
> org.hibernate.event.def.AbstractSaveEventListener: executing
> identity-insert immediately
> 15-Feb-2007 14:16:11,710 [DEBUG]
> org.hibernate.persister.entity.AbstractEntityPersister: Inserting
> entity: Organization (native id)
> 15-Feb-2007 14:16:11,710 [DEBUG]
> org.hibernate.persister.entity.AbstractEntityPersister: Version: 0
> 15-Feb-2007 14:16:11,710 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
> about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
> 15-Feb-2007 14:16:11,710 [DEBUG] org.hibernate.SQL: insert into
> `organization` (e_version, `name`, `dtype`) values (?, ?, 'Organization')
> 15-Feb-2007 14:16:11,710 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
> preparing statement
> 15-Feb-2007 14:16:11,750 [DEBUG]
> org.hibernate.persister.entity.AbstractEntityPersister: Dehydrating
> entity: [Organization#<null>]
> 15-Feb-2007 14:16:11,750 [DEBUG] org.hibernate.type.IntegerType: binding
> '0' to parameter: 1
> 15-Feb-2007 14:16:11,750 [DEBUG] org.hibernate.type.StringType: binding
> 'GLVSN (GALAVISION)' to parameter: 2
> 15-Feb-2007 14:16:11,870 [DEBUG]
> org.hibernate.id.IdentifierGeneratorFactory: Natively generated
> identity: 22
> 15-Feb-2007 14:16:11,870 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
> about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
> closing statement
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
> Setting id: 22 for object srd.impl.OrganizationImpl in idcache
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
> Setting id: 22 for object srd.impl.OrganizationImpl in idcache
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Cascade:
> processing cascade ACTION_SAVE_UPDATE for: Organization
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Cascade: cascade
> ACTION_SAVE_UPDATE for collection: Organization.contacts
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.CascadingAction:
> cascading to saveOrUpdate: Contact
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
> ID for object srd.impl.ContactImpl not found in id cache
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
> ID for object srd.impl.ContactImpl not found in id cache
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.event.def.AbstractSaveEventListener: transient instance
> of: Contact
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener: saving
> transient instance
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.event.def.AbstractSaveEventListener: saving [Contact#<null>]
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.event.def.AbstractSaveEventListener: executing insertions
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Cascade:
> processing cascade ACTION_SAVE_UPDATE for: Contact
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created
> persistable list EList of type:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> of member physicalAddresses owned by srd.impl.ContactImpl with delegate
> list java.util.ArrayList
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created
> persistable list EList of type:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> of member phoneNumbers owned by srd.impl.ContactImpl with delegate list
> java.util.ArrayList
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created
> persistable list EList of type:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> of member emailAddresses owned by srd.impl.ContactImpl with delegate
> list java.util.ArrayList
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created
> persistable list EList of type:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> of member authInfo owned by srd.impl.ContactImpl with delegate list
> java.util.ArrayList
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created
> persistable list EList of type:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> of member urlAddresses owned by srd.impl.ContactImpl with delegate list
> java.util.ArrayList
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created
> persistable list EList of type:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> of member ipAddresses owned by srd.impl.ContactImpl with delegate list
> java.util.ArrayList
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created
> persistable list EList of type:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> of member services owned by srd.impl.ContactImpl with delegate list
> java.util.ArrayList
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created
> persistable list EList of type:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> of member namedEquipment owned by srd.impl.ContactImpl with delegate
> list java.util.ArrayList
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.CascadingAction:
> cascading to saveOrUpdate: Organization
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.event.def.AbstractSaveEventListener: persistent instance
> of: Organization
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener: ignoring
> persistent instance
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener: object already
> associated with session: [Organization#22]
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Cascade: done
> processing cascade ACTION_SAVE_UPDATE for: Contact
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Versioning:
> Seeding: 0
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
> Setting version: 0 for object srd.impl.ContactImpl in idcache
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.ContactImpl field
> physicalAddresses
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.ContactImpl field
> phoneNumbers
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.ContactImpl field
> emailAddresses
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.ContactImpl field
> authInfo
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.ContactImpl field
> urlAddresses
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.ContactImpl field
> ipAddresses
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.ContactImpl field
> services
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.ContactImpl field
> namedEquipment
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.event.def.AbstractSaveEventListener: executing
> identity-insert immediately
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.persister.entity.AbstractEntityPersister: Inserting
> entity: Contact (native id)
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.persister.entity.AbstractEntityPersister: Version: 0
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
> about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.SQL: insert into
> `contact` (e_version, `description`, `firstname`, `lastname`,
> `middlename`, `nickname`, `callorder`, `dtype`) values (?, ?, ?, ?, ?,
> ?, ?, 'Contact')
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
> preparing statement
> 15-Feb-2007 14:16:12,882 [DEBUG]
> org.hibernate.persister.entity.AbstractEntityPersister: Dehydrating
> entity: [Contact#<null>]
> 15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.IntegerType: binding
> '0' to parameter: 1
> 15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.StringType: binding
> '24 HOUR' to parameter: 2
> 15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.StringType: binding
> ' ' to parameter: 3
> 15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.StringType: binding
> ' ' to parameter: 4
> 15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.StringType: binding
> ' ' to parameter: 5
> 15-Feb-2007 14:16:13,983 [DEBUG] org.hibernate.type.StringType: binding
> null to parameter: 6
> 15-Feb-2007 14:16:13,983 [DEBUG] org.hibernate.type.StringType: binding
> null to parameter: 7
> 15-Feb-2007 14:16:14,033 [DEBUG]
> org.hibernate.id.IdentifierGeneratorFactory: Natively generated
> identity: 59
> 15-Feb-2007 14:16:14,033 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
> about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
> 15-Feb-2007 14:16:14,033 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
> closing statement
> 15-Feb-2007 14:16:14,033 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
> Setting id: 59 for object srd.impl.ContactImpl in idcache 15-Feb-2007
> 14:16:14,033 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
> Setting id: 59 for object srd.impl.ContactImpl in idcache 15-Feb-2007
> 14:16:15,155 [DEBUG] org.hibernate.engine.Cascade: processing cascade
> ACTION_SAVE_UPDATE for: Contact
> 15-Feb-2007 14:16:15,155 [DEBUG] org.hibernate.engine.Cascade: cascade
> ACTION_SAVE_UPDATE for collection: Contact.physicalAddresses
> 15-Feb-2007 14:16:15,155 [DEBUG] org.hibernate.engine.Cascade: done
> cascade ACTION_SAVE_UPDATE for collection: Contact.physicalAddresses
> 15-Feb-2007 14:16:15,155 [DEBUG] org.hibernate.engine.Cascade: cascade
> ACTION_SAVE_UPDATE for collection: Contact.phoneNumbers
> 15-Feb-2007 14:16:15,155 [DEBUG] org.hibernate.engine.CascadingAction:
> cascading to saveOrUpdate: PhoneNumber
> 15-Feb-2007 14:16:15,155 [DEBUG]
> org.hibernate.transaction.JDBCTransaction: rollback
> 15-Feb-2007 14:16:15,626 [DEBUG]
> org.hibernate.transaction.JDBCTransaction: rolled back JDBC Connection
> 15-Feb-2007 14:16:15,626 [DEBUG] org.hibernate.jdbc.JDBCContext: after
> transaction completion
> 15-Feb-2007 14:16:15,626 [DEBUG] org.hibernate.jdbc.ConnectionManager:
> aggressively releasing JDBC connection
> 15-Feb-2007 14:16:15,626 [DEBUG] org.hibernate.jdbc.ConnectionManager:
> releasing JDBC connection [ (open PreparedStatements: 0, globally: 0)
> (open ResultSets: 0, globally: 0)]
> 15-Feb-2007 14:16:15,626 [DEBUG]
> org.hibernate.connection.DriverManagerConnectionProvider: returning
> connection to pool, pool size: 1
> 15-Feb-2007 14:16:16,287 [DEBUG] org.hibernate.impl.SessionImpl: after
> transaction completion
> 15-Feb-2007 14:16:16,287 [DEBUG] org.hibernate.impl.SessionImpl: closing
> session
> 15-Feb-2007 14:16:16,287 [DEBUG] org.hibernate.jdbc.ConnectionManager:
> connection already null in cleanup : no action
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [TENEO] stackoverflow when saving a copied resource [message #72102 is a reply to message #72061] Fri, 16 February 2007 21:09 Go to previous messageGo to next message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
Increasing the java stack size did not help...still get the stack overflow.
Mark.
Re: [TENEO] stackoverflow when saving a copied resource [message #72119 is a reply to message #72004] Fri, 16 February 2007 21:11 Go to previous messageGo to next message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
I can create an empty teneo resource, then create objects and save...that
seems to work fine.

I don't know how to replicate the actions during the copy of the XMI
resource without saving the entire resource.

When the save is done is that a single transaction...is it possible to
tell hibernate/teneo to save in smaller, multiple transactions.??

Mark.
Re: [TENEO] stackoverflow when saving a copied resource [message #72228 is a reply to message #72119] Sat, 17 February 2007 04:59 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
It depends on your data, when you save one object and commit then it will automatically also save
all the related objects. So if there are many relations then the save of one object will result in
the save of the complete resource.
Instead of copying the xmi resource into a teneo resource you can also save the objects from the
XMIresource directly in the database. For example by iterating through the root objects in the xmi
resource and then save and commit one by one. If the objects trees (counted from the root objects)
in your resource are fairly independent then this should help.

gr. Martin

mark wrote:
> I can create an empty teneo resource, then create objects and
> save...that seems to work fine.
>
> I don't know how to replicate the actions during the copy of the XMI
> resource without saving the entire resource.
>
> When the save is done is that a single transaction...is it possible to
> tell hibernate/teneo to save in smaller, multiple transactions.??
>
> Mark.
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [TENEO] stackoverflow when saving a copied resource [message #72517 is a reply to message #72228] Tue, 20 February 2007 20:19 Go to previous messageGo to next message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
Martin,

Unfortunately I have a single root object, and all other objects have
relations to some other objects. In fact an object with no relationships
would not exist in the resource...

I have increased the stack size to 50M with no success.

At this point I am not sure how to proceed...or what to try.

Mark.
Re: [TENEO] stackoverflow when saving a copied resource [message #72535 is a reply to message #72517] Wed, 21 February 2007 07:02 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Mark,
You can send me (by email) the xml file (zipped) and the ecore model. I can give it a try. I am on
holiday this week so it will be next week before I can really look at it.

gr. Martin

mark wrote:
> Martin,
>
> Unfortunately I have a single root object, and all other objects have
> relations to some other objects. In fact an object with no relationships
> would not exist in the resource...
>
> I have increased the stack size to 50M with no success.
>
> At this point I am not sure how to proceed...or what to try.
>
> Mark.
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [TENEO] was stackoverflow when saving a copied resource [message #72589 is a reply to message #72535] Thu, 22 February 2007 19:46 Go to previous messageGo to next message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
Martin,

I moved to a Linux box and seemed to have gotten further, I think. The
process runs for over 12 minutes, but then throws the following exception.

org.hibernate.exception.ConstraintViolationException: Could not execute
JDBC batch update
at
org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:71)
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatc her.java:249)
at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(Abstract Batcher.java:92)
at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(Abstract Batcher.java:87)
at
org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(Abs tractBatcher.java:218)
at
org.hibernate.persister.collection.AbstractCollectionPersist er.recreate(AbstractCollectionPersister.java:1119)
at
org.hibernate.action.CollectionRecreateAction.execute(Collec tionRecreateAction.java:26)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:24 8)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue. java:232)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue. java:143)
at
org.hibernate.event.def.AbstractFlushingEventListener.perfor mExecutions(AbstractFlushingEventListener.java:298)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(De faultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at
org.eclipse.emf.teneo.hibernate.resource.HibernateResource.s aveResource(HibernateResource.java:244)
at
org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:365)
at srd.util.xml2teneo.Import2Teneo.main(Import2Teneo.java:263)
Caused by: java.sql.BatchUpdateException: Cannot add or update a child
row: a foreign key constraint fails
at
com.mysql.jdbc.ServerPreparedStatement.executeBatch(ServerPr eparedStatement.java:652)
at
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBa tcher.java:48)
at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatc her.java:242)
... 14 more
Exception in thread "main"
org.eclipse.emf.teneo.hibernate.HbMapperException: Exception when saving
resource srdV3
at
org.eclipse.emf.teneo.hibernate.resource.HibernateResource.s aveResource(HibernateResource.java:248)
at
org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:365)
at srd.util.xml2teneo.Import2Teneo.main(Import2Teneo.java:263)
Caused by: org.hibernate.exception.ConstraintViolationException: Could not
execute JDBC batch update
at
org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:71)
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatc her.java:249)
at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(Abstract Batcher.java:92)
at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(Abstract Batcher.java:87)
at
org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(Abs tractBatcher.java:218)
at
org.hibernate.persister.collection.AbstractCollectionPersist er.recreate(AbstractCollectionPersister.java:1119)
at
org.hibernate.action.CollectionRecreateAction.execute(Collec tionRecreateAction.java:26)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:24 8)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue. java:232)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue. java:143)
at
org.hibernate.event.def.AbstractFlushingEventListener.perfor mExecutions(AbstractFlushingEventListener.java:298)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(De faultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at
org.eclipse.emf.teneo.hibernate.resource.HibernateResource.s aveResource(HibernateResource.java:244)
... 2 more
Caused by: java.sql.BatchUpdateException: Cannot add or update a child
row: a foreign key constraint fails
at
com.mysql.jdbc.ServerPreparedStatement.executeBatch(ServerPr eparedStatement.java:652)
at
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBa tcher.java:48)
at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatc her.java:242)
... 14 more
Re: [TENEO] FIXED:was stackoverflow when saving a copied resource [message #72622 is a reply to message #72589] Thu, 22 February 2007 21:40 Go to previous message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
Martin,

It appears that I have succeeded.

Out of desparation I dropped the databased, recreated it, and then ran my
migration code again...and it worked!!

Now on to testing and evaluating...thanks for the help.

Mark.
Re: [TENEO] stackoverflow when saving a copied resource [message #602687 is a reply to message #71985] Fri, 16 February 2007 17:48 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Mark,
How large is the xmi? When you save the copy to xmi that works fine?
Can you reproduce it for a small set of data?

gr. Martin

mark wrote:
> I am trying to take an XMI resource, copy it, add it to a teneo
> resource, then save the new teneo resource.
>
> I am able to create the teneo resource, load the XMI resource, do the
> copy of the resource with the EMF utility methods, and then add the new
> copy of the resource to the teneo resource. However, when I go to save
> the teneo resorce the process runs for a very long time and then finally
> throws an error and exits. The error log contains the following...
>
> java.lang.StackOverflowError
> at java.nio.CharBuffer.<init>(Unknown Source)
> at java.nio.HeapCharBuffer.<init>(Unknown Source)
> at java.nio.CharBuffer.wrap(Unknown Source)
> at sun.nio.cs.StreamEncoder$CharsetSE.implWrite(Unknown Source)
> at sun.nio.cs.StreamEncoder.write(Unknown Source)
> at sun.nio.cs.StreamEncoder.write(Unknown Source)
> at java.io.OutputStreamWriter.write(Unknown Source)
> at java.io.Writer.write(Unknown Source)
> at
> org.apache.log4j.helpers.CountingQuietWriter.write(CountingQ uietWriter.java:36)
>
> at org.apache.log4j.WriterAppender.subAppend(WriterAppender.jav a:292)
> at
> org.apache.log4j.RollingFileAppender.subAppend(RollingFileAp pender.java:225)
>
> at org.apache.log4j.WriterAppender.append(WriterAppender.java:1 50)
> at
> org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton. java:221)
> at
> org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOn Appenders(AppenderAttachableImpl.java:57)
>
> at org.apache.log4j.Category.callAppenders(Category.java:187)
> at org.apache.log4j.Category.forcedLog(Category.java:372)
> at org.apache.log4j.Category.log(Category.java:864)
> at
> org.apache.commons.logging.impl.Log4JLogger.debug(Log4JLogge r.java:110)
> at
> org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler.getID(IdentifierCacheHandler.java:63)
>
> at
> org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer.getIden tifier(EMFTuplizer.java:65)
>
> at
> org.hibernate.persister.entity.AbstractEntityPersister.getId entifier(AbstractEntityPersister.java:3539)
>
> at
> org.hibernate.persister.entity.AbstractEntityPersister.isTra nsient(AbstractEntityPersister.java:3255)
>
> at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.jav a:181)
> at
> org.hibernate.event.def.AbstractSaveEventListener.getEntityS tate(AbstractSaveEventListener.java:487)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.per formSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:84)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>
> at
> org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl. java:507)
> at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :499)
> at
> org.hibernate.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at
> org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
> at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
> at
> org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:437)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:326)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:180)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:108)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:186)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:175)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.per formSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:98)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>
> at
> org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl. java:507)
> at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :499)
> at
> org.hibernate.engine.CascadingAction$1.cascade(CascadingActi on.java:218)
> at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :216)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at
> org.hibernate.engine.Cascade.cascadeCollectionElements(Casca de.java:296)
> at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java: 242)
> at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java :219)
> at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:16 9)
> at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
> at
> org.hibernate.event.def.AbstractSaveEventListener.cascadeAft erSave(AbstractSaveEventListener.java:437)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:326)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:180)
>
> at
> org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:108)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:186)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:175)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.per formSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:98)
>
> at
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
>
> at
> org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl. java:507)
> at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java :499)
> .....
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [TENEO] stackoverflow when saving a copied resource [message #602693 is a reply to message #72004] Fri, 16 February 2007 18:00 Go to previous message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
The XMI file is 4.5M. I will try to save a smaller amount of data...

I have also attached the end of the console log for you.

15-Feb-2007 14:16:11,710 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.OrganizationImpl field
contacts
15-Feb-2007 14:16:11,710 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.OrganizationImpl field
services
15-Feb-2007 14:16:11,710 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.OrganizationImpl field
namedEquipment
15-Feb-2007 14:16:11,710 [DEBUG]
org.hibernate.event.def.AbstractSaveEventListener: executing
identity-insert immediately
15-Feb-2007 14:16:11,710 [DEBUG]
org.hibernate.persister.entity.AbstractEntityPersister: Inserting entity:
Organization (native id)
15-Feb-2007 14:16:11,710 [DEBUG]
org.hibernate.persister.entity.AbstractEntityPersister: Version: 0
15-Feb-2007 14:16:11,710 [DEBUG] org.hibernate.jdbc.AbstractBatcher: about
to open PreparedStatement (open PreparedStatements: 0, globally: 0)
15-Feb-2007 14:16:11,710 [DEBUG] org.hibernate.SQL: insert into
`organization` (e_version, `name`, `dtype`) values (?, ?, 'Organization')
15-Feb-2007 14:16:11,710 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
preparing statement
15-Feb-2007 14:16:11,750 [DEBUG]
org.hibernate.persister.entity.AbstractEntityPersister: Dehydrating
entity: [Organization#<null>]
15-Feb-2007 14:16:11,750 [DEBUG] org.hibernate.type.IntegerType: binding
'0' to parameter: 1
15-Feb-2007 14:16:11,750 [DEBUG] org.hibernate.type.StringType: binding
'GLVSN (GALAVISION)' to parameter: 2
15-Feb-2007 14:16:11,870 [DEBUG]
org.hibernate.id.IdentifierGeneratorFactory: Natively generated identity:
22
15-Feb-2007 14:16:11,870 [DEBUG] org.hibernate.jdbc.AbstractBatcher: about
to close PreparedStatement (open PreparedStatements: 1, globally: 1)
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
closing statement
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
Setting id: 22 for object srd.impl.OrganizationImpl in idcache
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
Setting id: 22 for object srd.impl.OrganizationImpl in idcache
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Cascade: processing
cascade ACTION_SAVE_UPDATE for: Organization
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Cascade: cascade
ACTION_SAVE_UPDATE for collection: Organization.contacts
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.CascadingAction:
cascading to saveOrUpdate: Contact
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
ID for object srd.impl.ContactImpl not found in id cache
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
ID for object srd.impl.ContactImpl not found in id cache
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.event.def.AbstractSaveEventListener: transient instance of:
Contact
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.event.def.DefaultSaveOrUpdateEventListener: saving transient
instance
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.event.def.AbstractSaveEventListener: saving [Contact#<null>]
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.event.def.AbstractSaveEventListener: executing insertions
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Cascade: processing
cascade ACTION_SAVE_UPDATE for: Contact
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created persistable
list EList of type:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of
member physicalAddresses owned by srd.impl.ContactImpl with delegate list
java.util.ArrayList
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created persistable
list EList of type:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of
member phoneNumbers owned by srd.impl.ContactImpl with delegate list
java.util.ArrayList
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created persistable
list EList of type:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of
member emailAddresses owned by srd.impl.ContactImpl with delegate list
java.util.ArrayList
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created persistable
list EList of type:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of
member authInfo owned by srd.impl.ContactImpl with delegate list
java.util.ArrayList
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created persistable
list EList of type:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of
member urlAddresses owned by srd.impl.ContactImpl with delegate list
java.util.ArrayList
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created persistable
list EList of type:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of
member ipAddresses owned by srd.impl.ContactImpl with delegate list
java.util.ArrayList
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created persistable
list EList of type:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of
member services owned by srd.impl.ContactImpl with delegate list
java.util.ArrayList
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created persistable
list EList of type:
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList of
member namedEquipment owned by srd.impl.ContactImpl with delegate list
java.util.ArrayList
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.CascadingAction:
cascading to saveOrUpdate: Organization
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.event.def.AbstractSaveEventListener: persistent instance of:
Organization
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.event.def.DefaultSaveOrUpdateEventListener: ignoring
persistent instance
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.event.def.DefaultSaveOrUpdateEventListener: object already
associated with session: [Organization#22]
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Cascade: done
processing cascade ACTION_SAVE_UPDATE for: Contact
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Versioning: Seeding:
0
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
Setting version: 0 for object srd.impl.ContactImpl in idcache
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.ContactImpl field
physicalAddresses
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.ContactImpl field
phoneNumbers
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.ContactImpl field
emailAddresses
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.ContactImpl field authInfo
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.ContactImpl field
urlAddresses
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.ContactImpl field ipAddresses
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.ContactImpl field services
15-Feb-2007 14:16:12,842 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler: Set
value java.util.ArrayList for target srd.impl.ContactImpl field
namedEquipment
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.event.def.AbstractSaveEventListener: executing
identity-insert immediately
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.persister.entity.AbstractEntityPersister: Inserting entity:
Contact (native id)
15-Feb-2007 14:16:12,842 [DEBUG]
org.hibernate.persister.entity.AbstractEntityPersister: Version: 0
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.jdbc.AbstractBatcher: about
to open PreparedStatement (open PreparedStatements: 0, globally: 0)
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.SQL: insert into `contact`
(e_version, `description`, `firstname`, `lastname`, `middlename`,
`nickname`, `callorder`, `dtype`) values (?, ?, ?, ?, ?, ?, ?, 'Contact')
15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
preparing statement
15-Feb-2007 14:16:12,882 [DEBUG]
org.hibernate.persister.entity.AbstractEntityPersister: Dehydrating
entity: [Contact#<null>]
15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.IntegerType: binding
'0' to parameter: 1
15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.StringType: binding
'24 HOUR' to parameter: 2
15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.StringType: binding '
' to parameter: 3
15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.StringType: binding '
' to parameter: 4
15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.StringType: binding '
' to parameter: 5
15-Feb-2007 14:16:13,983 [DEBUG] org.hibernate.type.StringType: binding
null to parameter: 6
15-Feb-2007 14:16:13,983 [DEBUG] org.hibernate.type.StringType: binding
null to parameter: 7
15-Feb-2007 14:16:14,033 [DEBUG]
org.hibernate.id.IdentifierGeneratorFactory: Natively generated identity:
59
15-Feb-2007 14:16:14,033 [DEBUG] org.hibernate.jdbc.AbstractBatcher: about
to close PreparedStatement (open PreparedStatements: 1, globally: 1)
15-Feb-2007 14:16:14,033 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
closing statement
15-Feb-2007 14:16:14,033 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
Setting id: 59 for object srd.impl.ContactImpl in idcache
15-Feb-2007 14:16:14,033 [DEBUG]
org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
Setting id: 59 for object srd.impl.ContactImpl in idcache
15-Feb-2007 14:16:15,155 [DEBUG] org.hibernate.engine.Cascade: processing
cascade ACTION_SAVE_UPDATE for: Contact
15-Feb-2007 14:16:15,155 [DEBUG] org.hibernate.engine.Cascade: cascade
ACTION_SAVE_UPDATE for collection: Contact.physicalAddresses
15-Feb-2007 14:16:15,155 [DEBUG] org.hibernate.engine.Cascade: done
cascade ACTION_SAVE_UPDATE for collection: Contact.physicalAddresses
15-Feb-2007 14:16:15,155 [DEBUG] org.hibernate.engine.Cascade: cascade
ACTION_SAVE_UPDATE for collection: Contact.phoneNumbers
15-Feb-2007 14:16:15,155 [DEBUG] org.hibernate.engine.CascadingAction:
cascading to saveOrUpdate: PhoneNumber
15-Feb-2007 14:16:15,155 [DEBUG]
org.hibernate.transaction.JDBCTransaction: rollback
15-Feb-2007 14:16:15,626 [DEBUG]
org.hibernate.transaction.JDBCTransaction: rolled back JDBC Connection
15-Feb-2007 14:16:15,626 [DEBUG] org.hibernate.jdbc.JDBCContext: after
transaction completion
15-Feb-2007 14:16:15,626 [DEBUG] org.hibernate.jdbc.ConnectionManager:
aggressively releasing JDBC connection
15-Feb-2007 14:16:15,626 [DEBUG] org.hibernate.jdbc.ConnectionManager:
releasing JDBC connection [ (open PreparedStatements: 0, globally: 0)
(open ResultSets: 0, globally: 0)]
15-Feb-2007 14:16:15,626 [DEBUG]
org.hibernate.connection.DriverManagerConnectionProvider: returning
connection to pool, pool size: 1
15-Feb-2007 14:16:16,287 [DEBUG] org.hibernate.impl.SessionImpl: after
transaction completion
15-Feb-2007 14:16:16,287 [DEBUG] org.hibernate.impl.SessionImpl: closing
session
15-Feb-2007 14:16:16,287 [DEBUG] org.hibernate.jdbc.ConnectionManager:
connection already null in cleanup : no action
Re: [TENEO] stackoverflow when saving a copied resource [message #602703 is a reply to message #72023] Fri, 16 February 2007 19:03 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Could it be a java stack size issue? It is maybe easier to set the java stack size to a higher value
and test that.

gr. Martin

mark wrote:
> The XMI file is 4.5M. I will try to save a smaller amount of data...
>
> I have also attached the end of the console log for you.
>
> 15-Feb-2007 14:16:11,710 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.OrganizationImpl field
> contacts
> 15-Feb-2007 14:16:11,710 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.OrganizationImpl field
> services
> 15-Feb-2007 14:16:11,710 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.OrganizationImpl field
> namedEquipment
> 15-Feb-2007 14:16:11,710 [DEBUG]
> org.hibernate.event.def.AbstractSaveEventListener: executing
> identity-insert immediately
> 15-Feb-2007 14:16:11,710 [DEBUG]
> org.hibernate.persister.entity.AbstractEntityPersister: Inserting
> entity: Organization (native id)
> 15-Feb-2007 14:16:11,710 [DEBUG]
> org.hibernate.persister.entity.AbstractEntityPersister: Version: 0
> 15-Feb-2007 14:16:11,710 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
> about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
> 15-Feb-2007 14:16:11,710 [DEBUG] org.hibernate.SQL: insert into
> `organization` (e_version, `name`, `dtype`) values (?, ?, 'Organization')
> 15-Feb-2007 14:16:11,710 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
> preparing statement
> 15-Feb-2007 14:16:11,750 [DEBUG]
> org.hibernate.persister.entity.AbstractEntityPersister: Dehydrating
> entity: [Organization#<null>]
> 15-Feb-2007 14:16:11,750 [DEBUG] org.hibernate.type.IntegerType: binding
> '0' to parameter: 1
> 15-Feb-2007 14:16:11,750 [DEBUG] org.hibernate.type.StringType: binding
> 'GLVSN (GALAVISION)' to parameter: 2
> 15-Feb-2007 14:16:11,870 [DEBUG]
> org.hibernate.id.IdentifierGeneratorFactory: Natively generated
> identity: 22
> 15-Feb-2007 14:16:11,870 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
> about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
> closing statement
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
> Setting id: 22 for object srd.impl.OrganizationImpl in idcache
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
> Setting id: 22 for object srd.impl.OrganizationImpl in idcache
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Cascade:
> processing cascade ACTION_SAVE_UPDATE for: Organization
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Cascade: cascade
> ACTION_SAVE_UPDATE for collection: Organization.contacts
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.CascadingAction:
> cascading to saveOrUpdate: Contact
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
> ID for object srd.impl.ContactImpl not found in id cache
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
> ID for object srd.impl.ContactImpl not found in id cache
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.event.def.AbstractSaveEventListener: transient instance
> of: Contact
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener: saving
> transient instance
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.event.def.AbstractSaveEventListener: saving [Contact#<null>]
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.event.def.AbstractSaveEventListener: executing insertions
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Cascade:
> processing cascade ACTION_SAVE_UPDATE for: Contact
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created
> persistable list EList of type:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> of member physicalAddresses owned by srd.impl.ContactImpl with delegate
> list java.util.ArrayList
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created
> persistable list EList of type:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> of member phoneNumbers owned by srd.impl.ContactImpl with delegate list
> java.util.ArrayList
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created
> persistable list EList of type:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> of member emailAddresses owned by srd.impl.ContactImpl with delegate
> list java.util.ArrayList
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created
> persistable list EList of type:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> of member authInfo owned by srd.impl.ContactImpl with delegate list
> java.util.ArrayList
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created
> persistable list EList of type:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> of member urlAddresses owned by srd.impl.ContactImpl with delegate list
> java.util.ArrayList
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created
> persistable list EList of type:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> of member ipAddresses owned by srd.impl.ContactImpl with delegate list
> java.util.ArrayList
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created
> persistable list EList of type:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> of member services owned by srd.impl.ContactImpl with delegate list
> java.util.ArrayList
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.mapping.elist.PersistableEList: Created
> persistable list EList of type:
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList
> of member namedEquipment owned by srd.impl.ContactImpl with delegate
> list java.util.ArrayList
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.CascadingAction:
> cascading to saveOrUpdate: Organization
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.event.def.AbstractSaveEventListener: persistent instance
> of: Organization
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener: ignoring
> persistent instance
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.event.def.DefaultSaveOrUpdateEventListener: object already
> associated with session: [Organization#22]
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Cascade: done
> processing cascade ACTION_SAVE_UPDATE for: Contact
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.engine.Versioning:
> Seeding: 0
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
> Setting version: 0 for object srd.impl.ContactImpl in idcache
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.ContactImpl field
> physicalAddresses
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.ContactImpl field
> phoneNumbers
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.ContactImpl field
> emailAddresses
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.ContactImpl field
> authInfo
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.ContactImpl field
> urlAddresses
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.ContactImpl field
> ipAddresses
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.ContactImpl field
> services
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler:
> Set value java.util.ArrayList for target srd.impl.ContactImpl field
> namedEquipment
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.event.def.AbstractSaveEventListener: executing
> identity-insert immediately
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.persister.entity.AbstractEntityPersister: Inserting
> entity: Contact (native id)
> 15-Feb-2007 14:16:12,842 [DEBUG]
> org.hibernate.persister.entity.AbstractEntityPersister: Version: 0
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
> about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.SQL: insert into
> `contact` (e_version, `description`, `firstname`, `lastname`,
> `middlename`, `nickname`, `callorder`, `dtype`) values (?, ?, ?, ?, ?,
> ?, ?, 'Contact')
> 15-Feb-2007 14:16:12,842 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
> preparing statement
> 15-Feb-2007 14:16:12,882 [DEBUG]
> org.hibernate.persister.entity.AbstractEntityPersister: Dehydrating
> entity: [Contact#<null>]
> 15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.IntegerType: binding
> '0' to parameter: 1
> 15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.StringType: binding
> '24 HOUR' to parameter: 2
> 15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.StringType: binding
> ' ' to parameter: 3
> 15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.StringType: binding
> ' ' to parameter: 4
> 15-Feb-2007 14:16:12,882 [DEBUG] org.hibernate.type.StringType: binding
> ' ' to parameter: 5
> 15-Feb-2007 14:16:13,983 [DEBUG] org.hibernate.type.StringType: binding
> null to parameter: 6
> 15-Feb-2007 14:16:13,983 [DEBUG] org.hibernate.type.StringType: binding
> null to parameter: 7
> 15-Feb-2007 14:16:14,033 [DEBUG]
> org.hibernate.id.IdentifierGeneratorFactory: Natively generated
> identity: 59
> 15-Feb-2007 14:16:14,033 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
> about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
> 15-Feb-2007 14:16:14,033 [DEBUG] org.hibernate.jdbc.AbstractBatcher:
> closing statement
> 15-Feb-2007 14:16:14,033 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
> Setting id: 59 for object srd.impl.ContactImpl in idcache 15-Feb-2007
> 14:16:14,033 [DEBUG]
> org.eclipse.emf.teneo.hibernate.mapping.identifier.Identifie rCacheHandler:
> Setting id: 59 for object srd.impl.ContactImpl in idcache 15-Feb-2007
> 14:16:15,155 [DEBUG] org.hibernate.engine.Cascade: processing cascade
> ACTION_SAVE_UPDATE for: Contact
> 15-Feb-2007 14:16:15,155 [DEBUG] org.hibernate.engine.Cascade: cascade
> ACTION_SAVE_UPDATE for collection: Contact.physicalAddresses
> 15-Feb-2007 14:16:15,155 [DEBUG] org.hibernate.engine.Cascade: done
> cascade ACTION_SAVE_UPDATE for collection: Contact.physicalAddresses
> 15-Feb-2007 14:16:15,155 [DEBUG] org.hibernate.engine.Cascade: cascade
> ACTION_SAVE_UPDATE for collection: Contact.phoneNumbers
> 15-Feb-2007 14:16:15,155 [DEBUG] org.hibernate.engine.CascadingAction:
> cascading to saveOrUpdate: PhoneNumber
> 15-Feb-2007 14:16:15,155 [DEBUG]
> org.hibernate.transaction.JDBCTransaction: rollback
> 15-Feb-2007 14:16:15,626 [DEBUG]
> org.hibernate.transaction.JDBCTransaction: rolled back JDBC Connection
> 15-Feb-2007 14:16:15,626 [DEBUG] org.hibernate.jdbc.JDBCContext: after
> transaction completion
> 15-Feb-2007 14:16:15,626 [DEBUG] org.hibernate.jdbc.ConnectionManager:
> aggressively releasing JDBC connection
> 15-Feb-2007 14:16:15,626 [DEBUG] org.hibernate.jdbc.ConnectionManager:
> releasing JDBC connection [ (open PreparedStatements: 0, globally: 0)
> (open ResultSets: 0, globally: 0)]
> 15-Feb-2007 14:16:15,626 [DEBUG]
> org.hibernate.connection.DriverManagerConnectionProvider: returning
> connection to pool, pool size: 1
> 15-Feb-2007 14:16:16,287 [DEBUG] org.hibernate.impl.SessionImpl: after
> transaction completion
> 15-Feb-2007 14:16:16,287 [DEBUG] org.hibernate.impl.SessionImpl: closing
> session
> 15-Feb-2007 14:16:16,287 [DEBUG] org.hibernate.jdbc.ConnectionManager:
> connection already null in cleanup : no action
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [TENEO] stackoverflow when saving a copied resource [message #602714 is a reply to message #72061] Fri, 16 February 2007 21:09 Go to previous message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
Increasing the java stack size did not help...still get the stack overflow.
Mark.
Re: [TENEO] stackoverflow when saving a copied resource [message #602716 is a reply to message #72004] Fri, 16 February 2007 21:11 Go to previous message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
I can create an empty teneo resource, then create objects and save...that
seems to work fine.

I don't know how to replicate the actions during the copy of the XMI
resource without saving the entire resource.

When the save is done is that a single transaction...is it possible to
tell hibernate/teneo to save in smaller, multiple transactions.??

Mark.
Re: [TENEO] stackoverflow when saving a copied resource [message #602752 is a reply to message #72119] Sat, 17 February 2007 04:59 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
It depends on your data, when you save one object and commit then it will automatically also save
all the related objects. So if there are many relations then the save of one object will result in
the save of the complete resource.
Instead of copying the xmi resource into a teneo resource you can also save the objects from the
XMIresource directly in the database. For example by iterating through the root objects in the xmi
resource and then save and commit one by one. If the objects trees (counted from the root objects)
in your resource are fairly independent then this should help.

gr. Martin

mark wrote:
> I can create an empty teneo resource, then create objects and
> save...that seems to work fine.
>
> I don't know how to replicate the actions during the copy of the XMI
> resource without saving the entire resource.
>
> When the save is done is that a single transaction...is it possible to
> tell hibernate/teneo to save in smaller, multiple transactions.??
>
> Mark.
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [TENEO] stackoverflow when saving a copied resource [message #602871 is a reply to message #72228] Tue, 20 February 2007 20:19 Go to previous message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
Martin,

Unfortunately I have a single root object, and all other objects have
relations to some other objects. In fact an object with no relationships
would not exist in the resource...

I have increased the stack size to 50M with no success.

At this point I am not sure how to proceed...or what to try.

Mark.
Re: [TENEO] stackoverflow when saving a copied resource [message #602875 is a reply to message #72517] Wed, 21 February 2007 07:02 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Mark,
You can send me (by email) the xml file (zipped) and the ecore model. I can give it a try. I am on
holiday this week so it will be next week before I can really look at it.

gr. Martin

mark wrote:
> Martin,
>
> Unfortunately I have a single root object, and all other objects have
> relations to some other objects. In fact an object with no relationships
> would not exist in the resource...
>
> I have increased the stack size to 50M with no success.
>
> At this point I am not sure how to proceed...or what to try.
>
> Mark.
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [TENEO] was stackoverflow when saving a copied resource [message #602885 is a reply to message #72535] Thu, 22 February 2007 19:46 Go to previous message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
Martin,

I moved to a Linux box and seemed to have gotten further, I think. The
process runs for over 12 minutes, but then throws the following exception.

org.hibernate.exception.ConstraintViolationException: Could not execute
JDBC batch update
at
org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:71)
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatc her.java:249)
at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(Abstract Batcher.java:92)
at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(Abstract Batcher.java:87)
at
org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(Abs tractBatcher.java:218)
at
org.hibernate.persister.collection.AbstractCollectionPersist er.recreate(AbstractCollectionPersister.java:1119)
at
org.hibernate.action.CollectionRecreateAction.execute(Collec tionRecreateAction.java:26)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:24 8)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue. java:232)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue. java:143)
at
org.hibernate.event.def.AbstractFlushingEventListener.perfor mExecutions(AbstractFlushingEventListener.java:298)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(De faultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at
org.eclipse.emf.teneo.hibernate.resource.HibernateResource.s aveResource(HibernateResource.java:244)
at
org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:365)
at srd.util.xml2teneo.Import2Teneo.main(Import2Teneo.java:263)
Caused by: java.sql.BatchUpdateException: Cannot add or update a child
row: a foreign key constraint fails
at
com.mysql.jdbc.ServerPreparedStatement.executeBatch(ServerPr eparedStatement.java:652)
at
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBa tcher.java:48)
at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatc her.java:242)
... 14 more
Exception in thread "main"
org.eclipse.emf.teneo.hibernate.HbMapperException: Exception when saving
resource srdV3
at
org.eclipse.emf.teneo.hibernate.resource.HibernateResource.s aveResource(HibernateResource.java:248)
at
org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:365)
at srd.util.xml2teneo.Import2Teneo.main(Import2Teneo.java:263)
Caused by: org.hibernate.exception.ConstraintViolationException: Could not
execute JDBC batch update
at
org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:71)
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatc her.java:249)
at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(Abstract Batcher.java:92)
at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(Abstract Batcher.java:87)
at
org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(Abs tractBatcher.java:218)
at
org.hibernate.persister.collection.AbstractCollectionPersist er.recreate(AbstractCollectionPersister.java:1119)
at
org.hibernate.action.CollectionRecreateAction.execute(Collec tionRecreateAction.java:26)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:24 8)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue. java:232)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue. java:143)
at
org.hibernate.event.def.AbstractFlushingEventListener.perfor mExecutions(AbstractFlushingEventListener.java:298)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(De faultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at
org.eclipse.emf.teneo.hibernate.resource.HibernateResource.s aveResource(HibernateResource.java:244)
... 2 more
Caused by: java.sql.BatchUpdateException: Cannot add or update a child
row: a foreign key constraint fails
at
com.mysql.jdbc.ServerPreparedStatement.executeBatch(ServerPr eparedStatement.java:652)
at
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBa tcher.java:48)
at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatc her.java:242)
... 14 more
Re: [TENEO] FIXED:was stackoverflow when saving a copied resource [message #602893 is a reply to message #72589] Thu, 22 February 2007 21:40 Go to previous message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
Martin,

It appears that I have succeeded.

Out of desparation I dropped the databased, recreated it, and then ran my
migration code again...and it worked!!

Now on to testing and evaluating...thanks for the help.

Mark.
Previous Topic:EMFT - OCL Release 1.0.1 build
Next Topic:[Teneo] Date and DateTime mapping?
Goto Forum:
  


Current Time: Sat Oct 24 00:49:16 GMT 2020

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

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

Back to the top