This page is no longer maintained — Please continue to the home page at www.scala-lang.org

NPE when launching Junit test

1 reply
Jeppe Nejsum Madsen
Joined: 2009-05-19,
User offline. Last seen 42 years 45 weeks ago.

Hi,

I get a NPE when trying to Launch a Junit test case (latest nightly).
It's not easily reproducible since the simple scenario works, but this
is within some of Lift's modules. The stack trace is below in case the
line numbers tell something:

java.lang.NullPointerException
at scala.tools.eclipse.contribution.weaving.jdt.core.DOMAspect.fixTypes(DOMAspect.aj:148)
at scala.tools.eclipse.contribution.weaving.jdt.core.DOMAspect.ajc$privMethod$scala_tools_eclipse_contribution_weaving_jdt_core_DOMAspect$scala_tools_eclipse_contribution_weaving_jdt_core_DOMAspect$fixTypes(DOMAspect.aj:1)
at scala.tools.eclipse.contribution.weaving.jdt.core.DOMAspect.fixTypes(DOMAspect.aj:153)
at scala.tools.eclipse.contribution.weaving.jdt.core.DOMAspect.ajc$privMethod$scala_tools_eclipse_contribution_weaving_jdt_core_DOMAspect$scala_tools_eclipse_contribution_weaving_jdt_core_DOMAspect$fixTypes(DOMAspect.aj:1)
at scala.tools.eclipse.contribution.weaving.jdt.core.DOMAspect.ajc$around$scala_tools_eclipse_contribution_weaving_jdt_core_DOMAspect$1$3b9eae81(DOMAspect.aj:120)
at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:823)
at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:677)
at org.eclipse.jdt.internal.junit.launcher.JUnit4TestFinder.internalIsTest(JUnit4TestFinder.java:232)
at org.eclipse.jdt.internal.junit.launcher.JUnit4TestFinder.findTestsInContainer(JUnit4TestFinder.java:116)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.evaluateTests(JUnitLaunchConfigurationDelegate.java:264)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.launch(JUnitLaunchConfigurationDelegate.java:129)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:866)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1069)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Let me know if I should create a ticket

/Jeppe

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: NPE when launching Junit test

On Sat, Mar 6, 2010 at 3:35 PM, Jeppe Nejsum Madsen wrote:
> I get a NPE when trying to Launch a Junit test case (latest nightly).
> It's not easily reproducible since the simple scenario works, but this
> is within some of Lift's modules.

If you can pin this down to a reproducible test case then that would
be very helpful.

Cheers,

Miles

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland