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

NPE: After switching Source to Design with corrupted XML file

XMLWordPrintable

    • Hide
      1. create a Fuse project (e.g. camel-archetype-spring)
      2. in Camel Editor switch to Source tab
      3. invalidate the XML file
      4. switch to Design tab
      5. confirm XML Validation Error dialog
      Show
      create a Fuse project (e.g. camel-archetype-spring ) in Camel Editor switch to Source tab invalidate the XML file switch to Design tab confirm XML Validation Error dialog

      The following error occurs, if I switch between Source and Design tab in the Camel Editor with corrupted (not well formed) XML file (see attached video).

      eclipse.buildId=9.1.0.GA-v20160403-1700-B477
      java.version=1.8.0_73
      java.vendor=Oracle Corporation
      BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
      Framework arguments:  -product com.jboss.devstudio.core.product -pluginCustomization C:\Users\Tomas Sedmik\Development\jbds-installer\jbds-9.1.0.CR1_jbdsis-9.0.0.CR1/resources/pluginCustomization.ini
      Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product com.jboss.devstudio.core.product -pluginCustomization C:\Users\Tomas Sedmik\Development\jbds-installer\jbds-9.1.0.CR1_jbdsis-9.0.0.CR1/resources/pluginCustomization.ini
      
      org.eclipse.ui
      Error
      Wed Apr 06 07:02:36 CEST 2016
      Unhandled event loop exception
      
      org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
      	at org.eclipse.swt.SWT.error(SWT.java:4491)
      	at org.eclipse.swt.SWT.error(SWT.java:4406)
      	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
      	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4155)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3772)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:694)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
      	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:497)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
      Caused by: java.lang.NullPointerException
      	at org.fusesource.ide.camel.editor.CamelDesignEditor.clearCache(CamelDesignEditor.java:776)
      	at org.fusesource.ide.camel.editor.CamelEditor$4.run(CamelEditor.java:608)
      	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
      	... 24 more
      
      
      eclipse.buildId=9.1.0.GA-v20160403-1700-B477
      java.version=1.8.0_73
      java.vendor=Oracle Corporation
      BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
      Framework arguments:  -product com.jboss.devstudio.core.product -pluginCustomization C:\Users\Tomas Sedmik\Development\jbds-installer\jbds-9.1.0.CR1_jbdsis-9.0.0.CR1/resources/pluginCustomization.ini
      Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product com.jboss.devstudio.core.product -pluginCustomization C:\Users\Tomas Sedmik\Development\jbds-installer\jbds-9.1.0.CR1_jbdsis-9.0.0.CR1/resources/pluginCustomization.ini
      
      org.eclipse.e4.ui.workbench
      Error
      Wed Apr 06 07:19:12 CEST 2016
      
      
      java.lang.NullPointerException
      	at org.fusesource.ide.camel.editor.features.misc.UpdateNodeFeature.updateNeeded(UpdateNodeFeature.java:66)
      	at org.eclipse.graphiti.ui.internal.action.UpdateAction.calculateEnabled(UpdateAction.java:79)
      	at org.eclipse.gef.ui.actions.WorkbenchPartAction.refresh(WorkbenchPartAction.java:131)
      	at org.eclipse.gef.ui.actions.SelectionAction.handleSelectionChanged(SelectionAction.java:89)
      	at org.eclipse.gef.ui.actions.SelectionAction.setSelection(SelectionAction.java:101)
      	at org.eclipse.gef.ui.actions.SelectionAction.update(SelectionAction.java:124)
      	at org.eclipse.gef.ui.parts.GraphicalEditor.updateActions(GraphicalEditor.java:458)
      	at org.fusesource.ide.camel.editor.CamelDesignEditor.selectionChanged(CamelDesignEditor.java:258)
      	at org.eclipse.ui.internal.e4.compatibility.SelectionService.notifyListeners(SelectionService.java:237)
      	at org.eclipse.ui.internal.e4.compatibility.SelectionService.handleSelectionChanged(SelectionService.java:107)
      	at org.eclipse.ui.internal.e4.compatibility.SelectionService.access$0(SelectionService.java:91)
      	at org.eclipse.ui.internal.e4.compatibility.SelectionService$1.selectionChanged(SelectionService.java:66)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$2.run(SelectionAggregator.java:126)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator.notifyListeners(SelectionAggregator.java:123)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator.access$6(SelectionAggregator.java:120)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$7$1.run(SelectionAggregator.java:233)
      	at org.eclipse.e4.core.contexts.RunAndTrack.runExternalCode(RunAndTrack.java:56)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$7.changed(SelectionAggregator.java:230)
      	at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:114)
      	at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:341)
      	at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:356)
      	at org.eclipse.e4.ui.internal.workbench.SelectionServiceImpl.setSelection(SelectionServiceImpl.java:31)
      	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.selectionChanged(CompatibilityPart.java:441)
      	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.fireSelectionChanged(MultiPageSelectionProvider.java:89)
      	at org.eclipse.ui.part.MultiPageEditorPart.pageChange(MultiPageEditorPart.java:885)
      	at org.fusesource.ide.camel.editor.CamelEditor.pageChange(CamelEditor.java:467)
      	at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEditorPart.java:295)
      	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:4362)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1137)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1122)
      	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:788)
      	at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3158)
      	at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1841)
      	at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:330)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:694)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
      	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:497)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
      

        1. out-1.ogv
          2.32 MB
        2. out.ogv
          1.84 MB

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

                Created:
                Updated:
                Resolved: