Bug 24069 - NPE when launching java after classpath change
Summary: NPE when launching java after classpath change
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 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-25 04:42 EDT by Magnus Ihse Bursie CLA
Modified: 2002-09-26 09:57 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 Magnus Ihse Bursie CLA 2002-09-25 04:42:31 EDT
After a major change to CVS project struture and references, one in our team 
couldn't run her JUnit test class any more. All attempts at running that class -
 and also at getting the Run/Run...-window (Launch configurations) resulted in 
a NPE. After several failed attempts at clearing the classpath and launch 
history, we noticed that one of the old history launches was able to run. After 
that, everything worked OK.

This is the relevant part of the log file.

!SESSION sep 25, 2002 10:38:42.734 ---------------------------------------------
java.version=1.3.1_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=sv_SE
Command-line arguments: -os win32 -ws win32 -arch x86 -install file:C:/Program 
Files/eclipse/eclipse/
!ENTRY org.eclipse.core.resources 2 1 sep 25, 2002 10:38:42.734
!MESSAGE Skipping builder 
com.telesynthesis.tools.eclipse.checkstyle.CheckStyleBuilder for project 
ToolsConsoleTestUtils. Either the builder is missing from the install, or it 
belongs to a project nature that is missing or disabled.
!ENTRY org.eclipse.core.resources 2 1 sep 25, 2002 10:38:42.781
!MESSAGE Skipping builder 
com.telesynthesis.tools.eclipse.checkstyle.CheckStyleBuilder for project 
ToolsCommon. Either the builder is missing from the install, or it belongs to a 
project nature that is missing or disabled.
!ENTRY org.eclipse.core.resources 2 1 sep 25, 2002 10:38:42.781
!MESSAGE Skipping builder 
com.telesynthesis.tools.eclipse.checkstyle.CheckStyleBuilder for project 
ManagementAPI. Either the builder is missing from the install, or it belongs to 
a project nature that is missing or disabled.
!ENTRY org.eclipse.core.resources 2 1 sep 25, 2002 10:38:42.781
!MESSAGE Skipping builder 
com.telesynthesis.tools.eclipse.checkstyle.CheckStyleBuilder for project 
ToolsJRockitSide. Either the builder is missing from the install, or it belongs 
to a project nature that is missing or disabled.
!ENTRY org.eclipse.core.resources 2 1 sep 25, 2002 10:38:42.781
!MESSAGE Skipping builder 
com.telesynthesis.tools.eclipse.checkstyle.CheckStyleBuilder for project 
ToolsConsole. Either the builder is missing from the install, or it belongs to 
a project nature that is missing or disabled.
!ENTRY org.eclipse.core.resources 2 1 sep 25, 2002 10:38:42.796
!MESSAGE Skipping builder 
com.telesynthesis.tools.eclipse.checkstyle.CheckStyleBuilder for project 
ToolsConsoleTest. Either the builder is missing from the install, or it belongs 
to a project nature that is missing or disabled.
!ENTRY org.eclipse.ui 4 4 sep 25, 2002 10:38:59.328
!MESSAGE Unhandled exception caught in event loop.
!ENTRY org.eclipse.ui 4 0 sep 25, 2002 10:38:59.343
!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 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)
!ENTRY org.eclipse.ui 4 4 sep 25, 2002 10:40:02.234
!MESSAGE Unhandled exception caught in event loop.
!ENTRY org.eclipse.ui 4 0 sep 25, 2002 10:40:02.234
!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 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-09-26 09:57:54 EDT
Fixed in 2.0.1

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