You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Manfred Baedke (Jira)" <ji...@apache.org> on 2026/01/28 14:31:00 UTC

[jira] [Comment Edited] (OAK-10344) oak-run ITs fail with failsafe >= 3.0.0

    [ https://issues.apache.org/jira/browse/OAK-10344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18054861#comment-18054861 ] 

Manfred Baedke edited comment on OAK-10344 at 1/28/26 2:30 PM:
---------------------------------------------------------------

Failsafe 3.x uses the module classpath by default, which will lead to ClassNotFoundExceptions in oak-run tests. On newer 3.x versions they are properly reported and I didn't see "Corrupted channel by directly writing to native stream in forked JVM 1. Stream 'Error occurred during initialization of boot layer'." So this may actually be a different issue, but anyway with Failsafe 3.5.4 and 
{code:java}
<useModulePath>false</useModulePath>
{code}
 everything works.
I will just add that configuration and not update the version of Failsafe. That will happen automatically when we switch to the current Apache Parent Pom.


was (Author: baedke):
Failsafe 3.x uses the module classpath by default, which will lead to ClassNotFoundExceptions in oak-run tests. On newer 3.x versions they are properly reported and I didn't see "Corrupted channel by directly writing to native stream in forked JVM 1. Stream 'Error occurred during initialization of boot layer'." So this may actually be a different issue, but anyway with Failsafe 3.5.4 and 
{code:java}
<useModulePath>false</useModulePath>
{code}
 everything works.

> oak-run ITs fail with failsafe >= 3.0.0
> ---------------------------------------
>
>                 Key: OAK-10344
>                 URL: https://issues.apache.org/jira/browse/OAK-10344
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: run
>            Reporter: Julian Reschke
>            Assignee: Manfred Baedke
>            Priority: Major
>
> To test:
> {noformat}
> diff --git a/oak-parent/pom.xml b/oak-parent/pom.xml
> index 2d282c8323..d35a6b6d85 100644
> --- a/oak-parent/pom.xml
> +++ b/oak-parent/pom.xml
> @@ -304,6 +304,7 @@
>          </plugin>
>          <plugin>
>            <artifactId>maven-failsafe-plugin</artifactId>
> +          <version>3.0.0</version>
>            <configuration>
>              <argLine>${test.opts}</argLine>
>              <trimStackTrace>false</trimStackTrace>
> {noformat}
> Failure is:
> {noformat}
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  03:48 min
> [INFO] Finished at: 2023-07-10T11:09:43+02:00
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:3.0.0:verify (default) on project oak-run:
> [ERROR]
> [ERROR] Please refer to C:\projects\apache\oak\trunk\oak-run\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] The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
> [ERROR] Command was cmd.exe /X /C "C:\usr\local\jdk-11.0.18\bin\java -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -Dupdate.limit=100 -Djava.awt.headless=true @C:\tmp\surefire10387479786813238660\surefireargs-20230710110942239_3 C:\tmp\surefire10387479786813238660 2023-07-10T11-09-40_604-jvmRun1 surefire-2023071011094223
> 9_1tmp surefire_0-20230710110942239_2tmp"
> [ERROR] Error occurred in starting fork, check output in log
> [ERROR] Process Exit Code: 1
> {noformat}
> {noformat}
> # Created at 2023-07-10T11:09:43.209
> Corrupted channel by directly writing to native stream in forked JVM 1. Stream 'Error occurred during initialization of boot layer'.
> # Created at 2023-07-10T11:09:43.232
> Corrupted channel by directly writing to native stream in forked JVM 1. Stream 'java.lang.module.ResolutionException: Module com.fasterxml.jackson.dataformat.cbor contains package com.fasterxml.jackson.core.base, module com.fasterxml.jackson.core exports package com.fasterxml.jackson.core.base to com.fasterxml.jackson.dataformat.cbor'.
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)