Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Run As JUnit test fails with NullPointerException in eclipse logs

1 view
Skip to first unread message

i...@knowsense.co.uk

unread,
Sep 13, 2006, 6:21:23 AM9/13/06
to
Somehow, one of our WSAD 5 installations has ended up with some kind of corruption in the launch configurations (I think). The syptom is that we can't run our Junit tests, or bring up the Run... launch dialog. In the eclipse logs we see the following stack trace:

java.lang.NullPointerException
at org.eclipse.jdt.launching.JavaRuntime.expandProject(JavaRuntime.java(Compiled Code))
at org.eclipse.jdt.launching.JavaRuntime.expandProject(JavaRuntime.java:963)
at org.eclipse.jdt.launching.JavaRuntime.computeUnresolvedRuntimeClasspath(JavaRuntime.java:539)
at org.eclipse.jdt.launching.StandardClasspathProvider.computeUnresolvedClasspath(StandardClasspathProvider.java:57)
at org.eclipse.jdt.launching.JavaRuntime.computeUnresolvedRuntimeClasspath(JavaRuntime.java:770)
at org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate.getClasspath(AbstractJavaLaunchConfigurationDelegate.java:217)
at org.eclipse.jdt.internal.junit.launcher.JUnitLaunchConfiguration.createClassPath(JUnitLaunchConfiguration.java:62)
at org.eclipse.jdt.internal.junit.launcher.JUnitLaunchConfiguration.createVMRunner(JUnitLaunchConfiguration.java:39)
at org.eclipse.jdt.internal.junit.launcher.JUnitBaseLaunchConfiguration.launch(JUnitBaseLaunchConfiguration.java:80)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:136)
at org.eclipse.debug.internal.ui.actions.RelaunchActionDelegate.relaunch(RelaunchActionDelegate.java:56)
at org.eclipse.debug.internal.ui.actions.RelaunchActionDelegate.relaunch(RelaunchActionDelegate.java:32)
at org.eclipse.debug.internal.ui.actions.RelaunchHistoryLaunchAction$1.run(RelaunchHistoryLaunchAction.java:59)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:66)
at org.eclipse.debug.internal.ui.actions.RelaunchHistoryLaunchAction.run(RelaunchHistoryLaunchAction.java:57)
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(Compiled Code))
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:1343)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1326)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:831)
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:247)
at org.eclipse.core.launcher.Main.run(Main.java:703)
at org.eclipse.core.launcher.Main.main(Main.java:539)

0 new messages