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

Loosing value of some path parameters

    Details

    • Steps to Reproduce:
      Hide
      1. create a Fuse Integration Project
      2. add Restlet component into the Camel Editor
      3. in Properties View switch to Advanced
      4. check error log --> NPE

      OR (more critical)

      1. create a Fuse Integration Project
      2. add Restlet component into the Camel Editor
      3. in Properties View switch to Advanced
      4. set values for all fields
      5. click in some other place to not have the restlet component selected anymore
      6. select the restlet component
      7. several values has been back to default values
      Show
      create a Fuse Integration Project add Restlet component into the Camel Editor in Properties View switch to Advanced check error log --> NPE OR (more critical) create a Fuse Integration Project add Restlet component into the Camel Editor in Properties View switch to Advanced set values for all fields click in some other place to not have the restlet component selected anymore select the restlet component several values has been back to default values

      Description

      I hit the following error once I clicked on Advanced in Properties View of Restlet component (see attached video).

      eclipse.buildId=10.1.0.GA-v20160902-1725-B43
      java.version=1.8.0_101
      java.vendor=Oracle Corporation
      BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
      Framework arguments:  -product com.jboss.devstudio.core.product -pluginCustomization /home/tsedmik/devel/git/jbds-installer/rhdsis-10.nightly/resources/pluginCustomization.ini
      Command-line arguments:  -os linux -ws gtk -arch x86_64 -product com.jboss.devstudio.core.product -pluginCustomization /home/tsedmik/devel/git/jbds-installer/rhdsis-10.nightly/resources/pluginCustomization.ini -data file:/home/tsedmik/devel/git/jbds-installer/rhdsis-10.nightly/target/tmp/ -clean
      
      org.eclipse.core.databinding
      Error
      Tue Oct 18 14:19:21 CEST 2016
      An error occurred while setting the value.
      
      java.lang.NullPointerException
      	at org.fusesource.ide.camel.model.service.core.util.PropertiesUtils.updatePathParams(PropertiesUtils.java:531)
      	at org.fusesource.ide.camel.model.service.core.util.PropertiesUtils.updateURIParams(PropertiesUtils.java:445)
      	at org.fusesource.ide.camel.editor.properties.AdvancedEndpointPropertiesSection$1.modifyText(AdvancedEndpointPropertiesSection.java:184)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:180)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5219)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1340)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1366)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1345)
      	at org.eclipse.swt.widgets.Text.setText(Text.java:2682)
      	at org.eclipse.swt.widgets.Text.setText(Text.java:2608)
      	at org.eclipse.jface.internal.databinding.swt.TextTextProperty.doSetStringValue(TextTextProperty.java:69)
      	at org.eclipse.jface.internal.databinding.swt.WidgetStringValueProperty.doSetValue(WidgetStringValueProperty.java:50)
      	at org.eclipse.core.databinding.property.value.ValueProperty.setValue(ValueProperty.java:89)
      	at org.eclipse.core.internal.databinding.property.value.SimplePropertyObservableValue.doSetValue(SimplePropertyObservableValue.java:110)
      	at org.eclipse.core.databinding.observable.value.AbstractObservableValue.setValue(AbstractObservableValue.java:66)
      	at org.eclipse.core.databinding.observable.value.DecoratingObservableValue.setValue(DecoratingObservableValue.java:115)
      	at org.eclipse.core.databinding.observable.value.DecoratingVetoableValue.setValue(DecoratingVetoableValue.java:44)
      	at org.eclipse.core.databinding.UpdateValueStrategy.doSet(UpdateValueStrategy.java:469)
      	at org.eclipse.core.databinding.ValueBinding$3$1.run(ValueBinding.java:206)
      	at org.eclipse.core.databinding.observable.Realm$1.run(Realm.java:149)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.core.databinding.observable.Realm.safeRun(Realm.java:153)
      	at org.eclipse.core.databinding.observable.Realm.exec(Realm.java:171)
      	at org.eclipse.core.databinding.ValueBinding$3.run(ValueBinding.java:196)
      	at org.eclipse.core.databinding.observable.Realm$1.run(Realm.java:149)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.core.databinding.observable.Realm.safeRun(Realm.java:153)
      	at org.eclipse.core.databinding.observable.Realm.exec(Realm.java:171)
      	at org.eclipse.core.databinding.ValueBinding.doUpdate(ValueBinding.java:158)
      	at org.eclipse.core.databinding.ValueBinding.updateModelToTarget(ValueBinding.java:123)
      	at org.eclipse.core.databinding.ValueBinding.postInit(ValueBinding.java:101)
      	at org.eclipse.core.databinding.Binding.init(Binding.java:81)
      	at org.eclipse.core.databinding.DataBindingContext.bindValue(DataBindingContext.java:167)
      	at org.fusesource.ide.camel.editor.properties.AdvancedEndpointPropertiesSection.generateTabContents(AdvancedEndpointPropertiesSection.java:345)
      	at org.fusesource.ide.camel.editor.properties.AdvancedEndpointPropertiesSection.createContentTabs(AdvancedEndpointPropertiesSection.java:120)
      	at org.fusesource.ide.camel.editor.properties.FusePropertySection.setInput(FusePropertySection.java:156)
      	at org.eclipse.ui.views.properties.tabbed.TabContents$5.run(TabContents.java:181)
      	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:173)
      	at org.eclipse.ui.views.properties.tabbed.TabContents.setInput(TabContents.java:184)
      	at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage$SelectionChangedListener.selectionChanged(TabbedPropertySheetPage.java:211)
      	at org.eclipse.jface.viewers.Viewer$1.run(Viewer.java:158)
      	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:173)
      	at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:155)
      	at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2191)
      	at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1229)
      	at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1258)
      	at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:242)
      	at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:236)
      	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:405)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5219)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1340)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1366)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1349)
      	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1134)
      	at org.eclipse.ui.internal.views.properties.tabbed.view.TabbedPropertyList.select(TabbedPropertyList.java:864)
      	at org.eclipse.ui.internal.views.properties.tabbed.view.TabbedPropertyViewer.setSelectionToWidget(TabbedPropertyViewer.java:122)
      	at org.eclipse.jface.viewers.StructuredViewer.setSelectionToWidget(StructuredViewer.java:1770)
      	at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1726)
      	at org.eclipse.jface.viewers.Viewer.setSelection(Viewer.java:383)
      	at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage.setInput(TabbedPropertySheetPage.java:747)
      	at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage.selectionChanged(TabbedPropertySheetPage.java:555)
      	at org.eclipse.ui.views.properties.PropertySheet.selectionChanged(PropertySheet.java:464)
      	at org.eclipse.ui.internal.e4.compatibility.SelectionService.notifyListeners(SelectionService.java:259)
      	at org.eclipse.ui.internal.e4.compatibility.SelectionService.handlePostSelectionChanged(SelectionService.java:133)
      	at org.eclipse.ui.internal.e4.compatibility.SelectionService.access$1(SelectionService.java:123)
      	at org.eclipse.ui.internal.e4.compatibility.SelectionService$3.selectionChanged(SelectionService.java:81)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$4.run(SelectionAggregator.java:166)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator.notifyPostListeners(SelectionAggregator.java:163)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator.access$8(SelectionAggregator.java:161)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$8$1.run(SelectionAggregator.java:271)
      	at org.eclipse.e4.core.contexts.RunAndTrack.runExternalCode(RunAndTrack.java:56)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$8.changed(SelectionAggregator.java:268)
      	at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:114)
      	at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:343)
      	at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:358)
      	at org.eclipse.e4.ui.internal.workbench.SelectionServiceImpl.setPostSelection(SelectionServiceImpl.java:36)
      	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart$3.selectionChanged(CompatibilityPart.java:131)
      	at org.eclipse.ui.part.MultiPageSelectionProvider$1.run(MultiPageSelectionProvider.java:110)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.ui.part.MultiPageSelectionProvider.fireEventChange(MultiPageSelectionProvider.java:107)
      	at org.eclipse.ui.part.MultiPageSelectionProvider.firePostSelectionChanged(MultiPageSelectionProvider.java:101)
      	at org.eclipse.ui.part.MultiPageEditorSite.handlePostSelectionChanged(MultiPageEditorSite.java:484)
      	at org.eclipse.ui.part.MultiPageEditorSite$4.selectionChanged(MultiPageEditorSite.java:385)
      	at org.eclipse.gef.ui.parts.AbstractEditPartViewer.fireSelectionChanged(AbstractEditPartViewer.java:247)
      	at org.eclipse.gef.ui.parts.AbstractEditPartViewer$1.run(AbstractEditPartViewer.java:131)
      	at org.eclipse.gef.SelectionManager.fireSelectionChanged(SelectionManager.java:156)
      	at org.eclipse.gef.SelectionManager.appendSelection(SelectionManager.java:91)
      	at org.eclipse.gef.ui.parts.AbstractEditPartViewer.appendSelection(AbstractEditPartViewer.java:190)
      	at org.eclipse.graphiti.ui.internal.editor.GraphitiScrollingGraphicalViewer.appendSelection(GraphitiScrollingGraphicalViewer.java:164)
      	at org.eclipse.gef.ui.parts.AbstractEditPartViewer.select(AbstractEditPartViewer.java:599)
      	at org.eclipse.graphiti.ui.internal.editor.GraphitiScrollingGraphicalViewer.select(GraphitiScrollingGraphicalViewer.java:53)
      	at org.eclipse.gef.tools.SelectEditPartTracker.performSelection(SelectEditPartTracker.java:221)
      	at org.eclipse.gef.tools.SelectEditPartTracker.performConditionalSelection(SelectEditPartTracker.java:167)
      	at org.eclipse.gef.tools.SelectEditPartTracker.handleButtonDown(SelectEditPartTracker.java:92)
      	at org.eclipse.gef.tools.AbstractTool.mouseDown(AbstractTool.java:1091)
      	at org.eclipse.gef.tools.SelectionTool.mouseDown(SelectionTool.java:514)
      	at org.eclipse.gef.EditDomain.mouseDown(EditDomain.java:245)
      	at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMousePressed(DomainEventDispatcher.java:348)
      	at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDown(LightweightSystem.java:523)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:193)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5219)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1340)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4553)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4143)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
      	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:388)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
      	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:673)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
      

      this is a regression. some values are no more updated either protocal and uripattern for instance when you click on another element and then reselect the restlet element

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                aurelien.pupier Aurélien Pupier
                Reporter:
                tsedmik Tomáš Sedmík
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: