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

Adding components on wrong route

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 7.2.0
    • 7.2.0
    • Camel Editor
    • None
    • Hide
      1. create a new Fuse project (e.g. camel-spring)
      2. open the Camel editor
      3. create a new route
      4. select some component and add a new component via context menu
      5. the new component is created on the new route (Error)
      Show
      create a new Fuse project (e.g. camel-spring) open the Camel editor create a new route select some component and add a new component via context menu the new component is created on the new route (Error)

    Description

      Adding new components via the context menu "Add" is broken, if we work with multiple routes (see attachment and Steps to Reproduce).

      Error log
      eclipse.buildId=unknown
      java.version=1.7.0_45
      java.vendor=Oracle Corporation
      BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
      Framework arguments:  -product com.jboss.jbds.product.product
      Command-line arguments:  -os linux -ws gtk -arch x86_64 -product com.jboss.jbds.product.product
      
      Error
      Tue Jan 14 14:00:50 CET 2014
      Unhandled event loop exception
      
      org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
      	at org.eclipse.swt.SWT.error(SWT.java:4397)
      	at org.eclipse.swt.SWT.error(SWT.java:4312)
      	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
      	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3717)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3366)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	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:354)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
      	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:606)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
      Caused by: java.lang.NullPointerException
      	at org.eclipse.draw2d.graph.Edge.<init>(Edge.java:187)
      	at org.eclipse.draw2d.graph.Edge.<init>(Edge.java:151)
      	at org.fusesource.ide.camel.editor.features.custom.LayoutDiagramFeature.mapDiagramToGraph(LayoutDiagramFeature.java:124)
      	at org.fusesource.ide.camel.editor.features.custom.LayoutDiagramFeature.execute(LayoutDiagramFeature.java:76)
      	at org.fusesource.ide.camel.editor.commands.LayoutCommand.doExecute(LayoutCommand.java:34)
      	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:513)
      	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:84)
      	at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:219)
      	at org.fusesource.ide.camel.editor.commands.DiagramOperations.execute(DiagramOperations.java:82)
      	at org.fusesource.ide.camel.editor.commands.DiagramOperations.layoutDiagram(DiagramOperations.java:33)
      	at org.fusesource.ide.camel.editor.features.custom.CreateNodeConnectionFeature$1.run(CreateNodeConnectionFeature.java:152)
      	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
      	... 24 more
      
      
      

      Attachments

        Activity

          People

            lheinema@redhat.com Lars Heinemann
            tsedmik Tomáš Sedmík
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: