Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-2319

ClassCastException in LayoutDiagramFeature.mapDiagramToGraph

XMLWordPrintable

    • Hide

      wasn't able to reproduce. The stack lead to think that we are trying to add a node on an element and a refresh os called on something which is not a container

      Show
      wasn't able to reproduce. The stack lead to think that we are trying to add a node on an element and a refresh os called on something which is not a container

      The following problem was reported via the automated error reporting:

      Message: GFCommandStack.execute(Command) java.lang.ClassCastException: org.eclipse.graphiti.mm.pictograms.impl.ChopboxAnchorImpl cannot be cast to org.eclipse.graphiti.mm.pictograms.ContainerShape
      java.lang.ClassCastException: org.eclipse.graphiti.mm.pictograms.impl.ChopboxAnchorImpl cannot be cast to org.eclipse.graphiti.mm.pictograms.ContainerShape
      at org.fusesource.ide.camel.editor.features.custom.LayoutDiagramFeature.mapDiagramToGraph(LayoutDiagramFeature.java:151)
      at org.fusesource.ide.camel.editor.features.custom.LayoutDiagramFeature.execute(LayoutDiagramFeature.java:120)
      at org.fusesource.ide.camel.editor.commands.LayoutCommand.doExecute(LayoutCommand.java:49)
      at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135)
      at org.eclipse.graphiti.ui.internal.editor.GFWorkspaceCommandStackImpl.execute(GFWorkspaceCommandStackImpl.java:128)
      at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:219)
      at org.fusesource.ide.camel.editor.commands.DiagramOperations.execute(DiagramOperations.java:70)
      at org.fusesource.ide.camel.editor.commands.DiagramOperations.layoutDiagram(DiagramOperations.java:37)
      at org.fusesource.ide.camel.editor.features.add.AddNodeFeature.add(AddNodeFeature.java:92)
      at org.eclipse.graphiti.internal.command.AddFeatureCommandWithContext.execute(AddFeatureCommandWithContext.java:76)
      at org.eclipse.graphiti.ui.internal.command.GefCommandWrapper.execute(GefCommandWrapper.java:51)
      at org.eclipse.graphiti.ui.internal.editor.EmfOnGefCommand.execute(EmfOnGefCommand.java:54)
      at org.eclipse.graphiti.internal.command.GFPreparableCommand2.doExecute(GFPreparableCommand2.java:43)
      at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135)
      at org.eclipse.graphiti.ui.internal.editor.GFWorkspaceCommandStackImpl.execute(GFWorkspaceCommandStackImpl.java:128)
      at org.eclipse.graphiti.ui.internal.editor.GFCommandStack.execute(GFCommandStack.java:138)
      at org.eclipse.graphiti.ui.editor.DiagramBehavior.executeFeature(DiagramBehavior.java:1127)
      at org.eclipse.graphiti.features.impl.AbstractFeatureProvider.addIfPossible(AbstractFeatureProvider.java:310)
      at org.eclipse.graphiti.features.impl.AbstractFeature.addGraphicalRepresentation(AbstractFeature.java:111)
      at org.fusesource.ide.camel.editor.features.create.ext.CreateFigureFeature.create(CreateFigureFeature.java:215)
      at org.eclipse.graphiti.features.impl.AbstractCreateFeature.execute(AbstractCreateFeature.java:100)
      at org.eclipse.graphiti.internal.command.GenericFeatureCommandWithContext.execute(GenericFeatureCommandWithContext.java:64)
      at org.eclipse.graphiti.internal.command.GFPreparableCommand.doExecute(GFPreparableCommand.java:37)
      at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135)
      at org.eclipse.graphiti.ui.internal.editor.GFWorkspaceCommandStackImpl.execute(GFWorkspaceCommandStackImpl.java:128)
      at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:219)
      at org.eclipse.graphiti.internal.command.CommandExec.executeCommand(CommandExec.java:85)
      at org.eclipse.graphiti.ui.internal.command.CreateModelObjectCommand.execute(CreateModelObjectCommand.java:49)
      at org.eclipse.graphiti.ui.internal.editor.EmfOnGefCommand.execute(EmfOnGefCommand.java:54)
      at org.eclipse.graphiti.internal.command.GFPreparableCommand2.doExecute(GFPreparableCommand2.java:43)
      at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135)
      at org.eclipse.emf.workspace.EMFCommandOperation.doExecute(EMFCommandOperation.java:119)
      at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:150)
      at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:516)
      at org.eclipse.emf.workspace.impl.WorkspaceCommandStackImpl.doExecute(WorkspaceCommandStackImpl.java:208)
      at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:165)
      at org.eclipse.graphiti.ui.internal.editor.GFWorkspaceCommandStackImpl.execute(GFWorkspaceCommandStackImpl.java:97)
      at org.eclipse.graphiti.ui.internal.editor.GFCommandStack.execute(GFCommandStack.java:138)
      at org.eclipse.gef.tools.AbstractTool.executeCommand(AbstractTool.java:425)
      at org.eclipse.gef.tools.AbstractTool.executeCurrentCommand(AbstractTool.java:438)
      at org.eclipse.gef.tools.CreationTool.performCreation(CreationTool.java:269)
      at org.eclipse.gef.tools.CreationTool.handleButtonUp(CreationTool.java:189)
      at org.eclipse.gef.tools.AbstractTool.mouseUp(AbstractTool.java:1200)
      at org.eclipse.gef.EditDomain.mouseUp(EditDomain.java:301)
      at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseReleased(DomainEventDispatcher.java:380)
      at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseUp(LightweightSystem.java:548)
      at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

      Bundles:

      org.eclipse.core.commands 3.7.0.v20150422-0725 3.8.0.v20160316-1921
      org.eclipse.core.runtime 3.11.1.v20150903-1804 3.11.1.v20150903-1804
      org.eclipse.draw2d 3.10.1.201508170204 3.10.1.201508170204
      org.eclipse.e4.core.di 1.5.0.v20150421-2214 1.6.1.v20160712-0927
      org.eclipse.emf.transaction 1.9.0.201506010221 1.9.0.201606071900
      org.eclipse.emf.workspace 1.5.1.201506010221 1.5.1.201606071900
      org.eclipse.gef 3.10.1.201508170204 3.10.1.201508170204
      org.eclipse.graphiti 0.13.0.v20160203-1129 0.13.0.v20160203-1129
      org.eclipse.graphiti.ui 0.13.0.v20160203-1129 0.13.1.v20160830-1309
      org.eclipse.jface 3.11.1.v20160128-1644 3.11.1.v20160128-1644
      org.eclipse.swt 3.104.2.v20160212-1350 3.105.2.v20161122-0613
      org.eclipse.ui 3.107.0.v20150507-1945 3.108.1.v20160929-1045
      org.fusesource.ide.camel.editor 8.0.0.Final-v20161003-0720-B128 9.0.0.Final-v20161115-1424-B61

      Operating Systems:

      Linux 3.10.0.el7 4.4.0
      Windows 6.1.0 10.0.0

      The above information is a snapshot of the collected data. Visit https://aer.ctrlflow.com/redhat/reviewers/#!/problems/57912e0ee4b07542de52046c for the latest data.

      Thank you for your assistance.
      Your friendly error-reports-inbox.

              apupier@redhat.com Aurélien Pupier
              aer-bot Automated Error Reporting Bot (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: