[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.emf] Re: [CDO] Duplicate ID problem ? Can a CDO model have multiple non-containment references to an external CDO model?
|
I`ve created a testcase and the fix that we`ve created for the problem
mention in th bugs 248915 fixed your problem. So it was really the same
things.
I added your testcase as well I will attach it to the bug in a few minutes
:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=248915
My patch will probably not go in since it is incomplete (other stuff is
missing) few things could change based on our discussion....
Meanwhile you can use my patch!! :-)
Simon
"Stephen McCants" <stephenmccants@xxxxxxxxx> a écrit dans le message de
news: gclvog$rir$1@xxxxxxxxxxxxxxxxxxxx
> Hello,
>
> Bryan Hunt and I just moved to a version of CDO from Head about two days
> ago and that resolved a great many of our problems, including the two
> previously posted SQLExceptions. (Thank you, Eike, for the
> recommendation.)
>
> Our model is a tree structure and the leaf nodes have a non-containment
> reference to objects in another CDO model. This is working well under the
> new code, except when I try to have two leaf nodes point to the same
> object in the other CDO model. In that case, I get a ?Duplicate ID? error
> message (exception included below). I looked at the CDO source code, but
> didn't see any obvious way around this limitation. Is there a way to
> allow a CDO model to support duplicate non-containment references to
> another CDO model? If not, should there be?
>
> Here is the exception:
>
> java.lang.IllegalStateException: Duplicate ID: CDOResource@OID10
> at
> org.eclipse.emf.internal.cdo.CDOViewImpl.registerObject(CDOViewImpl.java:738)
> at
> org.eclipse.emf.internal.cdo.CDOViewImpl.registerProxyResource(CDOViewImpl.java:717)
> at
> org.eclipse.emf.cdo.eresource.impl.CDOResourceFactoryImpl.createResource(CDOResourceFactoryImpl.java:70)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.createResource(ResourceSetImpl.java:425)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandCreateResource(ResourceSetImpl.java:239)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:391)
> at
> org.eclipse.emf.internal.cdo.CDOViewImpl.getResource(CDOViewImpl.java:340)
> at
> org.eclipse.emf.internal.cdo.CDOViewImpl.getResource(CDOViewImpl.java:330)
>
> Thanks in advance for your help!
>
> Sincerely,
> Stephen McCants