You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Aliaksei Khizhniak (Jira)" <ji...@apache.org> on 2022/05/24 10:00:00 UTC

[jira] [Commented] (SUREFIRE-1983) Corrupted STDOUT by directly writing to native stream in forked JVM 1. [setupJunitLogger() should be called AFTER startCapture()]

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

Aliaksei Khizhniak commented on SUREFIRE-1983:
----------------------------------------------

I have started receiving this issue on 3.0.0-M6. Never had it before.

I am using Junit 5.8.2 and logback 1.2.11 if that matters

> Corrupted STDOUT by directly writing to native stream in forked JVM 1. [setupJunitLogger() should be called AFTER startCapture()]
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-1983
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1983
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: JUnit 5.x support, Maven Failsafe Plugin, Maven Surefire Plugin
>            Reporter: Tibor Digana
>            Assignee: Tibor Digana
>            Priority: Major
>             Fix For: 2.22.3, 3.0.0-M6
>
>
> The warning messages "Corrupted STDOUT by directly writing to native stream in forked JVM 1." appear in Surefire JUnit5 provider. In order to reproduce this issue with old versions, Log4j or slf4j logger should be used. The previous fixes were not reliable. The real root cause of this issue is based on incorrect order of methods startCapture() and setupJunitLogger().
> setupJunitLogger() should be called AFTER startCapture()



--
This message was sent by Atlassian Jira
(v8.20.7#820007)