[ 
http://jira.codehaus.org/browse/SUREFIRE-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_98247
 ] 

Gamnacke commented on SUREFIRE-316:
-----------------------------------

I can confirm this too. I use Maven 2.0.6 and tried both maven-surefire-plugin 
2.3 as well as 2.4-SNAPSHOT. None of them work for me. 
I get the following exception:

[INFO] [surefire:test]
[INFO] Surefire report directory: 
C:\workspaces\wcar-om\wcar-om-ejb\target\surefire-reports
[INFO] Building jar: C:\DOCUME~1\jon\LOCALS~1\Temp\surefirebooter16105.jar
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.IllegalArgumentException
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:69)
        at java.lang.ProcessImpl.start(ProcessImpl.java:30)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
        at java.lang.Runtime.exec(Runtime.java:593)
        at 
org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:653)
        at 
org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:102)
        at 
org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:89)
        at 
org.apache.maven.surefire.booter.SurefireBooter.fork(SurefireBooter.java:576)
        at 
org.apache.maven.surefire.booter.SurefireBooter.forkSuites(SurefireBooter.java:413)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesForkOnce(SurefireBooter.java:313)
        at 
org.apache.maven.surefire.booter.SurefireBooter.run(SurefireBooter.java:203)
        at 
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:397)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Mon Jun 04 09:06:44 CEST 2007
[INFO] Final Memory: 5M/9M
[INFO] ------------------------------------------------------------------------


> [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
>            Assignee: Brett Porter
>             Fix For: 2.3.1
>
>         Attachments: 206-test.zip, diff.txt, pom.xml, test-exec-205.txt, 
> test-exec-206.txt, test.tgz
>
>
> 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

        

Reply via email to