[
https://issues.apache.org/jira/browse/SUREFIRE-1368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15986200#comment-15986200
]
Tibor Digana commented on SUREFIRE-1368:
----------------------------------------
{{What is ofcourse interesting, why v. 2.19.1 appears to be v. 2.15 in build.}}
This cannot happen. You have wrong configuration. Isolate the problem in
trivial POM and project and attach it to Jira.
Try version {{2.20}}.
> Not very informative fatal exit from testing - missing quotation in generated
> execution command
> -----------------------------------------------------------------------------------------------
>
> Key: SUREFIRE-1368
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1368
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Plugin
> Affects Versions: 2.15, 2.19.1
> Environment: Windows 10
> Reporter: Seweryn Habdank-Wojewodzki
>
> Dears,
> I am starting build mvn -X -e clean install which includes test written using
> TestNG framework v. 6.8.8.
> There comes following information:
> [INFO] --- maven-surefire-plugin:2.15:test (default-test) @
> logviewerservice-test ---
> [INFO] Surefire report directory:
> C:\StorageSpace\Projects\clj_project\logviewerservice-master\logviewerservice-test\target\surefire-reports
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Das System kann den angegebenen Pfad nicht finden.
> Results :
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> ...
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.15:test (default-test) on
> project logviewerservice-test: Execution default-test of goal
> org.apache.maven.plugins:maven-surefire-plugin:2.15:test failed: The forked
> VM terminated without saying properly goodbye. VM crash or System.exit called
> ?
> The "Das System kann den angegebenen Pfad nicht finden." means, that given
> system path cannot be found.
> 1. Why mvn uses console language and not English?
> 2. Error message does not state which path cannot be found, so it makes
> impossible to solve the problem, as testing uses many different paths.
> 3. Everything happend before even target/surefire-reports directory is
> created.
> Can you help with that issue?
> The configuration is simple:
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <version>2.19.1</version>
> </plugin>
> What is ofcourse interesting, why v. 2.19.1 appears to be v. 2.15 in build.
> Errors and exceptions are below:
> [DEBUG] boot(compact) classpath: surefire-booter-2.15.jar
> surefire-api-2.15.jar test-classes classes
> ... (bunch of jars)
> surefire-testng-utils-2.15.jar surefire-grouper-2.15.jar
> surefire-testng-2.15.jar common-java5-2.15.jar
> Forking command line: cmd.exe /X /C "${jdk180.path}\bin\java
> "-Djava.library.path=C:/Program Files (x86)/Foo/DLL" -jar
> C:\StorageSpace\Projects\my-project\target\surefire\surefirebooter3832366471835279317.jar
>
> C:\StorageSpace\Projects\my-project\target\surefire\surefire9145576077183878807tmp
>
> C:\StorageSpace\Projects\my-project\target\surefire\surefire_0107990010860156596tmp"
> Das System kann den angegebenen Pfad nicht finden.
> [ERROR] Command wascmd.exe /X /C "${jdk180.path}\bin\java
> "-Djava.library.path=C:/Program Files (x86)/Foo/DLL" -jar
> C:\StorageSpace\Projects\my-project\target\surefire\surefirebooter3832366471835279317.jar
>
> C:\StorageSpace\Projects\my-project\target\surefire\surefire9145576077183878807tmp
>
> C:\StorageSpace\Projects\my-project\target\surefire\surefire_0107990010860156596tmp"
> [ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test (default-test)
> on project myservice-test: Execution default-test of goal
> org.apache.maven.plugins:maven-surefire-plugin:2.15:test failed: The forked
> VM terminated without saying properly goodbye. VM crash or System.exit called
> ?
> Command wascmd.exe /X /C "${jdk180.path}\bin\java
> "-Djava.library.path=C:/Program Files (x86)/Foo/DLL" -jar
> C:\StorageSpace\Projects\my-project\target\surefire\surefirebooter3832366471835279317.jar
>
> C:\StorageSpace\Projects\my-project\target\surefire\surefire9145576077183878807tmp
>
> C:\StorageSpace\Projects\my-project\target\surefire\surefire_0107990010860156596tmp"
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
> default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test
> failed: The forked VM terminated without saying properly goodbye. VM crash or
> System.exit called ?
> Command wascmd.exe /X /C "${jdk180.path}\bin\java
> "-Djava.library.path=C:/Program Files (x86)/Foo/DLL" -jar
> C:\StorageSpace\Projects\my-project\target\surefire\surefirebooter3832366471835279317.jar
>
> C:\StorageSpace\Projects\my-project\target\surefire\surefire9145576077183878807tmp
>
> C:\StorageSpace\Projects\my-project\target\surefire\surefire_0107990010860156596tmp"
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
> ... 20 more
> Caused by: java.lang.RuntimeException: The forked VM terminated without
> saying properly goodbye. VM crash or System.exit called ?
> Command wascmd.exe /X /C "${jdk180.path}\bin\java
> "-Djava.library.path=C:/Program Files (x86)/Foo/DLL" -jar
> C:\StorageSpace\Projects\my-project\target\surefire\surefirebooter3832366471835279317.jar
>
> C:\StorageSpace\Projects\my-project\target\surefire\surefire9145576077183878807tmp
>
> C:\StorageSpace\Projects\my-project\target\surefire\surefire_0107990010860156596tmp"
> at
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:485)
> at
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:352)
> at
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:158)
> at
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:883)
> at
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:747)
> at
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:645)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
> ... 21 more
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)