iManageDave commented on issue #1895:
URL: 
https://github.com/apache/logging-log4j2/issues/1895#issuecomment-1777292478

   I am able to compile with `log4j-layout-template-json:2.22.0-SNAPSHOT`, 
`log4j-api:2.21.1`, and `log4j-core:2.21.1`; however, the Surefire plugin 
crashes running unit tests (see below). I will take some time to debug today.
   ```
   [INFO] --- surefire:3.1.2:test (default-test) @ log4j-datamessage-plugin ---
   [INFO] Using auto detected provider 
org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
   [INFO]
   [INFO] -------------------------------------------------------
   [INFO]  T E S T S
   [INFO] -------------------------------------------------------
   [ERROR] Error occurred during initialization of boot layer
   [ERROR] java.lang.module.FindException: Module org.jctools.core not found, 
required by org.apache.logging.log4j.layout.template.json
   [INFO]
   [INFO] Results:
   [INFO]
   [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
   [INFO]
   [WARNING] Corrupted channel by directly writing to native stream in forked 
JVM 1. See FAQ web page and the dump file 
/home/dave/src/log4j-datamessage-plugin/target/surefire-reports/2023-10-24T09-02-09_518-jvmRun1.dumpstream
   [INFO] 
------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] 
------------------------------------------------------------------------
   [INFO] Total time:  3.617 s
   [INFO] Finished at: 2023-10-24T09:02:09-05:00
   [INFO] 
------------------------------------------------------------------------
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:3.1.2:test (default-test) on 
project log4j-datamessage-plugin:
   [ERROR]
   [ERROR] Please refer to 
/home/dave/src/log4j-datamessage-plugin/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/dave/src/log4j-datamessage-plugin' 
&& '/usr/lib/jvm/java-17-openjdk-amd64/bin/java' 
'-javaagent:/home/dave/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=de
   stfile=/home/dave/src/log4j-datamessage-plugin/target/jacoco.exec' 
'@/home/dave/src/log4j-datamessage-plugin/target/surefire/surefireargs-20231024090209688_3'
 '/home/dave/src/log4j-datamessage-plugin/target/surefire' '2023-10-24T09-02-0
   9_518-jvmRun1' 'surefire-20231024090209688_1tmp' 
'surefire_0-20231024090209688_2tmp'
   [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/dave/src/log4j-datamessage-plugin' 
&& '/usr/lib/jvm/java-17-openjdk-amd64/bin/java' 
'-javaagent:/home/dave/.m2/repository/org/jacoco/org.jacoco.agent/0.8.11/org.jacoco.agent-0.8.11-runtime.jar=de
   stfile=/home/dave/src/log4j-datamessage-plugin/target/jacoco.exec' 
'@/home/dave/src/log4j-datamessage-plugin/target/surefire/surefireargs-20231024090209688_3'
 '/home/dave/src/log4j-datamessage-plugin/target/surefire' '2023-10-24T09-02-0
   9_518-jvmRun1' 'surefire-20231024090209688_1tmp' 
'surefire_0-20231024090209688_2tmp'
   [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:643)
   [ERROR]         at 
org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:285)
   [ERROR]         at 
org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:250)
   [ERROR]         at 
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1203)
   [ERROR]         at 
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1055)
   [ERROR]         at 
org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:871)
   [ERROR]         at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:126)
   [ERROR]         at 
org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:328)
   [ERROR]         at 
org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:316)
   [ERROR]         at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
   [ERROR]         at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:174)
   [ERROR]         at 
org.apache.maven.lifecycle.internal.MojoExecutor.access$000(MojoExecutor.java:75)
   [ERROR]         at 
org.apache.maven.lifecycle.internal.MojoExecutor$1.run(MojoExecutor.java:162)
   [ERROR]         at 
org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute(DefaultMojosExecutionStrategy.java:39)
   [ERROR]         at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:159)
   [ERROR]         at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:105)
   [ERROR]         at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:73)
   [ERROR]         at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:53)
   [ERROR]         at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:118)
   [ERROR]         at 
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:261)
   [ERROR]         at 
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:173)
   [ERROR]         at 
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:101)
   [ERROR]         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:906)
   [ERROR]         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:283)
   [ERROR]         at org.apache.maven.cli.MavenCli.main(MavenCli.java:206)
   [ERROR]         at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   [ERROR]         at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
   [ERROR]         at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   [ERROR]         at java.base/java.lang.reflect.Method.invoke(Method.java:568)
   [ERROR]         at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:283)
   [ERROR]         at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:226)
   [ERROR]         at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:407)
   [ERROR]         at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:348)
   [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
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to