[ http://jira.codehaus.org/browse/SUREFIRE-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_91810 ]
Jason Chaffee commented on SUREFIRE-316: ---------------------------------------- > > This works fine in maven-2.0.5. > > > > I have the following surefire configuration: > > > > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-surefire-plugin</artifactId> > > <configuration> > > <forkMode>once</forkMode> > > > > > <argLine>-javaagent:${project.build.directory}/test-lib/aspectjweaver. > ja > > r -Xmx256m</argLine> > > </configuration> > > </plugin> > > > > I get this error in 2.0.6 > > > > [INFO] [surefire:test] > > [INFO] > > > ---------------------------------------------------------------------- > -- > > [ERROR] FATAL ERROR > > [INFO] > > > ---------------------------------------------------------------------- > -- > > [INFO] null > > [INFO] > > > ---------------------------------------------------------------------- > -- > > [INFO] Trace > > java.lang.NullPointerException > > at > > org.apache.maven.artifact.DefaultArtifact.getSelectedVersion(Default > > A > > rtifact.java:582) > > at > > org.apache.maven.plugin.surefire.SurefirePlugin.constructSurefireBoo > > t > > er(SurefirePlugin.java:490) > > at > > org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlug > > i > > n.java:391) > > at > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlug > > i > > nManager.java:443) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Def > > a > > ultLifecycleExecutor.java:539) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithL > > i > > fecycle(DefaultLifecycleExecutor.java:480) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defa > > u > > ltLifecycleExecutor.java:459) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHa > > n > > dleFailures(DefaultLifecycleExecutor.java:311) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegme > > n > > ts(DefaultLifecycleExecutor.java:278) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultL > > i > > fecycleExecutor.java:143) > > at > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) > > at > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > > java:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce > > s > > sorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at > > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > > at > > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430 > > ) > > > > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > [M206] Test doesn't work anymore > -------------------------------- > > Key: SUREFIRE-316 > URL: http://jira.codehaus.org/browse/SUREFIRE-316 > Project: Maven Surefire > Issue Type: Bug > Environment: Windows XP > Reporter: Denis Cabasson > Attachments: 206-test.zip, diff.txt, pom.xml, test-exec-205.txt, > test-exec-206.txt > > > When running "mvn test" on the simple use cas attached, M205 is doing fine, > while M206 is crashing with a java.lang.IllegalArgumentException, apparently > due to a diffrence in the command line used to fork the JVM for surefire. > Attached are the 2 executions, with M205 and M206. I haven't managed to > figure out where this bug is coming from.... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira