Bug 21725 - Menu Run->Run ... does not work after deleting a project
Summary: Menu Run->Run ... does not work after deleting a project
Status: RESOLVED DUPLICATE of bug 21170
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-19 01:32 EDT by Klaus Kopruch CLA
Modified: 2002-07-23 10:19 EDT (History)
0 users

See Also:


Attachments
Log file showing stack trace (15.11 KB, text/plain)
2002-07-22 10:43 EDT, John Arthorne CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Kopruch CLA 2002-07-19 01:32:23 EDT
Menu Run->Run ... does not work after deleting a project.
Log entries:

!ENTRY org.eclipse.jdt.launching 4 107 Jul 18, 2002 14:27:54.334
!MESSAGE Launch configuration TestCorbaConnection references non-existing
project BillingInterface.
!ENTRY org.eclipse.ui 4 4 Jul 18, 2002 14:28:06.351
!MESSAGE Unhandled exception caught in event loop.
!ENTRY org.eclipse.ui 4 0 Jul 18, 2002 14:28:06.361
!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.setLaunchConfiguration(LaunchConfigurationDialog.java:1453)
	at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.selectionChanged(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.doInitialTreeSelection(LaunchConfigurationDialog.java:537)
	at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.createContents(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.doLastLaunchedConfig(LaunchConfigurationDialog.java:617)
	at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.open(LaunchConfigurationDialog.java:578)
	at
org.eclipse.debug.internal.ui.actions.OpenLaunchConfigurationsAction.run(OpenLaunchConfigurationsAction.java:132)
	at
org.eclipse.debug.internal.ui.actions.OpenLaunchConfigurationsAction.run(OpenLaunchConfigurationsAction.java:101)
	at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:210)
	at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:175)
	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)

I resolved the problem by clicking on an existing project, clicking Run->Run
as->Java Application. Then the existing project ran and after that I could enter
Run->Run ... and delete the run configuration of the deleted project.
Comment 1 John Arthorne CLA 2002-07-22 10:43:09 EDT
Can you describe the exact steps to reproduce the null pointer exception?

I tried the following steps:

1) Create java project
2) Create class with hello world main method
3) Create a launch configuration and run it
4) Delete the project
5) Open the launch configuration dialog (Run->Run...).

-> Internal error in log file but not a NullPointerException.

Moving to JDT-Debug.
Comment 2 John Arthorne CLA 2002-07-22 10:43:27 EDT
Created attachment 1719 [details]
Log file showing stack trace
Comment 3 Darin Wright CLA 2002-07-23 10:19:16 EDT
NPE has been fixed (bug# 21170)

*** This bug has been marked as a duplicate of 21170 ***