Bug 22013 - NullPointerException when launching Java programs
Summary: NullPointerException when launching Java programs
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-29 13:45 EDT by Michael Erdmann CLA
Modified: 2002-07-30 14:12 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 Michael Erdmann CLA 2002-07-29 13:45:11 EDT
When trying to open the Launch dialog (Run/Run...), I get no response from the
system but rather a NullPointerException in the log file. I suspect some missing
folders in the classpath to be the source of the error, but since the dialog
does not open I cannot verify that. The exact same Exception is thrown if I try
to start one of the programs in the list of my launch files. 
This problem occures for one program I try to start and not for others.

I even reinstalled Eclipse and removed and recreated the project. Nothing
helped. Do I have to remove my complete workspace also?
I am using Version: 2.0 - Build id: 200206271827.

!ENTRY org.eclipse.ui 4 4 Jul 29, 2002 10:26:59.152
!MESSAGE Unhandled exception caught in event loop.
!ENTRY org.eclipse.ui 4 0 Jul 29, 2002 10:26:59.162
!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.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 java.lang.reflect.Method.invoke(Native Method)
	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-30 14:12:35 EDT
Duplicate. Fixed in 2.0.1

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