Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Saving elements on database(Unable to save elements using hibernate store)
[CDO] Saving elements on database [message #536161] Thu, 27 May 2010 09:42 Go to next message
Mariam Chahid is currently offline Mariam ChahidFriend
Messages: 2
Registered: May 2010
Junior Member
Hi everybody,

I'm using CDO 3 with hibernate store to persist my models.
I've tried using the Company example it works fine, but with my metamodel it fails.
My metamodel contains 3 subpackages which references each others in a cyclic way.
When I start the server, and execute my class which creates elements on the cdoresource, an exception happens at transaction commit and my tables are not created on the database.
When I restart the server, my packages are registered so my tables are created at this time, and if i execute the code again, it works fine.
After debugging, I discovered that when an eclass references another one existing in another package, the last one is not considered as loaded yet so it's recognized by its eproxy uri.So it's not found in the map which associates Model elements to PAnnotatedEModelElement.
I've tried separating my subpackages in different models it still doesn't work.

Here is the exception:

[ERROR] No annotated model element present for: null for type EClass has its epackage been registered with Teneo?
java.lang.IllegalArgumentException: No annotated model element present for: null for type EClass has its epackage been registered with Teneo?
at org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:365)
at org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:301)
at org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann otate(EClassAnnotator.java:93)
at org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r.annotate(HbEClassAnnotator.java:56)
at org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .processPackage(AnnotationGenerator.java:168)
at org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .map(AnnotationGenerator.java:136)
at org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:180)
at org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:73)
at org.eclipse.emf.teneo.hibernate.mapper.MappingUtil.generateM apping(MappingUtil.java:82)
at org.eclipse.emf.cdo.server.hibernate.teneo.CDOMappingGenerat or.generateMapping(CDOMappingGenerator.java:119)
at org.eclipse.emf.cdo.server.hibernate.internal.teneo.TeneoHib ernateMappingProvider.generateMapping(TeneoHibernateMappingP rovider.java:117)
at org.eclipse.emf.cdo.server.hibernate.internal.teneo.TeneoHib ernateMappingProvider.getMapping(TeneoHibernateMappingProvid er.java:68)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore .initConfiguration(HibernateStore.java:392)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore .getHibernateSessionFactory(HibernateStore.java:238)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore Accessor.beginHibernateSession(HibernateStoreAccessor.java:1 67)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore Accessor.getNewHibernateSession(HibernateStoreAccessor.java: 264)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore Accessor.write(HibernateStoreAccessor.java:516)
at org.eclipse.emf.cdo.internal.server.TransactionCommitContext .write(TransactionCommitContext.java:298)
at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLo op(InternalCommitContext.java:35)
at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLo op(InternalCommitContext.java:1)
at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(Pr ogressDistributor.java:96)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra nsactionIndication.indicatingCommit(CommitTransactionIndicat ion.java:270)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra nsactionIndication.indicating(CommitTransactionIndication.ja va:161)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra nsactionIndication.indicating(CommitTransactionIndication.ja va:115)
at org.eclipse.net4j.signal.IndicationWithMonitoring.indicating (IndicationWithMonitoring.java:84)
at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedIn put(IndicationWithResponse.java:90)
at org.eclipse.net4j.signal.Signal.doInput(Signal.java:311)
at org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:63)
at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(In dicationWithMonitoring.java:63)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:238)
at org.eclipse.net4j.signal.Signal.run(Signal.java:146)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
[ERROR] No annotated model element present for: null for type EClass has its epackage been registered with Teneo?
java.lang.IllegalArgumentException: No annotated model element present for: null for type EClass has its epackage been registered with Teneo?
at org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:365)
at org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:301)
at org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann otate(EClassAnnotator.java:93)
at org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato r.annotate(HbEClassAnnotator.java:56)
at org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .processPackage(AnnotationGenerator.java:168)
at org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator .map(AnnotationGenerator.java:136)
at org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:180)
at org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:73)
at org.eclipse.emf.teneo.hibernate.mapper.MappingUtil.generateM apping(MappingUtil.java:82)
at org.eclipse.emf.cdo.server.hibernate.teneo.CDOMappingGenerat or.generateMapping(CDOMappingGenerator.java:119)
at org.eclipse.emf.cdo.server.hibernate.internal.teneo.TeneoHib ernateMappingProvider.generateMapping(TeneoHibernateMappingP rovider.java:117)
at org.eclipse.emf.cdo.server.hibernate.internal.teneo.TeneoHib ernateMappingProvider.getMapping(TeneoHibernateMappingProvid er.java:68)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore .initConfiguration(HibernateStore.java:392)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore .getHibernateSessionFactory(HibernateStore.java:238)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore Accessor.beginHibernateSession(HibernateStoreAccessor.java:1 67)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore Accessor.getNewHibernateSession(HibernateStoreAccessor.java: 264)
at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore Accessor.write(HibernateStoreAccessor.java:516)
at org.eclipse.emf.cdo.internal.server.TransactionCommitContext .write(TransactionCommitContext.java:298)
at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLo op(InternalCommitContext.java:35)
at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLo op(InternalCommitContext.java:1)
at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(Pr ogressDistributor.java:96)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra nsactionIndication.indicatingCommit(CommitTransactionIndicat ion.java:270)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra nsactionIndication.indicating(CommitTransactionIndication.ja va:161)
at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra nsactionIndication.indicating(CommitTransactionIndication.ja va:115)
at org.eclipse.net4j.signal.IndicationWithMonitoring.indicating (IndicationWithMonitoring.java:84)
at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedIn put(IndicationWithResponse.java:90)
at org.eclipse.net4j.signal.Signal.doInput(Signal.java:311)
at org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi cationWithResponse.java:63)
at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(In dicationWithMonitoring.java:63)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:238)
at org.eclipse.net4j.signal.Signal.run(Signal.java:146)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)

