Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [CDO] managing model changes
[CDO] managing model changes [message #615908] Mon, 17 March 2008 16:36
Alexej Spas is currently offline Alexej SpasFriend
Messages: 22
Registered: July 2009
Junior Member
Hallo Eike

I have a question about CDO concepts in managing the underlying models:

I have created an e-core model and generated native CDO classes.
Afterwards I registered it on CDO server and filled it with data. After
some time my model has changed (I add some classes and changed some old
ones). After trying to work with my old data I got error:

java.lang.IllegalStateException: range.getCount() != metaIDRange.getCount()
at
org.eclipse.emf.internal.cdo.CDOSessionImpl.registerEPackage (CDOSessionImpl.java:429)
at
org.eclipse.emf.internal.cdo.CDOPackageRegistryImpl$CDOPacka geDescriptor.getEPackage(CDOPackageRegistryImpl.java:119)
at
org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage( EPackageRegistryImpl.java:114)
at
org.eclipse.emf.internal.cdo.CDOSessionPackageManagerImpl.re solve(CDOSessionPackageManagerImpl.java:110)
at
org.eclipse.emf.cdo.internal.protocol.model.CDOPackageImpl.r esolve(CDOPackageImpl.java:330)
at
org.eclipse.emf.cdo.internal.protocol.model.CDOPackageImpl.l ookupClass(CDOPackageImpl.java:219)
at
org.eclipse.emf.cdo.internal.protocol.model.CDOClassRefImpl. resolve(CDOClassRefImpl.java:75)
at
org.eclipse.emf.cdo.internal.protocol.revision.CDORevisionIm pl. <init>(CDORevisionImpl.java:113)
at
org.eclipse.emf.cdo.protocol.revision.CDORevisionUtil.read(C DORevisionUtil.java:48)
at
org.eclipse.emf.internal.cdo.protocol.LoadRevisionRequest.co nfirming(LoadRevisionRequest.java:128)
at
org.eclipse.emf.internal.cdo.protocol.LoadRevisionRequest.co nfirming(LoadRevisionRequest.java:1)
at
org.eclipse.net4j.signal.RequestWithConfirmation.execute(Req uestWithConfirmation.java:57)
at org.eclipse.net4j.signal.Signal.runSync(Signal.java:143)


Obviously this was a reaction on my model changes, but not quite the one I
would expect :). Now the question: What is the recommended way of dealing
with model changes (updates)? Do I have a possibility to reuse data stored
using old model with my new model?

And one more question: What is the experience with running CDO in
production environment with high load? What are the examples of
applications where CDO is used in production mode that you know about?

Regards,
Alexej Spas
Previous Topic:[CDO] DanglingHREFException after putEPackage()
Next Topic:Teneo API specification online?
Goto Forum:
  


Current Time: Thu Apr 25 07:08:30 GMT 2024

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

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

Back to the top