Fails all the time :-( from that point on using 'mvn clean install -V -rf log4j-cassandra', digging...
On Tue, Dec 14, 2021 at 11:00 AM Gary Gregory <[email protected]> wrote: > My local build got further but failed dramatically: > > [INFO] Apache Log4j Cassandra ............................. FAILURE [ > 4.748 s] > ... > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 16:32 min > [INFO] Finished at: 2021-12-14T10:51:28-05:00 > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-failsafe-plugin:2.22.2:verify (default) on > project log4j-cassandra: There are test failures. > [ERROR] > [ERROR] Please refer to > /Users/garydgregory/git/logging-log4j-2.12/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-log4j-2.12/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-log4j-2.12/log4j-cassandra/target/surefire/surefirebooter96790289588861473.jar > /Users/garydgregory/git/logging-log4j-2.12/log4j-cassandra/target/surefire > 2021-12-14T10-35-49_975-jvmRun1 surefire8996434553780933957tmp > surefire_91212199057030638099tmp > [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:510) > [ERROR] at > org.apache.maven.plugin.surefire.booterclient.ForkStarter.runSuitesForkPerTestSet(ForkStarter.java:457) > [ERROR] at > org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:298) > [ERROR] at > org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:246) > [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: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-log4j-2.12/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-log4j-2.12/log4j-cassandra/target/surefire/surefirebooter96790289588861473.jar > /Users/garydgregory/git/logging-log4j-2.12/log4j-cassandra/target/surefire > 2021-12-14T10-35-49_975-jvmRun1 surefire8996434553780933957tmp > surefire_91212199057030638099tmp > [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:669) > [ERROR] at > org.apache.maven.plugin.surefire.booterclient.ForkStarter.access$600(ForkStarter.java:115) > [ERROR] at > org.apache.maven.plugin.surefire.booterclient.ForkStarter$2.call(ForkStarter.java:444) > [ERROR] at > org.apache.maven.plugin.surefire.booterclient.ForkStarter$2.call(ForkStarter.java:420) > [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) > > Gary > > On Tue, Dec 14, 2021 at 10:46 AM Gary Gregory <[email protected]> > wrote: > >> On Tue, Dec 14, 2021 at 10:42 AM Ralph Goers <[email protected]> >> wrote: >> >>> Great. But I still need to back port the security fix. >>> >> >> Sure, I just want it to build here as a sanity check (my sanity that is), >> I know yours is good :-) >> >> Gary >> >> >>> >>> Ralph >>> >>> > On Dec 14, 2021, at 8:36 AM, Gary Gregory <[email protected]> >>> wrote: >>> > >>> > This problem was a red herring for me, my ${java:runtime} string was >>> > wrapping due to length and the test did not account for that. I >>> updated the >>> > branch and I am building locally to see if I can go through a whole >>> build... >>> > >>> > Gary >>> > >>> > On Tue, Dec 14, 2021 at 6:06 AM Gary Gregory <[email protected]> >>> wrote: >>> > >>> >> After checking out the tag (git status says 'HEAD detached at >>> >> log4j-2.12.2-rc1') and running 'mvn clean install' with Java 8 and >>> Maven >>> >> 3.8.4, I get: >>> >> [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: >>> >> 0.351 s - in org.apache.logging.log4j.MarkerMixInJsonTest >>> >> [INFO] >>> >> [INFO] Results: >>> >> [INFO] >>> >> [ERROR] Failures: >>> >> [ERROR] YamlLayoutTest.testAdditionalFields:318 --- >>> >> thread: "MyThreadName" >>> >> level: "DEBUG" >>> >> loggerName: "a.B" >>> >> marker: >>> >> name: "Marker1" >>> >> parents: >>> >> - name: "ParentMarker1" >>> >> parents: >>> >> - name: "GrandMotherMarker" >>> >> - name: "GrandFatherMarker" >>> >> - name: "ParentMarker2" >>> >> message: "Msg" >>> >> thrown: >>> >> commonElementCount: 0 >>> >> localizedMessage: "testIOEx" >>> >> message: "testIOEx" >>> >> name: "java.io.IOException" >>> >> cause: >>> >> commonElementCount: 38 >>> >> localizedMessage: "testNPEx" >>> >> message: "testNPEx" >>> >> name: "java.lang.NullPointerException" >>> >> suppressed: >>> >> - commonElementCount: 0 >>> >> localizedMessage: "I am suppressed exception 1" >>> >> message: "I am suppressed exception 1" >>> >> name: "java.lang.IndexOutOfBoundsException" >>> >> - commonElementCount: 0 >>> >> localizedMessage: "I am suppressed exception 2" >>> >> message: "I am suppressed exception 2" >>> >> name: "java.lang.IndexOutOfBoundsException" >>> >> contextStack: >>> >> - "stack_msg1" >>> >> - "stack_msg2" >>> >> endOfBatch: false >>> >> loggerFqcn: "f.q.c.n" >>> >> instant: >>> >> epochSecond: 0 >>> >> nanoOfSecond: 1000000 >>> >> threadId: 1 >>> >> threadPriority: 5 >>> >> KEY1: "VALUE1" >>> >> KEY2: "OpenJDK Runtime Environment (build >>> >> 1.8.0_312-bre_2021_10_20_23_15-b00) from\ >>> >> \ Homebrew" >>> >> >>> >> [INFO] >>> >> [ERROR] Tests run: 2063, Failures: 1, Errors: 0, Skipped: 21 >>> >> >>> >> 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.0.1", arch: "x86_64", family: "mac" >>> >> >>> >> I can reproduce this from Eclipse by running the one test class. >>> >> >>> >> The test uses a Java lookup here: >>> >> >>> https://github.com/apache/logging-log4j2/blob/ad361d2e517e765f69db464d9407ac2dd80bc93e/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/YamlLayoutTest.java#L312 >>> >> >>> >> And expects it to be present here: >>> >> >>> https://github.com/apache/logging-log4j2/blob/ad361d2e517e765f69db464d9407ac2dd80bc93e/log4j-core/src/test/java/org/apache/logging/log4j/core/layout/YamlLayoutTest.java#L318 >>> >> >>> >> (1) Should this test pass or fail? I thought we disabled lookups >>> _except_ >>> >> in configuration files. >>> >> (2) If the test should pass, is _my_ failure due to some line length >>> or >>> >> line wrapping issue? >>> >> >>> >> TY and congrats to all of us for spending so much time on this, >>> >> Gary >>> >> >>> >> >>> >> On Tue, Dec 14, 2021 at 12:58 AM Ralph Goers < >>> [email protected]> >>> >> wrote: >>> >> >>> >>> This is a vote to release Log4j 2.12.2, a security release for Java 7 >>> >>> users. >>> >>> >>> >>> Please download, test, and cast your votes on the log4j developers >>> list. >>> >>> [] +1, release the artifacts >>> >>> [] -1, don't release because... >>> >>> >>> >>> The vote will remain open for as short amount as time as required to >>> vet >>> >>> the release. All votes are welcome and we encourage everyone to test >>> the >>> >>> release, but only Logging PMC votes are “officially” counted. As >>> always, at >>> >>> least 3 +1 votes and more positive than negative votes are required. >>> >>> >>> >>> Changes in this version include: >>> >>> >>> >>> Fixed Bugs >>> >>> >>> >>> • LOG4J-3220: Disable JNDI by default, remove JNDI Lookup, >>> remove >>> >>> message lookups. When enabled JNDI only supports the java protocol. >>> >>> >>> >>> Tag: >>> >>> a) for a new copy do "git clone >>> >>> https://github.com/apache/logging-log4j2.git" and then "git checkout >>> >>> tags/log4j-2.12.2-rc1” or just "git clone -b log4j-2.12.2-rc1 >>> >>> https://github.com/apache/logging-log4j2.git" >>> >>> b) for an existing working copy to “git pull” and then “git checkout >>> >>> tags/log4j-2.12.2-rc1” >>> >>> >>> >>> Web Site: No web site was generated for this release. The 2.16.0 web >>> >>> site will be updated appropriately. >>> >>> >>> >>> Maven Artifacts: >>> >>> >>> https://repository.apache.org/content/repositories/orgapachelogging-1070 >>> >>> >>> >>> Distribution archives: >>> >>> https://dist.apache.org/repos/dist/dev/logging/log4j/ >>> >>> >>> >>> You may download all the Maven artifacts by executing: >>> >>> wget -e robots=off --cut-dirs=7 -nH -r -p -np --no-check-certificate >>> >>> >>> https://repository.apache.org/content/repositories/orgapachelogging-1070/org/apache/logging/log4j/ >>> >> >>> >> >>> >>>
