Bug 1020396 - CLI on Windows outputs everything twice
Summary: CLI on Windows outputs everything twice
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: CLI
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ER7
: EAP 6.2.0
Assignee: Tomaz Cerar
QA Contact: Petr Kremensky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-17 15:10 UTC by Jan Martiska
Modified: 2017-10-10 00:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-15 16:55:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Martiska 2013-10-17 15:10:16 UTC
On Windows, for some reason, CLI outputs everything twice - once as a log and once as the 'normal' output -- It seems that INFO-level logs are by default sent to the console output. This started happening in EAP 6.2.0.ER1 (but I encountered it first with ER6) and wasn't observed on platforms other than Windows. 

Example from the command line:

C:\eap6\ER2\bin>jboss-cli.bat --connect
INFO  [org.jboss.modules] JBoss Modules version 1.3.0.Beta4
INFO  [org.xnio] XNIO Version 3.0.7.GA-redhat-1
INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.7.GA-redhat-1
INFO  [org.jboss.remoting] JBoss Remoting version 3.2.16.GA-redhat-1
[standalone@localhost:9999 /] /subsystem=weld:read-resource
INFO  [org.jboss.as.cli.CommandContext] {
    "outcome" => "success",
    "result" => {}
}
{
    "outcome" => "success",
    "result" => {}
}

It doesn't seem like a configuration issue, rather it is somewhere in the CLI module.  When I tried overwriting the org.jboss.as.cli module in 6.2.0.ERx with the one from 6.1.1.GA, the issue disappeared.

Comment 1 Alexey Loubyansky 2013-10-17 15:14:24 UTC
Could you compare jboss-cli-logging.properties in the bin dir? The logging should be OFF by default. For example, the current config is

loggers=org,org.jboss.as.cli
logger.org.level=OFF
logger.org.jboss.as.cli.level=OFF

Comment 2 Jan Martiska 2013-10-17 15:18:39 UTC
There is no difference in jboss-cli-logging.properties. The config is just as you said.

Comment 3 Jan Martiska 2013-10-29 10:42:00 UTC
Observed on Windows Server 2008 and Windows 7.

Comment 4 Brian Stansberry 2013-10-29 12:27:36 UTC
This is fixed upstream; just needs to be backported.

Comment 6 Petr Kremensky 2013-10-31 10:29:32 UTC
Verified on EAP 6.2.0.ER7.


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