• Post Reply Bookmark Topic Watch Topic
  • New Topic

Building a Java package fails abruptly  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying to build a package on a Ubuntu 16.04 ppc64le VM. Its a 10GB VM and there is enough space left on the device.
While trying to build the package fails with the following error

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project test-package: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /home/test/workspace/test-package && /usr/lib/jvm/java-8-openjdk-ppc64el/jre/bin/java -Dfile.encoding=UTF-8 -Xmx2g -Xms2g '-XX:OnOutOfMemoryError=kill -9 %p' -XX:+HeapDumpOnOutOfMemoryError -jar /home/test/workspace/test-package/target/surefire/surefirebooter1269167336372003834.jar /home/test/workspace/test-package/target/surefire/surefire6984579542985249883tmp /home/test/workspace/test-package/target/surefire/surefire_07790479321737072622tmp
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project test-package: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
Command was /bin/sh -c cd /home/test/workspace/test-package && /usr/lib/jvm/java-8-openjdk-ppc64el/jre/bin/java -Dfile.encoding=UTF-8 -Xmx2g -Xms2g '-XX:OnOutOfMemoryError=kill -9 %p' -XX:+HeapDumpOnOutOfMemoryError -jar /home/test/workspace/test-package/target/surefire/surefirebooter1269167336372003834.jar /home/test/workspace/test-package/target/surefire/surefire6984579542985249883tmp /home/test/workspace/test-package/target/surefire/surefire_07790479321737072622tmp
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.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:185)
at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:181)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
Command was /bin/sh -c cd /home/test/workspace/test-package && /usr/lib/jvm/java-8-openjdk-ppc64el/jre/bin/java -Dfile.encoding=UTF-8 -Xmx2g -Xms2g '-XX:OnOutOfMemoryError=kill -9 %p' -XX:+HeapDumpOnOutOfMemoryError -jar /home/test/workspace/test-package/target/surefire/surefirebooter1269167336372003834.jar /home/test/workspace/test-package/target/surefire/surefire6984579542985249883tmp /home/test/workspace/test-package/target/surefire/surefire_07790479321737072622tmp
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 11 more
Caused by: java.lang.RuntimeException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
Command was /bin/sh -c cd /home/test/workspace/test-package && /usr/lib/jvm/java-8-openjdk-ppc64el/jre/bin/java -Dfile.encoding=UTF-8 -Xmx2g -Xms2g '-XX:OnOutOfMemoryError=kill -9 %p' -XX:+HeapDumpOnOutOfMemoryError -jar /home/test/workspace/test-package/target/surefire/surefirebooter1269167336372003834.jar /home/test/workspace/test-package/target/surefire/surefire6984579542985249883tmp /home/test/workspace/test-package/target/surefire/surefire_07790479321737072622tmp
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:590)
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:460)
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:229)
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:201)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1026)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:862)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:755)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
... 12 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException


Any pointer on this would be helpful
 
author & internet detective
Marshal
Posts: 37518
554
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRanch Archa!

I can think of a few things to try to narrow down the problem:

  • Try running with Maven debug flags (-X -e) to see if you get more info
  • Try to run surefire without forking to see if you have the same behavior
  • Did this work in the past? What test was added recently?
  • What test is it getting up to before failing?
  •  
    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!