Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [CDO] Problem with single Ecore, multiple packages
[CDO] Problem with single Ecore, multiple packages [message #617962] Wed, 30 April 2008 15:30
Eric is currently offline EricFriend
Messages: 40
Registered: July 2009
Hi Eike,

I've come across a problem when dealing with an Ecore file containing
multiple packages.

Ecore file:
ClassA [has an attribute of type ClassD]

In my client, I register both packages (A & B) with my session's package
registry. I then create an object of type ClassA, but I don't set
(leave it as null) its attribute of type ClassD.

When CDO reaches the server side at commit time, I only see Package1
being transfered over and since ClassA references Package2 through an
attribute of ClassD, I get an exception:

Unable to resolve classref: CDOClassRef(Package2, ...)
at CDOClassProxy.getCdoClass(
at CDOFeatureImpl.getReferenceType(

If I take the same code and create an object of type ClassC (or any
object from Package2) and add this object to my resource, Package2 will
get transfered over and my test will work. So in order to see your
package on the server side, you need to:
1. Register it
2. Create at least one object from that package

Problem is that object of type ClassA references Package2. So when
deciding which package need to be transfered, CDO will have to do a deep
scan of the object instead of only using its containingPackage (this is
how I assume CDO works, correct me if I'm wrong).

Any thoughts?
Previous Topic:[EMF Compare] Compare file against nothing
Next Topic:[EMF Compare] Broken Reference triggers a diff
Goto Forum:

Current Time: Fri Apr 03 01:09:11 GMT 2020

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

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

Back to the top