Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Resource renaming
[CDO] Resource renaming [message #1709290] Fri, 25 September 2015 16:15 Go to next message
Robert Schulk is currently offline Robert SchulkFriend
Messages: 51
Registered: July 2015
Member
Hello,

I encounter the following problem in CDO 4.4 (but not in 4.3):

1) open CDOView
2) open CDOTransaction

- Create CDOResource "home/Administrator/test/a"
- Rename resource from a->b
- Create CDOResource "home/Administrator/test/a"

If, from the view, I access the nodes for CDOResourceFolder "home/Administrator/test" via getNodes(), I get an IllegalArgumentException as is shown in the stack trace. I guess this is an additional safety mechanism for CDO4.4? How can I access the nodes of the folder after this?

Caused by: java.lang.IllegalArgumentException: The revision CDOResource@OID928:0v1("a") does not match the object OID876
	at org.eclipse.emf.internal.cdo.CDOObjectImpl.cdoInternalSetRevision(CDOObjectImpl.java:366)
	at org.eclipse.emf.internal.cdo.view.AbstractCDOView.cleanObject(AbstractCDOView.java:1362)
	at org.eclipse.emf.internal.cdo.view.AbstractCDOView.createObject(AbstractCDOView.java:1284)
	at org.eclipse.emf.internal.cdo.view.AbstractCDOView.getObject(AbstractCDOView.java:1162)
	at org.eclipse.emf.internal.cdo.view.AbstractCDOView.convertIDToObject(AbstractCDOView.java:1510)
	at org.eclipse.emf.internal.cdo.view.CDOStoreImpl.convertIDToObject(CDOStoreImpl.java:689)
	at org.eclipse.emf.internal.cdo.view.CDOStoreImpl.convertToEMF(CDOStoreImpl.java:657)
	at org.eclipse.emf.internal.cdo.view.CDOStoreImpl.get(CDOStoreImpl.java:170)
	at org.eclipse.emf.ecore.impl.EStoreEObjectImpl$BasicEStoreEList.delegateGet(EStoreEObjectImpl.java:241)
	at org.eclipse.emf.common.util.DelegatingEList.get(DelegatingEList.java:230)
	at org.eclipse.emf.common.util.AbstractEList$EIterator.doNext(AbstractEList.java:705)
	at org.eclipse.emf.common.util.AbstractEList$EIterator.next(AbstractEList.java:692)
	at my.test.application.ui.parts.explorer.ExplorerPart.updateGui(ExplorerPart.java:170)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
	... 48 more
Re: [CDO] Resource renaming [message #1709301 is a reply to message #1709290] Fri, 25 September 2015 18:45 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6447
Registered: July 2009
Senior Member
Hi Robert,

I'm about to leave into a one week vacation. In the meantime you could try a newer (today's) 4.4 maintenance build. If
it still doesn't work please submit a bugzilla...

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 25.09.2015 um 18:15 schrieb Robert Schulk:
> Hello,
>
> I encounter the following problem in CDO 4.4 (but not in 4.3):
>
> 1) open CDOView
> 2) open CDOTransaction
>
> - Create CDOResource "home/Administrator/test/a"
> - Rename resource from a->b
> - Create CDOResource "home/Administrator/test/a"
>
> If, from the view, I access the nodes for CDOResourceFolder "home/Administrator/test" via getNodes(), I get an
> IllegalArgumentException as is shown in the stack trace. I guess this is an additional safety mechanism for CDO4.4?
> How can I access the nodes of the folder after this?
>
>
> Caused by: java.lang.IllegalArgumentException: The revision CDOResource@OID928:0v1("a") does not match the object OID876
> at org.eclipse.emf.internal.cdo.CDOObjectImpl.cdoInternalSetRevision(CDOObjectImpl.java:366)
> at org.eclipse.emf.internal.cdo.view.AbstractCDOView.cleanObject(AbstractCDOView.java:1362)
> at org.eclipse.emf.internal.cdo.view.AbstractCDOView.createObject(AbstractCDOView.java:1284)
> at org.eclipse.emf.internal.cdo.view.AbstractCDOView.getObject(AbstractCDOView.java:1162)
> at org.eclipse.emf.internal.cdo.view.AbstractCDOView.convertIDToObject(AbstractCDOView.java:1510)
> at org.eclipse.emf.internal.cdo.view.CDOStoreImpl.convertIDToObject(CDOStoreImpl.java:689)
> at org.eclipse.emf.internal.cdo.view.CDOStoreImpl.convertToEMF(CDOStoreImpl.java:657)
> at org.eclipse.emf.internal.cdo.view.CDOStoreImpl.get(CDOStoreImpl.java:170)
> at org.eclipse.emf.ecore.impl.EStoreEObjectImpl$BasicEStoreEList.delegateGet(EStoreEObjectImpl.java:241)
> at org.eclipse.emf.common.util.DelegatingEList.get(DelegatingEList.java:230)
> at org.eclipse.emf.common.util.AbstractEList$EIterator.doNext(AbstractEList.java:705)
> at org.eclipse.emf.common.util.AbstractEList$EIterator.next(AbstractEList.java:692)
> at my.test.application.ui.parts.explorer.ExplorerPart.updateGui(ExplorerPart.java:170)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
> ... 48 more
>


Re: [CDO] Resource renaming [message #1709394 is a reply to message #1709301] Mon, 28 September 2015 08:22 Go to previous message
Robert Schulk is currently offline Robert SchulkFriend
Messages: 51
Registered: July 2015
Member
Hello Eike,

the last stable release S20150819-1258 already fixed this.

Thank you!
Previous Topic:[Teneo] Problem with deserializing a association
Next Topic:Is in-memory output possible with ATL/EMFTVM ?
Goto Forum:
  


Current Time: Thu Oct 24 04:03:29 GMT 2019

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

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

Back to the top