Bug 22065 - Deleteing a jar file prevents Run dialog from appearing.
Summary: Deleteing a jar file prevents Run dialog from appearing.
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 XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-30 18:11 EDT by Rob Hughes CLA
Modified: 2002-07-31 09:06 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Hughes CLA 2002-07-30 18:11:18 EDT
A Run target has a dependency on jar file A.  User deletes jar file A from the 
file system not via eclipse(this might occur if you delete it within eclipse 
too).  A NullPointerException is thrown thus preventing the Run dialog from 
ever appearing or any targets from being Run.

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.se
tLaunchConfiguration(LaunchConfigurationDialog.java:1453)
	at 
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.se
lectionChanged(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.do
InitialTreeSelection(LaunchConfigurationDialog.java:537)
	at 
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.cr
eateContents(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.do
LastLaunchedConfig(LaunchConfigurationDialog.java:617)
	at 
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.op
en(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)
Comment 1 Darin Wright CLA 2002-07-31 09:06:04 EDT

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