java.lang.ClassCastException: org.springframework.ide.eclipse.config.ui.editors.webflow.graph.model.ActionStateModelElement cannot be cast to org.springframework.ide.eclipse.config.graph.model.StructuredActivity

Spring JIRA | Jaroslav Jankovic | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    For example when I choose start state and moving it over any other state, lots of exceptions are thrown: {code} java.lang.ClassCastException: org.springframework.ide.eclipse.config.ui.editors.webflow.graph.model.ActionStateModelElement cannot be cast to org.springframework.ide.eclipse.config.graph.model.StructuredActivity at org.springframework.ide.eclipse.config.graph.policies.StructuredActivityLayoutEditPolicy.createAddCommand(StructuredActivityLayoutEditPolicy.java:41) at org.springframework.ide.eclipse.config.graph.policies.StructuredActivityLayoutEditPolicy.getAddCommand(StructuredActivityLayoutEditPolicy.java:65) at org.eclipse.gef.editpolicies.LayoutEditPolicy.getCommand(LayoutEditPolicy.java:216) at org.eclipse.gef.editparts.AbstractEditPart.getCommand(AbstractEditPart.java:502) at org.eclipse.gef.tools.DragEditPartsTracker.getCommand(DragEditPartsTracker.java:281) at org.eclipse.gef.tools.DragEditPartsTracker.handleDragInProgress(DragEditPartsTracker.java:370) at org.eclipse.gef.tools.AbstractTool.mouseDrag(AbstractTool.java:1114) at org.eclipse.gef.tools.SelectionTool.mouseDrag(SelectionTool.java:538) at org.eclipse.gef.EditDomain.mouseDrag(EditDomain.java:259) at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseMoved(DomainEventDispatcher.java:363) at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseMove(LightweightSystem.java:543) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3554) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3179) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1022) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438) at org.eclipse.equinox.launcher.Main.main(Main.java:1414) {code}

    Spring JIRA | 5 years ago | Jaroslav Jankovic
    java.lang.ClassCastException: org.springframework.ide.eclipse.config.ui.editors.webflow.graph.model.ActionStateModelElement cannot be cast to org.springframework.ide.eclipse.config.graph.model.StructuredActivity
  2. 0

    For example when I choose start state and moving it over any other state, lots of exceptions are thrown: {code} java.lang.ClassCastException: org.springframework.ide.eclipse.config.ui.editors.webflow.graph.model.ActionStateModelElement cannot be cast to org.springframework.ide.eclipse.config.graph.model.StructuredActivity at org.springframework.ide.eclipse.config.graph.policies.StructuredActivityLayoutEditPolicy.createAddCommand(StructuredActivityLayoutEditPolicy.java:41) at org.springframework.ide.eclipse.config.graph.policies.StructuredActivityLayoutEditPolicy.getAddCommand(StructuredActivityLayoutEditPolicy.java:65) at org.eclipse.gef.editpolicies.LayoutEditPolicy.getCommand(LayoutEditPolicy.java:216) at org.eclipse.gef.editparts.AbstractEditPart.getCommand(AbstractEditPart.java:502) at org.eclipse.gef.tools.DragEditPartsTracker.getCommand(DragEditPartsTracker.java:281) at org.eclipse.gef.tools.DragEditPartsTracker.handleDragInProgress(DragEditPartsTracker.java:370) at org.eclipse.gef.tools.AbstractTool.mouseDrag(AbstractTool.java:1114) at org.eclipse.gef.tools.SelectionTool.mouseDrag(SelectionTool.java:538) at org.eclipse.gef.EditDomain.mouseDrag(EditDomain.java:259) at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseMoved(DomainEventDispatcher.java:363) at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseMove(LightweightSystem.java:543) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3554) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3179) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1022) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438) at org.eclipse.equinox.launcher.Main.main(Main.java:1414) {code}

    Spring JIRA | 5 years ago | Jaroslav Jankovic
    java.lang.ClassCastException: org.springframework.ide.eclipse.config.ui.editors.webflow.graph.model.ActionStateModelElement cannot be cast to org.springframework.ide.eclipse.config.graph.model.StructuredActivity

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.springframework.ide.eclipse.config.ui.editors.webflow.graph.model.ActionStateModelElement cannot be cast to org.springframework.ide.eclipse.config.graph.model.StructuredActivity

      at org.springframework.ide.eclipse.config.graph.policies.StructuredActivityLayoutEditPolicy.createAddCommand()
    2. org.springframework.ide
      StructuredActivityLayoutEditPolicy.getAddCommand
      1. org.springframework.ide.eclipse.config.graph.policies.StructuredActivityLayoutEditPolicy.createAddCommand(StructuredActivityLayoutEditPolicy.java:41)
      2. org.springframework.ide.eclipse.config.graph.policies.StructuredActivityLayoutEditPolicy.getAddCommand(StructuredActivityLayoutEditPolicy.java:65)
      2 frames
    3. Graphical Editing Framework
      DomainEventDispatcher.dispatchMouseMoved
      1. org.eclipse.gef.editpolicies.LayoutEditPolicy.getCommand(LayoutEditPolicy.java:216)
      2. org.eclipse.gef.editparts.AbstractEditPart.getCommand(AbstractEditPart.java:502)
      3. org.eclipse.gef.tools.DragEditPartsTracker.getCommand(DragEditPartsTracker.java:281)
      4. org.eclipse.gef.tools.DragEditPartsTracker.handleDragInProgress(DragEditPartsTracker.java:370)
      5. org.eclipse.gef.tools.AbstractTool.mouseDrag(AbstractTool.java:1114)
      6. org.eclipse.gef.tools.SelectionTool.mouseDrag(SelectionTool.java:538)
      7. org.eclipse.gef.EditDomain.mouseDrag(EditDomain.java:259)
      8. org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseMoved(DomainEventDispatcher.java:363)
      8 frames
    4. Graphical Editing Framework Draw2d
      LightweightSystem$EventHandler.mouseMove
      1. org.eclipse.draw2d.LightweightSystem$EventHandler.mouseMove(LightweightSystem.java:543)
      1 frame
    5. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
      2. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276)
      4. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3554)
      5. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3179)
      5 frames
    6. Eclipse Workbench SWT
      PartRenderingEngine$9.run
      1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1022)
      1 frame
    7. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      1 frame
    8. Eclipse Workbench SWT
      PartRenderingEngine.run
      1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
      1 frame
    9. Eclipse Workbench
      E4Workbench.createAndRunUI
      1. org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
      1 frame
    10. Eclipse UI
      Workbench$5.run
      1. org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
      1 frame
    11. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      1 frame
    12. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
      1 frame
    13. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      1 frame
    14. Eclipse IDE
      IDEApplication.start
      1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
      1 frame
    15. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      1 frame
    16. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
      4 frames
    17. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:601)
      4 frames
    18. Equinox
      Main.main
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1438)
      4. org.eclipse.equinox.launcher.Main.main(Main.java:1414)
      4 frames