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

Other wizard fails when custom data format is used

XMLWordPrintable

      It looks like NewTransformationWizard is attempting to add required dependencies when the Other type is used. This should not be necessary as the user has already defined the data formats in their project. Unfortunately, the code here throws an NPE, which blocks this use case completely.

      java.lang.NullPointerException
      	at org.jboss.tools.fuse.transformation.editor.wizards.NewTransformationWizard.addDataFormatDefinitionDependency(NewTransformationWizard.java:555)
      	at org.jboss.tools.fuse.transformation.editor.wizards.NewTransformationWizard.access$8(NewTransformationWizard.java:551)
      	at org.jboss.tools.fuse.transformation.editor.wizards.NewTransformationWizard$1.run(NewTransformationWizard.java:155)
      	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:466)
      	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:374)
      	at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1059)
      	at org.jboss.tools.fuse.transformation.editor.wizards.NewTransformationWizard.performFinish(NewTransformationWizard.java:214)
      	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:853)
      	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:438)
      	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4199)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
      	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4042)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3669)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
      	at org.eclipse.jface.window.Window.open(Window.java:808)
      	at org.jboss.tools.fuse.transformation.extensions.DataTransformationPaletteEntry$DataMapperEndpointFigureFeature.createNode(DataTransformationPaletteEntry.java:149)
      	at org.jboss.tools.fuse.transformation.extensions.DataTransformationPaletteEntry$DataMapperEndpointFigureFeature.create(DataTransformationPaletteEntry.java:101)
      	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:115)
      	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:55)
      	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: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.graphiti.ui.internal.editor.GFCommandStack.execute(GFCommandStack.java:138)
      	at org.eclipse.graphiti.ui.internal.dnd.GFTemplateTransferDropTargetListener.handleDrop(GFTemplateTransferDropTargetListener.java:55)
      	at org.eclipse.gef.dnd.AbstractTransferDropTargetListener.drop(AbstractTransferDropTargetListener.java:183)
      	at org.eclipse.jface.util.DelegatingDropAdapter$3.run(DelegatingDropAdapter.java:219)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
      	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:178)
      	at org.eclipse.jface.util.DelegatingDropAdapter.drop(DelegatingDropAdapter.java:216)
      	at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:91)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4199)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
      	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
      	at org.eclipse.swt.dnd.DropTarget.drop(DropTarget.java:728)
      	at org.eclipse.swt.dnd.DropTarget.performDragOperation(DropTarget.java:742)
      	at org.eclipse.swt.dnd.DropTarget.dropTargetProc(DropTarget.java:456)
      	at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
      	at org.eclipse.swt.internal.cocoa.NSView.dragImage(NSView.java:150)
      	at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:398)
      	at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:219)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4199)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
      	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4042)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3669)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:483)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
      

              bfitzpat_rh Brian Fitzpatrick (Inactive)
              kbabo1@redhat.com Keith Babo (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: