Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » DiagramEditDomain cannot be cast to BpmnDiagramEditDomain???
DiagramEditDomain cannot be cast to BpmnDiagramEditDomain??? [message #167428] Tue, 08 January 2008 22:12 Go to next message
Eclipse UserFriend
I'm working on a tool integrating a GMF based editor and a TextEditor (code
is genereated from the Graph and shown in the TextEditor) in a
MultiPageEditor.

The integration is done, everything is working but often I receive the error
(when selecting an object within the graph or when deleting an object):

java.lang.ClassCastException:
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditDomain cannot be cast to
org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditDomain
at
org.eclipse.stp.bpmn.diagram.actions.GroupAction.getSelectio n(GroupAction.java:504)
at
org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandl er.getStructuredSelection(AbstractActionHandler.java:434)
at
org.eclipse.stp.bpmn.diagram.actions.GroupAction.refresh(Gro upAction.java:194)
at
org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandl er.selectionChanged(AbstractActionHandler.java:387)
at
org.eclipse.ui.part.MultiPageSelectionProvider$1.run(MultiPa geSelectionProvider.java:109)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.ui.part.MultiPageSelectionProvider.fireEventChan ge(MultiPageSelectionProvider.java:107)
at
org.eclipse.ui.part.MultiPageSelectionProvider.fireSelection Changed(MultiPageSelectionProvider.java:89)
at
org.eclipse.ui.part.MultiPageEditorSite.handleSelectionChang ed(MultiPageEditorSite.java:452)
at
org.eclipse.ui.part.MultiPageEditorSite$2.selectionChanged(M ultiPageEditorSite.java:368)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalVie wer.flushSelectionEvents(DiagramGraphicalViewer.java:269)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalVie wer$1.run(DiagramGraphicalViewer.java:247)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3659)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3296)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
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.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)

The error doesn't affect my editor, everything is working and I have
absolutely no idea where this comes from or how I could fix this...
especially cause there are no classes I created in the error message. Any
ideas? I could really need some help here!

Kind regards,
Markus
Re: DiagramEditDomain cannot be cast to BpmnDiagramEditDomain??? [message #167497 is a reply to message #167428] Wed, 09 January 2008 12:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Markus,

This looks like a bug in the BPMN editor provided by the SOA Tools Project
(STP). Perhaps it is casting its net too wide in some extension point and
trying to contribute actions or other functionality to models outside of
its scope?

You might follow up with the eclipse.stp newsgroup.

Cheers,

Christian

Markus Gieser wrote:

> I'm working on a tool integrating a GMF based editor and a TextEditor
> (code is genereated from the Graph and shown in the TextEditor) in a
> MultiPageEditor.
>
> The integration is done, everything is working but often I receive the
> error (when selecting an object within the graph or when deleting an
> object):
>
> java.lang.ClassCastException:
> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditDomain cannot be cast
> to org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditDomain
> at
>
org.eclipse.stp.bpmn.diagram.actions.GroupAction.getSelectio n(GroupAction.java:504)
> at
>
org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandl er.getStructuredSelection(AbstractActionHandler.java:434)
> at
>
org.eclipse.stp.bpmn.diagram.actions.GroupAction.refresh(Gro upAction.java:194)
> at
>
org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandl er.selectionChanged(AbstractActionHandler.java:387)
> at
>
org.eclipse.ui.part.MultiPageSelectionProvider$1.run(MultiPa geSelectionProvider.java:109)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at

-----8<-----
Re: DiagramEditDomain cannot be cast to BpmnDiagramEditDomain??? [message #170579 is a reply to message #167497] Tue, 29 January 2008 19:30 Go to previous message
Henry Min Bang is currently offline Henry Min BangFriend
Messages: 1
Registered: July 2009
Junior Member
I found the same exception before. Currently, this issue might be solved.
Please update your stp modules at http://download.eclipse.org/stp/updates/
and check it again.

Cheers,

Henry
Previous Topic:Relationship design
Next Topic:Need some pointers on cardinality implementation
Goto Forum:
  


Current Time: Sun Jul 21 15:31:55 GMT 2024

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

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

Back to the top