Bug 994699 - Setting a null encoding on a OutputStreamHandler that uses setWriter sets the writer to null too
Summary: Setting a null encoding on a OutputStreamHandler that uses setWriter sets the...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Logging
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: EAP 6.2.0
Assignee: Emmanuel Hugonnet (ehsavoie)
QA Contact: Nikoleta Hlavickova
Russell Dickenson
URL:
Whiteboard:
Depends On:
Blocks: 994700
TreeView+ depends on / blocked
 
Reported: 2013-08-07 19:34 UTC by Kyle Lape
Modified: 2018-12-02 16:55 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-20 07:17:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker LOGMGR-78 0 Major Resolved Setting an encoding on a OutputStreamHandler that uses setWriter sets the writer to null too 2014-09-02 13:02:52 UTC

Description Kyle Lape 2013-08-07 19:34:54 UTC
An example is the ConsoleHandler. Using a target of CONSOLE uses the setWriter(wrap(System.console())) which sets the outputStream to null. The setEncoding() uses the outputStream then sets the writer. Since the outputStream is null due to the setWriter() being invoked, the writer is then set to null so no output is being written.

Comment 1 Emmanuel Hugonnet (ehsavoie) 2013-08-12 12:42:20 UTC
https://github.com/jboss-logging/jboss-logmanager/pull/34 sent to jboss-logmanager

Comment 2 JBoss JIRA Server 2013-09-04 03:39:30 UTC
James Perkins <jperkins> made a comment on jira LOGMGR-78

Pull request merged

Comment 3 Nikoleta Hlavickova 2014-08-20 07:17:11 UTC
This issue is reported against older version and cannot be reproduced against latest 6.3.0. bits, which means it was fixed earlier. Therefore, we are closing this bug. Thank you for reporting this issue.


Note You need to log in before you can comment on or make changes to this bug.