[
https://issues.apache.org/jira/browse/SUREFIRE-1780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17092192#comment-17092192
]
Tibor Digana edited comment on SUREFIRE-1780 at 4/25/20, 11:57 AM:
-------------------------------------------------------------------
[~Pavel_K] Pull new changes again. I have verified the changes with your
project.
Now you can see [ERROR] and I can see
{{2020-04-25T13-50-05_930-jvmRun1.dumpstream}} in {{target/surefire-reports}}:
{noformat}
[INFO] --- maven-surefire-plugin:3.0.0-SNAPSHOT:test (default-test) @
com.foo.plugin ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[ERROR] Error occurred during initialization of boot layer
[ERROR] java.lang.module.FindException: Module java.ws.rs not found, required
by com.foo.api
[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
C:\vcs\github\surefire-jpms\com.foo.plugin\target\surefire-reports\2020-04-25T13-50-05_930-jvmRun1.dumpstream
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Com Foo ............................................ SUCCESS [ 0.035 s]
[INFO] Com Foo Api ........................................ SUCCESS [ 6.443 s]
[INFO] com.foo.plugin ..................................... FAILURE [ 5.207 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
{noformat}
was (Author: tibor17):
[~Pavel_K] Pull new changes again. I have verified the changes in your project.
Now you can see [ERROR] and I can see
{{2020-04-25T13-50-05_930-jvmRun1.dumpstream}} in {{target/surefire-reports}}:
{noformat}
[INFO] --- maven-surefire-plugin:3.0.0-SNAPSHOT:test (default-test) @
com.foo.plugin ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[ERROR] Error occurred during initialization of boot layer
[ERROR] java.lang.module.FindException: Module java.ws.rs not found, required
by com.foo.api
[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
C:\vcs\github\surefire-jpms\com.foo.plugin\target\surefire-reports\2020-04-25T13-50-05_930-jvmRun1.dumpstream
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Com Foo ............................................ SUCCESS [ 0.035 s]
[INFO] Com Foo Api ........................................ SUCCESS [ 6.443 s]
[INFO] com.foo.plugin ..................................... FAILURE [ 5.207 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
{noformat}
> Print JPMS errors from native stream of the fork JVM
> ----------------------------------------------------
>
> Key: SUREFIRE-1780
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1780
> Project: Maven Surefire
> Issue Type: Improvement
> Components: process forking
> Environment: Java 9+
> Reporter: Tibor Digana
> Assignee: Tibor Digana
> Priority: Major
> Fix For: 3.0.0-M5
>
>
> When JVM prints own logs to the native stream, the surefire stream becomes
> corrupted. These are printed in a dump file and they are supposed a stream
> corruption. We can extract some special logs from this corrupted stream.
> This issue is based on the last discussion in SUREFIRE-1262.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)