Thanks in advance
Re: [CDO] Saving elements on database [message #536163 is a reply to message #536161] Thu, 27 May 2010 09:50 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Chahid,
Yes the hibernate store needs all related epackages to be registered at the same time. I am not sure if/how this is done
in CDO. Maybe Eike or others can pitch in with a reply here.

gr. Martin

Chahid Mariam wrote:
> Hi everybody,
>
> I'm using CDO 3 with hibernate store to persist my models.
> I've tried using the Company example it works fine, but with my
> metamodel it fails.
> My metamodel contains 3 subpackages which references each others in a
> cyclic way.
> When I start the server, and execute my class which creates elements on
> the cdoresource, an exception happens at transaction commit and my
> tables are not created on the database.
> When I restart the server, my packages are registered so my tables are
> created at this time, and if i execute the code again, it works fine.
> After debugging, I discovered that when an eclass references another one
> existing in another package, the last one is not considered as loaded
> yet so it's recognized by its eproxy uri.So it's not found in the map
> which associates Model elements to PAnnotatedEModelElement.
> I've tried separating my subpackages in different models it still
> doesn't work.
>
> Here is the exception:
> [ERROR] No annotated model element present for: null for type EClass
> has its epackage been registered with Teneo?
> java.lang.IllegalArgumentException: No annotated model element present
> for: null for type EClass has its epackage been registered with Teneo?
> at org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod
> elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:365)
> at org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod
> elImpl.getPAnnotated(PAnnotatedModelImpl.java:301)
> at org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann
> otate(EClassAnnotator.java:93)
> at org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato
> r.annotate(HbEClassAnnotator.java:56)
> at org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator
> .processPackage(AnnotationGenerator.java:168)
> at org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator
> .map(AnnotationGenerator.java:136)
> at org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB
> uilder.buildMapping(PersistenceMappingBuilder.java:180)
> at org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB
> uilder.buildMapping(PersistenceMappingBuilder.java:73)
> at org.eclipse.emf.teneo.hibernate.mapper.MappingUtil.generateM
> apping(MappingUtil.java:82)
> at org.eclipse.emf.cdo.server.hibernate.teneo.CDOMappingGenerat
> or.generateMapping(CDOMappingGenerator.java:119)
> at org.eclipse.emf.cdo.server.hibernate.internal.teneo.TeneoHib
> ernateMappingProvider.generateMapping(TeneoHibernateMappingP
> rovider.java:117)
> at org.eclipse.emf.cdo.server.hibernate.internal.teneo.TeneoHib
> ernateMappingProvider.getMapping(TeneoHibernateMappingProvid er.java:68)
> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
> .initConfiguration(HibernateStore.java:392)
> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
> .getHibernateSessionFactory(HibernateStore.java:238)
> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
> Accessor.beginHibernateSession(HibernateStoreAccessor.java:1 67)
> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
> Accessor.getNewHibernateSession(HibernateStoreAccessor.java: 264)
> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
> Accessor.write(HibernateStoreAccessor.java:516)
> at org.eclipse.emf.cdo.internal.server.TransactionCommitContext
> .write(TransactionCommitContext.java:298)
> at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLo
> op(InternalCommitContext.java:35)
> at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLo
> op(InternalCommitContext.java:1)
> at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(Pr
> ogressDistributor.java:96)
> at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra
> nsactionIndication.indicatingCommit(CommitTransactionIndicat ion.java:270)
> at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra
> nsactionIndication.indicating(CommitTransactionIndication.ja va:161)
> at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra
> nsactionIndication.indicating(CommitTransactionIndication.ja va:115)
> at org.eclipse.net4j.signal.IndicationWithMonitoring.indicating
> (IndicationWithMonitoring.java:84)
> at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedIn
> put(IndicationWithResponse.java:90)
> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:311)
> at org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi
> cationWithResponse.java:63)
> at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(In
> dicationWithMonitoring.java:63)
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:238)
> at org.eclipse.net4j.signal.Signal.run(Signal.java:146)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa
> dPoolExecutor.java:885)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
> lExecutor.java:907)
> at java.lang.Thread.run(Thread.java:619)
> [ERROR] No annotated model element present for: null for type EClass
> has its epackage been registered with Teneo?
> java.lang.IllegalArgumentException: No annotated model element present
> for: null for type EClass has its epackage been registered with Teneo?
> at org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod
> elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:365)
> at org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod
> elImpl.getPAnnotated(PAnnotatedModelImpl.java:301)
> at org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann
> otate(EClassAnnotator.java:93)
> at org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato
> r.annotate(HbEClassAnnotator.java:56)
> at org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator
> .processPackage(AnnotationGenerator.java:168)
> at org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator
> .map(AnnotationGenerator.java:136)
> at org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB
> uilder.buildMapping(PersistenceMappingBuilder.java:180)
> at org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB
> uilder.buildMapping(PersistenceMappingBuilder.java:73)
> at org.eclipse.emf.teneo.hibernate.mapper.MappingUtil.generateM
> apping(MappingUtil.java:82)
> at org.eclipse.emf.cdo.server.hibernate.teneo.CDOMappingGenerat
> or.generateMapping(CDOMappingGenerator.java:119)
> at org.eclipse.emf.cdo.server.hibernate.internal.teneo.TeneoHib
> ernateMappingProvider.generateMapping(TeneoHibernateMappingP
> rovider.java:117)
> at org.eclipse.emf.cdo.server.hibernate.internal.teneo.TeneoHib
> ernateMappingProvider.getMapping(TeneoHibernateMappingProvid er.java:68)
> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
> .initConfiguration(HibernateStore.java:392)
> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
> .getHibernateSessionFactory(HibernateStore.java:238)
> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
> Accessor.beginHibernateSession(HibernateStoreAccessor.java:1 67)
> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
> Accessor.getNewHibernateSession(HibernateStoreAccessor.java: 264)
> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
> Accessor.write(HibernateStoreAccessor.java:516)
> at org.eclipse.emf.cdo.internal.server.TransactionCommitContext
> .write(TransactionCommitContext.java:298)
> at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLo
> op(InternalCommitContext.java:35)
> at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLo
> op(InternalCommitContext.java:1)
> at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(Pr
> ogressDistributor.java:96)
> at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra
> nsactionIndication.indicatingCommit(CommitTransactionIndicat ion.java:270)
> at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra
> nsactionIndication.indicating(CommitTransactionIndication.ja va:161)
> at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra
> nsactionIndication.indicating(CommitTransactionIndication.ja va:115)
> at org.eclipse.net4j.signal.IndicationWithMonitoring.indicating
> (IndicationWithMonitoring.java:84)
> at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedIn
> put(IndicationWithResponse.java:90)
> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:311)
> at org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi
> cationWithResponse.java:63)
> at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(In
> dicationWithMonitoring.java:63)
> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:238)
> at org.eclipse.net4j.signal.Signal.run(Signal.java:146)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa
> dPoolExecutor.java:885)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
> lExecutor.java:907)
> at java.lang.Thread.run(Thread.java:619)
>
> Thanks in advance


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [CDO] Saving elements on database [message #536168 is a reply to message #536163] Thu, 27 May 2010 10:01 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Guys,

I think we need a bugzilla with everything required to reproduce the issue.

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 27.05.2010 11:50, schrieb Martin Taal:
> Hi Chahid,
> Yes the hibernate store needs all related epackages to be registered
> at the same time. I am not sure if/how this is done in CDO. Maybe Eike
> or others can pitch in with a reply here.
>
> gr. Martin
>
> Chahid Mariam wrote:
>> Hi everybody,
>>
>> I'm using CDO 3 with hibernate store to persist my models.
>> I've tried using the Company example it works fine, but with my
>> metamodel it fails.
>> My metamodel contains 3 subpackages which references each others in a
>> cyclic way.
>> When I start the server, and execute my class which creates elements
>> on the cdoresource, an exception happens at transaction commit and my
>> tables are not created on the database.
>> When I restart the server, my packages are registered so my tables
>> are created at this time, and if i execute the code again, it works
>> fine.
>> After debugging, I discovered that when an eclass references another
>> one existing in another package, the last one is not considered as
>> loaded yet so it's recognized by its eproxy uri.So it's not found in
>> the map which associates Model elements to PAnnotatedEModelElement.
>> I've tried separating my subpackages in different models it still
>> doesn't work.
>>
>> Here is the exception:
>> [ERROR] No annotated model element present for: null for type EClass
>> has its epackage been registered with Teneo?
>> java.lang.IllegalArgumentException: No annotated model element
>> present for: null for type EClass has its epackage been registered
>> with Teneo?
>> at org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod
>> elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:365)
>> at org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod
>> elImpl.getPAnnotated(PAnnotatedModelImpl.java:301)
>> at org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann
>> otate(EClassAnnotator.java:93)
>> at org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato
>> r.annotate(HbEClassAnnotator.java:56)
>> at org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator
>> .processPackage(AnnotationGenerator.java:168)
>> at org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator
>> .map(AnnotationGenerator.java:136)
>> at org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB
>> uilder.buildMapping(PersistenceMappingBuilder.java:180)
>> at org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB
>> uilder.buildMapping(PersistenceMappingBuilder.java:73)
>> at org.eclipse.emf.teneo.hibernate.mapper.MappingUtil.generateM
>> apping(MappingUtil.java:82)
>> at org.eclipse.emf.cdo.server.hibernate.teneo.CDOMappingGenerat
>> or.generateMapping(CDOMappingGenerator.java:119)
>> at org.eclipse.emf.cdo.server.hibernate.internal.teneo.TeneoHib
>> ernateMappingProvider.generateMapping(TeneoHibernateMappingP
>> rovider.java:117)
>> at org.eclipse.emf.cdo.server.hibernate.internal.teneo.TeneoHib
>> ernateMappingProvider.getMapping(TeneoHibernateMappingProvid er.java:68)
>> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
>> .initConfiguration(HibernateStore.java:392)
>> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
>> .getHibernateSessionFactory(HibernateStore.java:238)
>> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
>> Accessor.beginHibernateSession(HibernateStoreAccessor.java:1 67)
>> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
>> Accessor.getNewHibernateSession(HibernateStoreAccessor.java: 264)
>> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
>> Accessor.write(HibernateStoreAccessor.java:516)
>> at org.eclipse.emf.cdo.internal.server.TransactionCommitContext
>> .write(TransactionCommitContext.java:298)
>> at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLo
>> op(InternalCommitContext.java:35)
>> at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLo
>> op(InternalCommitContext.java:1)
>> at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(Pr
>> ogressDistributor.java:96)
>> at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra
>> nsactionIndication.indicatingCommit(CommitTransactionIndicat
>> ion.java:270)
>> at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra
>> nsactionIndication.indicating(CommitTransactionIndication.ja va:161)
>> at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra
>> nsactionIndication.indicating(CommitTransactionIndication.ja va:115)
>> at org.eclipse.net4j.signal.IndicationWithMonitoring.indicating
>> (IndicationWithMonitoring.java:84)
>> at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedIn
>> put(IndicationWithResponse.java:90)
>> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:311)
>> at org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi
>> cationWithResponse.java:63)
>> at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(In
>> dicationWithMonitoring.java:63)
>> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:238)
>> at org.eclipse.net4j.signal.Signal.run(Signal.java:146)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa
>> dPoolExecutor.java:885)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>> lExecutor.java:907)
>> at java.lang.Thread.run(Thread.java:619)
>> [ERROR] No annotated model element present for: null for type EClass
>> has its epackage been registered with Teneo?
>> java.lang.IllegalArgumentException: No annotated model element
>> present for: null for type EClass has its epackage been registered
>> with Teneo?
>> at org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod
>> elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:365)
>> at org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod
>> elImpl.getPAnnotated(PAnnotatedModelImpl.java:301)
>> at org.eclipse.emf.teneo.annotations.mapper.EClassAnnotator.ann
>> otate(EClassAnnotator.java:93)
>> at org.eclipse.emf.teneo.hibernate.annotations.HbEClassAnnotato
>> r.annotate(HbEClassAnnotator.java:56)
>> at org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator
>> .processPackage(AnnotationGenerator.java:168)
>> at org.eclipse.emf.teneo.annotations.mapper.AnnotationGenerator
>> .map(AnnotationGenerator.java:136)
>> at org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB
>> uilder.buildMapping(PersistenceMappingBuilder.java:180)
>> at org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB
>> uilder.buildMapping(PersistenceMappingBuilder.java:73)
>> at org.eclipse.emf.teneo.hibernate.mapper.MappingUtil.generateM
>> apping(MappingUtil.java:82)
>> at org.eclipse.emf.cdo.server.hibernate.teneo.CDOMappingGenerat
>> or.generateMapping(CDOMappingGenerator.java:119)
>> at org.eclipse.emf.cdo.server.hibernate.internal.teneo.TeneoHib
>> ernateMappingProvider.generateMapping(TeneoHibernateMappingP
>> rovider.java:117)
>> at org.eclipse.emf.cdo.server.hibernate.internal.teneo.TeneoHib
>> ernateMappingProvider.getMapping(TeneoHibernateMappingProvid er.java:68)
>> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
>> .initConfiguration(HibernateStore.java:392)
>> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
>> .getHibernateSessionFactory(HibernateStore.java:238)
>> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
>> Accessor.beginHibernateSession(HibernateStoreAccessor.java:1 67)
>> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
>> Accessor.getNewHibernateSession(HibernateStoreAccessor.java: 264)
>> at org.eclipse.emf.cdo.server.internal.hibernate.HibernateStore
>> Accessor.write(HibernateStoreAccessor.java:516)
>> at org.eclipse.emf.cdo.internal.server.TransactionCommitContext
>> .write(TransactionCommitContext.java:298)
>> at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLo
>> op(InternalCommitContext.java:35)
>> at org.eclipse.emf.cdo.spi.server.InternalCommitContext$1.runLo
>> op(InternalCommitContext.java:1)
>> at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(Pr
>> ogressDistributor.java:96)
>> at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra
>> nsactionIndication.indicatingCommit(CommitTransactionIndicat
>> ion.java:270)
>> at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra
>> nsactionIndication.indicating(CommitTransactionIndication.ja va:161)
>> at org.eclipse.emf.cdo.server.internal.net4j.protocol.CommitTra
>> nsactionIndication.indicating(CommitTransactionIndication.ja va:115)
>> at org.eclipse.net4j.signal.IndicationWithMonitoring.indicating
>> (IndicationWithMonitoring.java:84)
>> at org.eclipse.net4j.signal.IndicationWithResponse.doExtendedIn
>> put(IndicationWithResponse.java:90)
>> at org.eclipse.net4j.signal.Signal.doInput(Signal.java:311)
>> at org.eclipse.net4j.signal.IndicationWithResponse.execute(Indi
>> cationWithResponse.java:63)
>> at org.eclipse.net4j.signal.IndicationWithMonitoring.execute(In
>> dicationWithMonitoring.java:63)
>> at org.eclipse.net4j.signal.Signal.runSync(Signal.java:238)
>> at org.eclipse.net4j.signal.Signal.run(Signal.java:146)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa
>> dPoolExecutor.java:885)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>> lExecutor.java:907)
>> at java.lang.Thread.run(Thread.java:619)
>>
>> Thanks in advance
>
>


Re: [CDO] Saving elements on database [message #536250 is a reply to message #536168] Thu, 27 May 2010 13:27 Go to previous message
Mariam Chahid is currently offline Mariam ChahidFriend
Messages: 2
Registered: May 2010
Junior Member
Hi Eike,

I've created a bugzilla. The bug id is 314652.

There is a text file with the exception as well as the ecore metamodel attached to the bug.

Thanks again
Previous Topic:[Teneo] Adding dynamic objects to resource
Next Topic:Partially loading a Model instance
Goto Forum:
  


Current Time: Wed Apr 24 19:58:16 GMT 2024

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

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

Back to the top