Bug#911742: libsurefire-java: Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter

Andrius Merkys andrius.merkys at gmail.com
Wed Oct 24 07:52:44 BST 2018


Package: libsurefire-java
Control: found -1 2.22.1-1

Hello,

I have tried building mojo-executor [1], which successfully built
before, with libsurefire-java 2.22.1-1. Got the following failures:

[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 10.800 s
[INFO] Finished at: 2018-10-24T02:42:28-04:00
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test
(default-test) on project mojo-executor: There are test failures.
[ERROR]
[ERROR] Please refer to
/home/andrius/debian-packages/mojo-executor/mojo-executor/target/surefire-reports
for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump,
[date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] The forked VM terminated without properly saying goodbye. VM
crash or System.exit called?
[ERROR] Command was /bin/sh -c cd
/home/andrius/debian-packages/mojo-executor/mojo-executor &&
/usr/lib/jvm/java-10-openjdk-amd64/bin/java -jar
/home/andrius/debian-packages/mojo-executor/mojo-executor/target/surefire/surefirebooter271627416378636707.jar
/home/andrius/debian-packages/mojo-executor/mojo-executor/target/surefire
2018-10-24T02-42-18_708-jvmRun1 surefire17178959840026075021tmp
surefire_010595967276110499786tmp
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException:
The forked VM terminated without properly saying goodbye. VM crash or
System.exit called?
[ERROR] Command was /bin/sh -c cd
/home/andrius/debian-packages/mojo-executor/mojo-executor &&
/usr/lib/jvm/java-10-openjdk-amd64/bin/java -jar
/home/andrius/debian-packages/mojo-executor/mojo-executor/target/surefire/surefirebooter271627416378636707.jar
/home/andrius/debian-packages/mojo-executor/mojo-executor/target/surefire
2018-10-24T02-42-18_708-jvmRun1 surefire17178959840026075021tmp
surefire_010595967276110499786tmp
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR]     at
org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:669)
[ERROR]     at
org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:282)
[ERROR]     at
org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245)
[ERROR]     at
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1183)
[ERROR]     at
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1011)
[ERROR]     at
org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:857)
[ERROR]     at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
[ERROR]     at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
[ERROR]     at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
[ERROR]     at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
[ERROR]     at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
[ERROR]     at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
[ERROR]     at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
[ERROR]     at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[ERROR]     at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
[ERROR]     at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
[ERROR]     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
[ERROR]     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:954)
[ERROR]     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
[ERROR]     at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
[ERROR]     at org.apache.maven.cli.MavenCli.main(MavenCli.java:181)
[ERROR]     at org.debian.maven.Wrapper.main(Wrapper.java:89)
[ERROR]     at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[ERROR]     at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR]     at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR]     at java.base/java.lang.reflect.Method.invoke(Method.java:564)
[ERROR]     at
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
[ERROR]     at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
[ERROR]     at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
[ERROR]     at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :mojo-executor

Further inspection:

andrius at amalas:~/debian-packages/mojo-executor$ ls
/home/andrius/debian-packages/mojo-executor/mojo-executor/target/surefire-reports
2018-10-24T02-42-18_708.dumpstream
andrius at amalas:~/debian-packages/mojo-executor$ cat
/home/andrius/debian-packages/mojo-executor/mojo-executor/target/surefire-reports/2018-10-24T02-42-18_708.dumpstream

# Created at 2018-10-24T02:42:19.031
Error: Could not find or load main class
org.apache.maven.surefire.booter.ForkedBooter

# Created at 2018-10-24T02:42:19.031
Caused by: java.lang.ClassNotFoundException:
org.apache.maven.surefire.booter.ForkedBooter

Do you have any idea what has happened here?

Best wishes,
Andrius

[1] https://salsa.debian.org/merkys-guest/mojo-executor-parent



More information about the pkg-java-maintainers mailing list