Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] xbcmodel(troubles with the xbcmodel's metamodel and CDO)
[CDO] xbcmodel [message #542569] Fri, 25 June 2010 11:04 Go to next message
cippalippa  is currently offline cippalippa
Messages: 4
Registered: April 2010
Junior Member
Hi, I have the following problem.
I must use the metamodel XBCModel (in CDO2) that you can find in the link that follows;
as you can see in this metamodel there isn't any reference to EFeatureMap which is not supported in CDO2.

Anyway if you try to use this metamodel you will still get an exception which claim DBStore unsupport
EFeatureMap; is there any dependency in this metamodel to EFeatureMap?

http://pastebin.com/Fc86yses
Re: [CDO] xbcmodel [message #542575 is a reply to message #542569] Fri, 25 June 2010 11:12 Go to previous messageGo to next message
Eike Stepper is currently offline Eike Stepper
Messages: 5538
Registered: July 2009
Senior Member
Am 25.06.2010 13:04, schrieb cippalippa:
> Hi, I have the following problem. I must use the metamodel XBCModel
> (in CDO2) that you can find in the link that follows; as you can see
> in this metamodel there isn't any reference to EFeatureMap which is
> not supported in CDO2.
>
> Anyway if you try to use this metamodel you will still get an
> exception which claim DBStore unsupport EFeatureMap;
Please post the stack trace of that exception.

> is there any dependency in this metamodel to EFeatureMap?
Unfortunately I'm not a feature map expert and I don.t know what to look
for. Maybe others can jump in?

Cheers
/Eike

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


>
> http://pastebin.com/Fc86yses
Re: [CDO] xbcmodel [message #542617 is a reply to message #542575] Fri, 25 June 2010 12:55 Go to previous messageGo to next message
cippalippa  is currently offline cippalippa
Messages: 4
Registered: April 2010
Junior Member
Hi,

first of all, I would give thanks for your quickly reply, this is the log produced by Eclipse.

org.eclipse.net4j.util.transaction.TransactionException: Rollback in DBStore: org.eclipse.net4j.util.ImplementationError: Unrecognized CDOType: FEATURE_MAP_ENTRY
at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappi ngStrategy.createValueMapping(AbstractMappingStrategy.java:4 51)
at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.Ab stractListTableMapping.initTable(AbstractListTableMapping.ja va:117)
at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.Ab stractListTableMapping. <init>(AbstractListTableMapping.java:95)
at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.Au ditListTableMapping. <init>(AuditListTableMapping.java:42)
at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.Ho rizontalAuditMappingStrategy.doCreateListMapping(HorizontalA uditMappingStrategy.java:35)
at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappi ngStrategy.createListMapping(AbstractMappingStrategy.java:45 7)
at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.Ab stractHorizontalClassMapping.createListMappings(AbstractHori zontalClassMapping.java:133)
at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.Ab stractHorizontalClassMapping.initFeatures(AbstractHorizontal ClassMapping.java:106)
at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.Ab stractHorizontalClassMapping. <init>(AbstractHorizontalClassMapping.java:74)
at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.Ho rizontalAuditClassMapping. <init>(HorizontalAuditClassMapping.java:63)
at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.Ho rizontalAuditMappingStrategy.doCreateClassMapping(Horizontal AuditMappingStrategy.java:29)
at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappi ngStrategy.createClassMapping(AbstractMappingStrategy.java:3 55)
at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappi ngStrategy.mapClasses(AbstractMappingStrategy.java:325)
at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappi ngStrategy.mapPackageInfos(AbstractMappingStrategy.java:314)
at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappi ngStrategy.mapPackageUnits(AbstractMappingStrategy.java:336)
at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappi ngStrategy.createMapping(AbstractMappingStrategy.java:297)
at org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor.write PackageUnits(DBStoreAccessor.java:496)
at org.eclipse.emf.cdo.spi.server.StoreAccessor.write(StoreAcce ssor.java:129)
at org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor.acces s$4(DBStoreAccessor.java:1)
at org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor$1.run Loop(DBStoreAccessor.java:80)
at org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor$1.run Loop(DBStoreAccessor.java:1)
at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(Pr ogressDistributor.java:96)
at org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor.write (DBStoreAccessor.java:294)
at org.eclipse.emf.cdo.internal.server.TransactionCommitContext Impl.write(TransactionCommitContextImpl.java:269)
at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication$1.runLoop(CommitTransactionIndication.java:73)
at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication$1.runLoop(CommitTransactionIndication.java:1)
at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(Pr ogressDistributor.java:96)
at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication.indicatingCommit(CommitTransactionIndication.ja va:325)
at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication.indicating(CommitTransactionIndication.java:198 )
at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti onIndication.indicating(CommitTransactionIndication.java:140 )
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:312)
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:239)
at org.eclipse.net4j.signal.Signal.run(Signal.java:147)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unkno wn Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

at org.eclipse.emf.internal.cdo.transaction.CDOSingleTransactio nStrategyImpl.commit(CDOSingleTransactionStrategyImpl.java:6 3)
at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl. commit(CDOTransactionImpl.java:598)
at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl. commit(CDOTransactionImpl.java:612)
at org.eclipse.emf.cdo.internal.ui.actions.CommitTransactionAct ion.doRun(CommitTransactionAction.java:38)
at org.eclipse.net4j.util.ui.actions.LongRunningAction$1.run(Lo ngRunningAction.java:185)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Re: [CDO] xbcmodel [message #542690 is a reply to message #542617] Fri, 25 June 2010 15:52 Go to previous message
Eike Stepper is currently offline Eike Stepper
Messages: 5538
Registered: July 2009
Senior Member
Hi,

Thanks for the infos. According to Ed you don't seem to be using feature
maps. But this makes me suspicious (last line):

<eStructuralFeatures xsi:type="ecore:EAttribute" name="timestamp"
lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//DateTime"/>

Before we continue to discuss the problem I would like you to retest it
with CDO 3.0 as published with Helios or from CVS HEAD because CDO 2.0
is out of maintenance starting today.

Cheers
/Eike

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




Am 25.06.2010 14:55, schrieb cippalippa:
> Hi,
>
> first of all, I would give thanks for your quickly reply, this is the
> log produced by Eclipse.
>
> org.eclipse.net4j.util.transaction.TransactionException: Rollback in
> DBStore: org.eclipse.net4j.util.ImplementationError: Unrecognized
> CDOType: FEATURE_MAP_ENTRY
> at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappi
> ngStrategy.createValueMapping(AbstractMappingStrategy.java:4 51)
> at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.Ab
> stractListTableMapping.initTable(AbstractListTableMapping.ja va:117)
> at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.Ab
> stractListTableMapping. <init>(AbstractListTableMapping.java:95)
> at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.Au
> ditListTableMapping. <init>(AuditListTableMapping.java:42)
> at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.Ho
> rizontalAuditMappingStrategy.doCreateListMapping(HorizontalA
> uditMappingStrategy.java:35)
> at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappi
> ngStrategy.createListMapping(AbstractMappingStrategy.java:45 7)
> at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.Ab
> stractHorizontalClassMapping.createListMappings(AbstractHori
> zontalClassMapping.java:133)
> at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.Ab
> stractHorizontalClassMapping.initFeatures(AbstractHorizontal
> ClassMapping.java:106)
> at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.Ab
> stractHorizontalClassMapping.
> <init>(AbstractHorizontalClassMapping.java:74)
> at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.Ho
> rizontalAuditClassMapping. <init>(HorizontalAuditClassMapping.java:63)
> at org.eclipse.emf.cdo.server.internal.db.mapping.horizontal.Ho
> rizontalAuditMappingStrategy.doCreateClassMapping(Horizontal
> AuditMappingStrategy.java:29)
> at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappi
> ngStrategy.createClassMapping(AbstractMappingStrategy.java:3 55)
> at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappi
> ngStrategy.mapClasses(AbstractMappingStrategy.java:325)
> at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappi
> ngStrategy.mapPackageInfos(AbstractMappingStrategy.java:314)
> at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappi
> ngStrategy.mapPackageUnits(AbstractMappingStrategy.java:336)
> at org.eclipse.emf.cdo.server.internal.db.mapping.AbstractMappi
> ngStrategy.createMapping(AbstractMappingStrategy.java:297)
> at org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor.write
> PackageUnits(DBStoreAccessor.java:496)
> at org.eclipse.emf.cdo.spi.server.StoreAccessor.write(StoreAcce
> ssor.java:129)
> at org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor.acces
> s$4(DBStoreAccessor.java:1)
> at org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor$1.run
> Loop(DBStoreAccessor.java:80)
> at org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor$1.run
> Loop(DBStoreAccessor.java:1)
> at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(Pr
> ogressDistributor.java:96)
> at org.eclipse.emf.cdo.server.internal.db.DBStoreAccessor.write
> (DBStoreAccessor.java:294)
> at org.eclipse.emf.cdo.internal.server.TransactionCommitContext
> Impl.write(TransactionCommitContextImpl.java:269)
> at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti
> onIndication$1.runLoop(CommitTransactionIndication.java:73)
> at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti
> onIndication$1.runLoop(CommitTransactionIndication.java:1)
> at org.eclipse.net4j.util.om.monitor.ProgressDistributor.run(Pr
> ogressDistributor.java:96)
> at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti
> onIndication.indicatingCommit(CommitTransactionIndication.ja va:325)
> at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti
> onIndication.indicating(CommitTransactionIndication.java:198 )
> at org.eclipse.emf.cdo.internal.server.protocol.CommitTransacti
> onIndication.indicating(CommitTransactionIndication.java:140 )
> 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:312)
> 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:239)
> at org.eclipse.net4j.signal.Signal.run(Signal.java:147)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unkno
> wn Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
>
> at org.eclipse.emf.internal.cdo.transaction.CDOSingleTransactio
> nStrategyImpl.commit(CDOSingleTransactionStrategyImpl.java:6 3)
> at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.
> commit(CDOTransactionImpl.java:598)
> at org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.
> commit(CDOTransactionImpl.java:612)
> at org.eclipse.emf.cdo.internal.ui.actions.CommitTransactionAct
> ion.doRun(CommitTransactionAction.java:38)
> at org.eclipse.net4j.util.ui.actions.LongRunningAction$1.run(Lo
> ngRunningAction.java:185)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
Previous Topic:Helios RCP+RAP doesn't have EMF Databinding
Next Topic:Traverse an EMF tree
Goto Forum:
  


Current Time: Wed Oct 22 09:52:14 GMT 2014

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

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