Hi All, I observed the error below on all unit tests this morning. It seems to be due to a bug in the latest version of the OpenJDK compiler on Ubuntu 18.04. See: See the following Stack Overflow article: https://stackoverflow.com/questions/53010200/maven-surefire-could-not-find-forkedbooter-clas<https://stackoverflow.com/questions/53010200/maven-surefire-could-not-find-forkedbooter-class> and the first answer on the same article.
The workaround that worked for me was to downgrade the compiler version to openjdk-8-jdk=8u162-b12-1 As root: dpkg -l | grep openjdk Remove all openjdk packages apt remove --purge openjdk-8-jdk apt remove --purge openjdk-8-jdk-headless apt remove --purge openjdk-8-jre apt remove --purge openjdk-8-jre-headless Now install the previous version of OpenJDK apt install openjdk-8-jre-headless=8u162-b12-1 apt install openjdk-8-jre=8u162-b12-1 apt install openjdk-8-jdk-headless=8u162-b12-1 apt install openjdk-8-jdk=8u162-b12-1 Now your unit tests should run again. I have documented this workaround on the ONAP wiki at: https://wiki.onap.org/display/DW/Setting+Up+Your+Development+Environment Best Regards Liam *** Error observed on all unit tests*** [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project utils: There are test failures. [ERROR] [ERROR] Please refer to /home/liam/git/onap/policy/common/utils/target/surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream. [ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called? [ERROR] Command was /bin/sh -c cd /home/liam/git/onap/policy/common/utils && /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java '-javaagent:/home/liam/.m2/repository/org/jacoco/org.jacoco.agent/0.8.2/org.jacoco.agent-0.8.2-runtime.jar=destfile=/home/liam/git/onap/policy/common/utils/../target/code-coverage/jacoco-ut.exec,append=true,excludes=**/gen/**:**/generated-sources/**:**/yang-gen/**:**/pax/**' -jar /home/liam/git/onap/policy/common/utils/target/surefire/surefirebooter3948581814755151021.jar /home/liam/git/onap/policy/common/utils/target/surefire 2018-11-02T12-39-29_391-jvmRun1 surefire7963317009559583974tmp surefire_0556590663038848456tmp [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/liam/git/onap/policy/common/utils && /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java '-javaagent:/home/liam/.m2/repository/org/jacoco/org.jacoco.agent/0.8.2/org.jacoco.agent-0.8.2-runtime.jar=destfile=/home/liam/git/onap/policy/common/utils/../target/code-coverage/jacoco-ut.exec,append=true,excludes=**/gen/**:**/generated-sources/**:**/yang-gen/**:**/pax/**' -jar /home/liam/git/onap/policy/common/utils/target/surefire/surefirebooter3948581814755151021.jar /home/liam/git/onap/policy/common/utils/target/surefire 2018-11-02T12-39-29_391-jvmRun1 surefire7963317009559583974tmp surefire_0556590663038848456tmp [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:671) [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:533) [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:278) [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:244) [ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1194) [ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1022) [ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:868) [ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) [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:51) [ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) [ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309) [ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194) [ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107) [ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:955) [ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:290) [ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:194) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [ERROR] at java.lang.reflect.Method.invoke(Method.java:498) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) [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 in file target/surefire-reports/*.dumpstream *** # Created at 2018-11-02T12:38:09.522 Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13470): https://lists.onap.org/g/onap-discuss/message/13470 Mute This Topic: https://lists.onap.org/mt/27827617/21656 Group Owner: onap-discuss+ow...@lists.onap.org Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-