Bug 22489

Summary: Run... dialog will not open - Exception occurs
Product: [Eclipse Project] JDT Reporter: Kurt Kellner <kkellner>
Component: DebugAssignee: Darin Wright <darin.eclipse>
Status: RESOLVED DUPLICATE QA Contact:
Severity: critical    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Kurt Kellner CLA 2002-08-16 01:07:15 EDT
The "Run..." dialog box will not open.  Below is the exception in the .log 
file.  

Here is my guess what happened: I had a custom class path for one of the Run 
configurations.  The JAR files were relative to a project.  However, the 
project was renamed from "EJBTest2" to "EJBTest" however the relative classpath 
still contained the old "EJBTest2" name.  I selected this run item (which makes 
it the default) and attempted to run (with invalid classpath).  Although the 
run failed (as expected), the run dialog box closed and would never open 
again.  The exception below occurs every time the open is attempted.


!ENTRY org.eclipse.ui 4 4 Aug 15, 2002 23:08:59.244
!MESSAGE Unhandled exception caught in event loop.
!ENTRY org.eclipse.ui 4 0 Aug 15, 2002 23:08:59.260
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
	at org.eclipse.jdt.internal.launching.RuntimeClasspathEntry.<init>
(RuntimeClasspathEntry.java:168)
	at org.eclipse.jdt.launching.JavaRuntime.newRuntimeClasspathEntry
(JavaRuntime.java:504)
	at 
org.eclipse.jdt.launching.StandardClasspathProvider.recoverRuntimePath
(StandardClasspathProvider.java:96)
	at 
org.eclipse.jdt.launching.StandardClasspathProvider.computeUnresolvedClasspath
(StandardClasspathProvider.java:61)
	at 
org.eclipse.jdt.launching.JavaRuntime.computeUnresolvedRuntimeClasspath
(JavaRuntime.java:763)
	at 
org.eclipse.jdt.debug.ui.launchConfigurations.JavaClasspathTab.initializeFrom
(JavaClasspathTab.java:224)
	at 
org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup.initializeFrom
(AbstractLaunchConfigurationTabGroup.java:78)
	at 
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.set
LaunchConfiguration(LaunchConfigurationDialog.java:1453)
	at 
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.sel
ectionChanged(LaunchConfigurationDialog.java:1382)
	at org.eclipse.jface.viewers.Viewer.fireSelectionChanged
(Viewer.java:147)
	at org.eclipse.jface.viewers.StructuredViewer.updateSelection
(StructuredViewer.java:1155)
	at org.eclipse.jface.viewers.StructuredViewer.setSelection
(StructuredViewer.java:904)
	at org.eclipse.jface.viewers.Viewer.setSelection(Viewer.java:342)
	at 
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.doI
nitialTreeSelection(LaunchConfigurationDialog.java:537)
	at 
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.cre
ateContents(LaunchConfigurationDialog.java:456)
	at org.eclipse.jface.window.Window.create(Window.java:277)
	at org.eclipse.jface.window.Window.open(Window.java:526)
	at 
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.doL
astLaunchedConfig(LaunchConfigurationDialog.java:617)
	at 
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.ope
n(LaunchConfigurationDialog.java:578)
	at 
org.eclipse.debug.internal.ui.actions.OpenLaunchConfigurationsAction.run
(OpenLaunchConfigurationsAction.java:132)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:749)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:407)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent
(ActionContributionItem.java:361)
	at org.eclipse.jface.action.ActionContributionItem.access$0
(ActionContributionItem.java:352)
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1529)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1291)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1177)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1160)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:775)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:248)
	at org.eclipse.core.launcher.Main.run(Main.java:698)
	at org.eclipse.core.launcher.Main.main(Main.java:534)
Comment 1 Darin Swanson CLA 2002-08-16 10:04:46 EDT
Work arounds:

1. Delete the offending launch configuration(s) in the file system (if local, 
the launch configuration files are contained in 
YOURWORKSPACELOCATION\.metadata\.plugins\org.eclipse.debug.core\.launches

2. Move to a 2.1 stream integration build (where the problem is fixed).

*** This bug has been marked as a duplicate of 21170 ***
Comment 2 Darin Wright CLA 2002-08-16 10:54:50 EDT
This problem is also fixed in 2.0.1