I don't think that JMX port log message is the actual error. That's just logged on startup in Cassandra as the system properties and such its startup script normally defines are not all copied into the test code.
On Mon, Feb 7, 2022 at 12:12 PM Ralph Goers <[email protected]> wrote: > > Log4j-cassandra is failing for me in master with > > 11:02:29.054 [Log4j2-TF-1-CassandraFixture-1] ERROR > org.apache.cassandra.service.StartupChecks - cassandra.jmx.local.port missing > from cassandra-env.sh, unable to start local JMX service. > > Ralph > > > On Feb 7, 2022, at 5:57 AM, Gary Gregory <[email protected]> wrote: > > > > Just FRT, when I build with 'mvn clean install' on git release-2.x with: > > > > Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537) > > Maven home: /usr/local/Cellar/maven/3.8.4/libexec > > Java version: 1.8.0_312, vendor: Homebrew, runtime: > > /usr/local/Cellar/openjdk@8/1.8.0+312/libexec/openjdk.jdk/Contents/Home/jre > > Default locale: en_US, platform encoding: UTF-8 > > OS name: "mac os x", version: "12.2", arch: "x86_64", family: "mac" > > > > Darwin *** 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan 5 21:37:58 PST > > 2022; root:xnu-8019.80.24~20/RELEASE_X86_64 x86_64 > > > > I get: > > > > [INFO] ------------------------------------------------------- > > [INFO] T E S T S > > [INFO] ------------------------------------------------------- > > [INFO] Running org.apache.logging.log4j.cassandra.CassandraAppenderIT > > [ERROR] /bin/sh: line 1: 1296 Abort trap: 6 > > /usr/local/Cellar/openjdk@8/1.8.0+312/libexec/openjdk.jdk/Contents/Home/jre/bin/java > > -Xms256m -Xmx1024m -jar > > /Users/garydgregory/git/logging-log4j2/log4j-cassandra/target/surefire/surefirebooter7496466137422361378.jar > > /Users/garydgregory/git/logging-log4j2/log4j-cassandra/target/surefire > > 2022-02-07T07-35-40_053-jvmRun1 surefire7820018482570834638tmp > > surefire_98294072526955947506tmp > > [INFO] > > [INFO] Results: > > [INFO] > > [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 > > [INFO] > > [WARNING] Corrupted STDOUT by directly writing to native stream in forked > > JVM 1. See FAQ web page and the dump file > > /Users/garydgregory/git/logging-log4j2/log4j-cassandra/target/failsafe-reports/2022-02-07T07-35-40_053-jvmRun1.dumpstream > > [INFO] > > [INFO] --- maven-failsafe-plugin:3.0.0-M5:verify (default) @ > > log4j-cassandra --- > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Reactor Summary for Apache Log4j 2 2.17.2-SNAPSHOT: > > [INFO] > > [INFO] Apache Log4j 2 ..................................... SUCCESS [ > > 7.217 s] > > [INFO] Apache Log4j API Java 9 support .................... SUCCESS [ > > 5.412 s] > > [INFO] Apache Log4j API ................................... SUCCESS [ > > 32.952 s] > > [INFO] Apache Log4j Implementation Java 9 support ......... SUCCESS [ > > 2.965 s] > > [INFO] Apache Log4j Core .................................. SUCCESS [12:18 > > min] > > [INFO] Apache Log4j 1.x Compatibility API ................. SUCCESS [01:00 > > min] > > [INFO] Apache Log4j Layout for JSON template .............. SUCCESS [ > > 56.060 s] > > [INFO] Apache Log4j Core Integration Tests ................ SUCCESS [ > > 37.904 s] > > [INFO] Apache Log4j to SLF4J Adapter ...................... SUCCESS [ > > 5.745 s] > > [INFO] Apache Log4j SLF4J Binding ......................... SUCCESS [ > > 13.693 s] > > [INFO] Apache Log4j SLF4J 1.8+ Binding .................... SUCCESS [ > > 17.494 s] > > [INFO] Apache Log4j to JUL Bridge ......................... SUCCESS [ > > 3.673 s] > > [INFO] Apache Log4j Commons Logging Bridge ................ SUCCESS [ > > 5.171 s] > > [INFO] Apache Log4j Flume Bridge .......................... SUCCESS [ > > 23.903 s] > > [INFO] Apache Log4j Web ................................... SUCCESS [ > > 11.979 s] > > [INFO] Apache Log4j Tag Library ........................... SUCCESS [ > > 12.139 s] > > [INFO] Apache Log4j JMX GUI ............................... SUCCESS [ > > 2.105 s] > > [INFO] Apache Log4j Samples ............................... SUCCESS [ > > 0.074 s] > > [INFO] Apache Log4j Samples: Flume - Common ............... SUCCESS [ > > 1.141 s] > > [INFO] Apache Log4j Samples: Flume - Remote ............... SUCCESS [ > > 1.275 s] > > [INFO] Apache Log4j Samples: Flume - Embedded ............. SUCCESS [ > > 2.363 s] > > [INFO] Apache Log4j Samples: Configuration ................ SUCCESS [ > > 2.817 s] > > [INFO] Apache Log4j Samples: LoggerProperties ............. SUCCESS [ > > 3.885 s] > > [INFO] Apache Log4j BOM ................................... SUCCESS [ > > 0.882 s] > > [INFO] Apache Log4j JDBC DBCP 2 ........................... SUCCESS [ > > 6.813 s] > > [INFO] Apache Log4j JPA ................................... SUCCESS [ > > 18.624 s] > > [INFO] Apache Log4j CouchDB ............................... SUCCESS [ > > 2.074 s] > > [INFO] Apache Log4j MongoDB 3 ............................. SUCCESS [ > > 26.837 s] > > [INFO] Apache Log4j MongoDB 4 ............................. SUCCESS [ > > 21.953 s] > > [INFO] Apache Log4j Cassandra ............................. FAILURE [ > > 7.238 s] > > [INFO] Apache Log4j Jakarta Web ........................... SKIPPED > > [INFO] Apache Log4J Performance Tests ..................... SKIPPED > > [INFO] Apache Log4j Streaming Interface ................... SKIPPED > > [INFO] Apache Log4j JUL Adapter ........................... SKIPPED > > [INFO] Apache Log4j JDK Platform Logging Adapter .......... SKIPPED > > [INFO] Apache Log4j Liquibase Binding ..................... SKIPPED > > [INFO] Apache Log4j App Server Support .................... SKIPPED > > [INFO] Apache Log4j OSGi .................................. SKIPPED > > [INFO] Apache Log4j Docker Library ........................ SKIPPED > > [INFO] Apache Log4j Kubernetes Library .................... SKIPPED > > [INFO] Apache Log4j Spring Boot Support ................... SKIPPED > > [INFO] Apache Log4j Spring Cloud Config Support ........... SKIPPED > > [INFO] Apache Log4j Spring Cloud Config Client Support .... SKIPPED > > [INFO] Apache Log4j Sample Configuration Service .......... SKIPPED > > [INFO] Apache Log4j Spring Cloud Config Samples ........... SKIPPED > > [INFO] Apache Log4j Spring Cloud Config Sample Application SKIPPED > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] BUILD FAILURE > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Total time: 18:55 min > > [INFO] Finished at: 2022-02-07T07:53:55-05:00 > > [INFO] > > ------------------------------------------------------------------------ > > [ERROR] Failed to execute goal > > org.apache.maven.plugins:maven-failsafe-plugin:3.0.0-M5:verify (default) on > > project log4j-cassandra: There are test failures. > > [ERROR] > > [ERROR] Please refer to > > /Users/garydgregory/git/logging-log4j2/log4j-cassandra/target/failsafe-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] org.apache.maven.surefire.booter.SurefireBooterForkException: > > ExecutionException The forked VM terminated without properly saying > > goodbye. VM crash or System.exit called? > > [ERROR] Command was /bin/sh -c cd > > /Users/garydgregory/git/logging-log4j2/log4j-cassandra && > > /usr/local/Cellar/openjdk@8/1.8.0+312/libexec/openjdk.jdk/Contents/Home/jre/bin/java > > -Xms256m -Xmx1024m -jar > > /Users/garydgregory/git/logging-log4j2/log4j-cassandra/target/surefire/surefirebooter7496466137422361378.jar > > /Users/garydgregory/git/logging-log4j2/log4j-cassandra/target/surefire > > 2022-02-07T07-35-40_053-jvmRun1 surefire7820018482570834638tmp > > surefire_98294072526955947506tmp > > [ERROR] Error occurred in starting fork, check output in log > > [ERROR] Process Exit Code: 134 > > [ERROR] at > > org.apache.maven.plugin.surefire.booterclient.ForkStarter.awaitResultsDone(ForkStarter.java:532) > > [ERROR] at > > org.apache.maven.plugin.surefire.booterclient.ForkStarter.runSuitesForkPerTestSet(ForkStarter.java:479) > > [ERROR] at > > org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:322) > > [ERROR] at > > org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:266) > > [ERROR] at > > org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1314) > > [ERROR] at > > org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1159) > > [ERROR] at > > org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:932) > > [ERROR] at > > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137) > > [ERROR] at > > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210) > > [ERROR] at > > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156) > > [ERROR] at > > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) > > [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:972) > > [ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:293) > > [ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:196) > > [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:282) > > [ERROR] at > > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225) > > [ERROR] at > > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406) > > [ERROR] at > > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347) > > [ERROR] Caused by: > > 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 > > /Users/garydgregory/git/logging-log4j2/log4j-cassandra && > > /usr/local/Cellar/openjdk@8/1.8.0+312/libexec/openjdk.jdk/Contents/Home/jre/bin/java > > -Xms256m -Xmx1024m -jar > > /Users/garydgregory/git/logging-log4j2/log4j-cassandra/target/surefire/surefirebooter7496466137422361378.jar > > /Users/garydgregory/git/logging-log4j2/log4j-cassandra/target/surefire > > 2022-02-07T07-35-40_053-jvmRun1 surefire7820018482570834638tmp > > surefire_98294072526955947506tmp > > [ERROR] Error occurred in starting fork, check output in log > > [ERROR] Process Exit Code: 134 > > [ERROR] at > > org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:748) > > [ERROR] at > > org.apache.maven.plugin.surefire.booterclient.ForkStarter.access$700(ForkStarter.java:121) > > [ERROR] at > > org.apache.maven.plugin.surefire.booterclient.ForkStarter$2.call(ForkStarter.java:465) > > [ERROR] at > > org.apache.maven.plugin.surefire.booterclient.ForkStarter$2.call(ForkStarter.java:442) > > [ERROR] at java.util.concurrent.FutureTask.run(FutureTask.java:266) > > [ERROR] at > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > > [ERROR] at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > > [ERROR] at java.lang.Thread.run(Thread.java:748) > > [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 <args> -rf :log4j-cassandra >
