NullPointerException whenever I try to run coverage

LBryan avatarLBryan created an issue

Instead of running the test, I always get an error message like this: An internal error occurred during: "Launching NameofTest (1)".

Stack trace: java.lang.NullPointerException at scala.collection.mutable.ArrayOps$ofRef.length(ArrayOps.scala:99) at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33) at scala.collection.mutable.ArrayOps.foreach(ArrayOps.scala:34) at ecobertura.core.state.PluginState.ecobertura$core$state$PluginState$$copyRecursively(PluginState.scala:60) at ecobertura.core.state.PluginState.copyClassesFrom(PluginState.scala:53) at ecobertura.core.launching.LaunchInstrumenter$$anonfun$instrumentClasspath$1.apply(LaunchInstrumenter.scala:87) at ecobertura.core.launching.LaunchInstrumenter$$anonfun$instrumentClasspath$1.apply(LaunchInstrumenter.scala:62) at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:34) at scala.collection.mutable.ArrayOps.foreach(ArrayOps.scala:34) at ecobertura.core.launching.LaunchInstrumenter.instrumentClasspath(LaunchInstrumenter.scala:62) at ecobertura.core.launching.LaunchInstrumenter.<init>(LaunchInstrumenter.scala:49) at ecobertura.core.launching.LaunchInstrumenter$.instrumentClassesFor(LaunchInstrumenter.scala:40) at ecobertura.core.launching.JavaApplicationLaunchDelegate.launch(JavaApplicationLaunchDelegate.scala:41) 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)

Session data: eclipse.buildId=M20100211-1343 java.version=1.6.0_26 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US Command-line arguments: -os linux -ws gtk -arch x86

Comments (3)

  1. moldowan

    Similar problem here, but went away after a couple of attempts (with different Tests):

    java.lang.NullPointerException
    	at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.launch(JUnitLaunchConfigurationDelegate.java:174)
    	at org.eclipse.visualvm.launcher.java.VisualVMJUnitDelegate.launch(VisualVMJUnitDelegate.java:20)
    	at ecobertura.core.launching.JavaApplicationLaunchDelegate.launch(JavaApplicationLaunchDelegate.scala:45)
    	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
    	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
    	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:928)
    	at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132)
    	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    

    Session data:

    eclipse.buildId=M20110909-1335
    java.version=1.6.0_29
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
    Framework arguments:  -showlocation -product org.eclipse.epp.package.jee.product
    
  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.