|Re: [CDO] Error when deleting a resource from the root [message #1034334 is a reply to message #1031768]
||Fri, 05 April 2013 10:05
|| Eike Stepper
Registered: July 2009
I've tried exactly the steps you've listed and it works perfectly here. I can delete top level resources, folders and
resources from folders. But I tried with H2 because Mysql is a little more effort here. Before I test with Mysql, can
you pease confirm that it works for you with H2 (just to exclude other differences in your setup)?
Am 02.04.2013 08:56, schrieb Marc Gil:
> Hi Eike,
> Maybe the your test case works, but it's not the same scenario that the following one:
> 1. Open the CDO Sessions view.
> 2. Open a new Session to the repository (using MySQL DB)
> 3. Open a new Transacion
> 4. Create a resource, for instance a folder
> 5. Remove this resource
> The exception is raised:
> java.lang.ClassCastException: org.eclipse.emf.cdo.common.revision.delta.CDOFeatureDelta$1 cannot be cast to
> at org.eclipse.emf.internal.cdo.view.AbstractCDOView$ContainerAdapter.notifyChanged(AbstractCDOView.java:1852)
> at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
> at org.eclipse.emf.common.notify.impl.NotificationChainImpl.dispatch(NotificationChainImpl.java:98)
> at org.eclipse.emf.common.notify.impl.NotificationChainImpl.dispatch(NotificationChainImpl.java:86)
> at org.eclipse.emf.internal.cdo.view.CDOViewImpl.sendDeltaNotifications(CDOViewImpl.java:983)
> at org.eclipse.emf.internal.cdo.view.CDOViewImpl.doInvalidate(CDOViewImpl.java:860)
> at org.eclipse.emf.internal.cdo.view.CDOViewImpl$InvalidationRunnable.run(CDOViewImpl.java:1604)
> at org.eclipse.net4j.util.concurrent.QueueRunner.work(QueueRunner.java:26)
> at org.eclipse.net4j.util.concurrent.QueueRunner.work(QueueRunner.java:1)
> at org.eclipse.net4j.util.concurrent.QueueWorker.doWork(QueueWorker.java:88)
> at org.eclipse.net4j.util.concurrent.QueueWorker.work(QueueWorker.java:79)
> at org.eclipse.net4j.util.concurrent.Worker$WorkerThread.run(Worker.java:206)
> Forget what I said about the listeners, cause I was wrong.
> Does this example works for you?
|Re: [CDO] Error when deleting a resource from the root [message #1036846 is a reply to message #1034334]
||Mon, 08 April 2013 22:23
| Marc Gil
Registered: July 2009
Following the steps, if you remove a root element sometimes the exception is not raised, but you can see how the element is marked as Invalid in the CDO View, and if you try to operate with this resource, you only get a lot of exceptions. This does not happen if the removed element is contained into a folder. Maybe you don't get this exception cause the code is treating the exception, but it is raised.
I try it with MySQL 5.5.27, PostgreSQL 9.1.8 and PostgreSQL 9.2.3. I'll try it with H2 as soon as possible and I will tell you the results, but I thing that it will be the same...
Powered by FUDForum
. Page generated in 0.02464 seconds