Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFForms] ViewModelContextImpl notification exception(Cannot cast org.eclipse.emf.cdo.common.revision.delta.CDOFeatureDelta$1 to org.eclipse.emf.ecore.EObject)
[EMFForms] ViewModelContextImpl notification exception [message #1450406] Wed, 22 October 2014 12:13 Go to next message
Phil Wim is currently offline Phil WimFriend
Messages: 89
Registered: October 2013
Member
Hi there,

in an EMFForms + RAP + CDO Environment i face a strange exception which i can't handle myself. I'm not sure if this problem is related to CDO or EMFForms. The Exceptions is raised in EMFForms.

The following Exception is raised if I execute a RemoveCommand and an existing ECPSWTViewRenderer instance of the belonging object is open.

AddCommand is working fine.

Any ideas?

!ENTRY org.eclipse.emf.cdo 4 0 2014-10-22 14:00:24.441
!MESSAGE Cannot cast org.eclipse.emf.cdo.common.revision.delta.CDOFeatureDelta$1 to org.eclipse.emf.ecore.EObject
!STACK 0
java.lang.ClassCastException: Cannot cast org.eclipse.emf.cdo.common.revision.delta.CDOFeatureDelta$1 to org.eclipse.emf.ecore.EObject
	at java.lang.Class.cast(Class.java:3356)
	at org.eclipse.emf.ecp.view.internal.validation.ValidationServiceImpl$ValidationDomainModelChangeListener.notifyChange(ValidationServiceImpl.java:175)
	at org.eclipse.emf.ecp.view.internal.context.ViewModelContextImpl$DomainModelContentAdapter.notifyChanged(ViewModelContextImpl.java:602)
	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:1016)
	at org.eclipse.emf.internal.cdo.view.CDOViewImpl.doInvalidate(CDOViewImpl.java:879)
	at org.eclipse.emf.internal.cdo.view.CDOViewImpl$InvalidationRunnable.run(CDOViewImpl.java:1710)
	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:78)
	at org.eclipse.net4j.util.concurrent.QueueWorker.work(QueueWorker.java:70)
	at org.eclipse.net4j.util.concurrent.Worker$WorkerThread.run(Worker.java:209)
Re: [EMFForms] ViewModelContextImpl notification exception [message #1450999 is a reply to message #1450406] Thu, 23 October 2014 07:17 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi,

that seems to be a bug, could you please report it?

Best regards

Jonas



Am 22.10.2014 14:13, schrieb Phil Wim:
> Hi there,
>
> in an EMFForms + RAP + CDO Environment i face a strange exception which
> i can't handle myself. I'm not sure if this problem is related to CDO or
> EMFForms. The Exceptions is raised in EMFForms.
> The following Exception is raised if I execute a RemoveCommand and an
> existing ECPSWTViewRenderer instance of the belonging object is open.
>
> AddCommand is working fine.
>
> Any ideas?
>
> !ENTRY org.eclipse.emf.cdo 4 0 2014-10-22 14:00:24.441
> !MESSAGE Cannot cast
> org.eclipse.emf.cdo.common.revision.delta.CDOFeatureDelta$1 to
> org.eclipse.emf.ecore.EObject
> !STACK 0
> java.lang.ClassCastException: Cannot cast
> org.eclipse.emf.cdo.common.revision.delta.CDOFeatureDelta$1 to
> org.eclipse.emf.ecore.EObject
> at java.lang.Class.cast(Class.java:3356)
> at
> org.eclipse.emf.ecp.view.internal.validation.ValidationServiceImpl$ValidationDomainModelChangeListener.notifyChange(ValidationServiceImpl.java:175)
>
> at
> org.eclipse.emf.ecp.view.internal.context.ViewModelContextImpl$DomainModelContentAdapter.notifyChanged(ViewModelContextImpl.java:602)
>
> 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:1016)
>
> at
> org.eclipse.emf.internal.cdo.view.CDOViewImpl.doInvalidate(CDOViewImpl.java:879)
>
> at
> org.eclipse.emf.internal.cdo.view.CDOViewImpl$InvalidationRunnable.run(CDOViewImpl.java:1710)
>
> 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:78)
> at
> org.eclipse.net4j.util.concurrent.QueueWorker.work(QueueWorker.java:70)
> at
> org.eclipse.net4j.util.concurrent.Worker$WorkerThread.run(Worker.java:209)
Re: [EMFForms] ViewModelContextImpl notification exception [message #1451800 is a reply to message #1450999] Fri, 24 October 2014 09:50 Go to previous message
Phil Wim is currently offline Phil WimFriend
Messages: 89
Registered: October 2013
Member
Hey Jonas,

i reported it here https://bugs.eclipse.org/bugs/show_bug.cgi?id=448616

Thanks so far!
Previous Topic:[EMFStore] Retaining ID's
Next Topic:[EMF FORMS] is it possible
Goto Forum:
  


Current Time: Sun Mar 29 22:53:35 GMT 2020

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

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

Back to the top