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

REST editor - NPE while switching between REST operations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 11.2.0.AM1
    • Camel Editor
    • None
      1. import attached project into Fuse Tooling
      2. open camel-context.xml file
      3. switch to REST tab
      4. try to select and change selection of REST Operations

      see attached screencast + the attached project can be used to reproduce the issue

      The following error occurs:

      null
      org.eclipse.ui.views.properties.tabbed
      Error
      Thu Nov 15 09:49:49 CET 2018
      Problems occurred when invoking code from plug-in: "org.eclipse.ui.views.properties.tabbed".
      
      java.lang.NullPointerException
      	at org.eclipse.core.databinding.ValueBinding.postInit(ValueBinding.java:101)
      	at org.eclipse.core.databinding.Binding.init(Binding.java:80)
      	at org.eclipse.core.databinding.DataBindingContext.bindValue(DataBindingContext.java:165)
      	at org.fusesource.ide.camel.editor.properties.creators.AbstractParameterPropertyUICreator.bind(AbstractParameterPropertyUICreator.java:89)
      	at org.fusesource.ide.camel.editor.properties.creators.AbstractParameterPropertyUICreator.initAndBind(AbstractParameterPropertyUICreator.java:75)
      	at org.fusesource.ide.camel.editor.properties.creators.AbstractParameterPropertyUICreator.create(AbstractParameterPropertyUICreator.java:70)
      	at org.fusesource.ide.camel.editor.properties.rest.RestVerbElementPropertiesSection.createPropertyFieldEditor(RestVerbElementPropertiesSection.java:142)
      	at org.fusesource.ide.camel.editor.properties.rest.RestVerbElementPropertiesSection.handleField(RestVerbElementPropertiesSection.java:85)
      	at org.fusesource.ide.camel.editor.properties.rest.RestVerbElementPropertiesSection.generateTabContents(RestVerbElementPropertiesSection.java:200)
      	at org.fusesource.ide.camel.editor.properties.rest.RestVerbElementPropertiesSection.createContentTabs(RestVerbElementPropertiesSection.java:76)
      	at org.fusesource.ide.camel.editor.properties.FusePropertySection.initSectionFor(FusePropertySection.java:155)
      	at org.fusesource.ide.camel.editor.properties.FusePropertySection.setInput(FusePropertySection.java:128)
      	at org.eclipse.ui.views.properties.tabbed.TabContents$5.run(TabContents.java:184)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
      	at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:47)
      	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:176)
      	at org.eclipse.ui.views.properties.tabbed.TabContents.setInput(TabContents.java:187)
      	at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage$SelectionChangedListener.selectionChanged(TabbedPropertySheetPage.java:221)
      	at org.eclipse.jface.viewers.Viewer$1.run(Viewer.java:158)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
      	at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:47)
      	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:176)
      	at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:155)
      	at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2182)
      	at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1225)
      	at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1254)
      	at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:243)
      	at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:238)
      	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:403)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5797)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1374)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1400)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1383)
      	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1168)
      	at org.eclipse.ui.internal.views.properties.tabbed.view.TabbedPropertyList.select(TabbedPropertyList.java:878)
      	at org.eclipse.ui.internal.views.properties.tabbed.view.TabbedPropertyViewer.setSelectionToWidget(TabbedPropertyViewer.java:132)
      	at org.eclipse.jface.viewers.StructuredViewer.setSelectionToWidget(StructuredViewer.java:1761)
      	at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1717)
      	at org.eclipse.jface.viewers.Viewer.setSelection(Viewer.java:383)
      	at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage.setInput(TabbedPropertySheetPage.java:763)
      	at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage.selectionChanged(TabbedPropertySheetPage.java:571)
      	at org.eclipse.ui.views.properties.PropertySheet.showSelectionAndDescription(PropertySheet.java:503)
      	at org.eclipse.ui.views.properties.PropertySheet.selectionChanged(PropertySheet.java:483)
      	at org.eclipse.ui.internal.e4.compatibility.SelectionService.notifyListeners(SelectionService.java:242)
      	at org.eclipse.ui.internal.e4.compatibility.SelectionService.handlePostSelectionChanged(SelectionService.java:116)
      	at org.eclipse.ui.internal.e4.compatibility.SelectionService.lambda$2(SelectionService.java:71)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$3.run(SelectionAggregator.java:163)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator.notifyPostListeners(SelectionAggregator.java:160)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator.access$7(SelectionAggregator.java:158)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$6.lambda$0(SelectionAggregator.java:250)
      	at org.eclipse.e4.core.contexts.RunAndTrack.runExternalCode(RunAndTrack.java:59)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$6.changed(SelectionAggregator.java:250)
      	at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:117)
      	at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:365)
      	at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:380)
      	at org.eclipse.e4.ui.internal.workbench.SelectionServiceImpl.setPostSelection(SelectionServiceImpl.java:39)
      	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.lambda$2(CompatibilityPart.java:130)
      	at org.eclipse.ui.part.MultiPageSelectionProvider$1.run(MultiPageSelectionProvider.java:111)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
      	at org.eclipse.ui.part.MultiPageSelectionProvider.fireEventChange(MultiPageSelectionProvider.java:108)
      	at org.eclipse.ui.part.MultiPageSelectionProvider.firePostSelectionChanged(MultiPageSelectionProvider.java:102)
      	at org.eclipse.ui.part.MultiPageEditorSite.handlePostSelectionChanged(MultiPageEditorSite.java:478)
      	at org.eclipse.ui.part.MultiPageEditorSite.lambda$2(MultiPageEditorSite.java:386)
      	at org.fusesource.ide.camel.editor.restconfiguration.RestConfigEditor.setSelection(RestConfigEditor.java:776)
      	at org.fusesource.ide.camel.editor.restconfiguration.RestConfigEditor$RestVerbSelectionListener.handleEvent(RestConfigEditor.java:825)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5797)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1374)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5051)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4583)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
      	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:628)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:563)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:151)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:199)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:391)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:246)
      	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:498)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1501)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1474)
      

        1. rest-editor.webm
          3.76 MB
          Tomáš Sedmík

              Unassigned Unassigned
              tsedmik Tomáš Sedmík
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: