Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-3891

NPE in Eclipse "External Tools Configurations" window

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.6.0.RELEASE
    • Fix Version/s: 3.6.2.RELEASE
    • Component/s: GRADLE
    • Labels:
      None
    • Environment:
      Eclipse Luna on Windows

      Description

      NullPointerException caused by Gradle STS plugin when switching away from a Gradle launch configuration in the "External Tools Configurations" view.

      Steps to reproduce:

      1. Create a minimal Gradle project that contains a launch configuration and import into Eclipse
      2. Open External tool configs dialog
      3. In Eclipse, open the "External Tools Configurations" window and click on the "Gradle Build" node in the tree view to expand it
      4. Select an arbitrary child of the "Gradle Build" node
      5. Select a different node outside the "Gradle build" node (e.g. "Program", or "API Use Report")

      Eclipse shows an exception and freezes. The window cannot be closed anymore and Eclipse will not close until killed.

      The workspace log (<workspace_dir>/.metadata/.log" ) shows the exception stacktrace

      !ENTRY org.eclipse.ui 4 0 2014-08-13 10:02:45.930
      !MESSAGE Unhandled event loop exception
      !STACK 0
      java.lang.NullPointerException
      	at org.springsource.ide.eclipse.gradle.ui.cli.editor.TasksViewer.dispose(TasksViewer.java:203)
      	at org.springsource.ide.eclipse.gradle.ui.launch.GradleLaunchTasksTab.dispose(GradleLaunchTasksTab.java:316)
      	at org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup.dispose(AbstractLaunchConfigurationTabGroup.java:63)
      	at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupWrapper.dispose(LaunchConfigurationTabGroupWrapper.java:151)
      	at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.disposeTabGroup(LaunchConfigurationTabGroupViewer.java:205)
      	at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.dispose(LaunchConfigurationTabGroupViewer.java:197)
      	at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.close(LaunchConfigurationsDialog.java:348)
      	at org.eclipse.jface.window.Window.handleShellCloseEvent(Window.java:748)
      	at org.eclipse.jface.dialogs.TrayDialog.handleShellCloseEvent(TrayDialog.java:224)
      	at org.eclipse.jface.window.Window$3.shellClosed(Window.java:694)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:98)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1070)
      	at org.eclipse.swt.widgets.Decorations.closeWidget(Decorations.java:308)
      	at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.java:1696)
      	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4612)
      	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:339)
      	at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1626)
      	at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2075)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5023)
      	at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
      	at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2443)
      	at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:496)
      	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
      	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:339)
      	at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1626)
      	at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2075)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5023)
      	at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
      	at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2443)
      	at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:496)
      	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)
      	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:339)
      	at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1626)
      	at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2075)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5023)
      	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
      	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2549)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
      	at org.eclipse.jface.window.Window.open(Window.java:808)
      	at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1154)
      	at org.eclipse.debug.ui.DebugUITools$2.run(DebugUITools.java:611)
      	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      	at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:619)
      	at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:552)
      	at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:82)
      	at org.eclipse.jface.action.Action.runWithEvent(Action.java:519)
      	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
      	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
      	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
      	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:382)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	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)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
      

        Attachments

          Activity

            People

            Assignee:
            aboyko Alex Boyko
            Reporter:
            jboden J Bodenstein
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: