Bug 1149526
Summary: | jboss-cli-client does not print output correctly | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Bryan Parry <bparry> |
Component: | CLI | Assignee: | James Perkins <jperkins> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Petr Kremensky <pkremens> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.3.1 | CC: | brian.stansberry, jperkins, kkhan |
Target Milestone: | DR13 | ||
Target Release: | EAP 6.4.0 | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | Type: | Bug | |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Bryan Parry
2014-10-05 20:16:44 UTC
Hi Bryan, what OS/JMV did you use? I am unable to reproduce locally (the output is printed only once), tried both 6.3.1 and 6.4.0.DR3 cli clients. Hi Petr, I am able to reproduce the issue on both RHEL and Windows XP using Java 7. Here is the version information for the three systems I have seen this issue: First: OS: RHEL 6.5 Java: 1.7.0_65 EAP: 6.3.0.GA Second: OS: Windows XP Professional SP3 Java: 1.7.0_17 EAP: 6.3.0.GA Third OS: RHEL 6.5 CSB Java: 1.7.0_55 EAP: 6.3.1.GA I just tried a quick test on my RHEL 6.5 CSB with Java 6 and I was able to reproduce as well. $ export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64 $ export PATH=$JAVA_HOME/bin:$PATH $ java -version java version "1.6.0_30" OpenJDK Runtime Environment (IcedTea6 1.13.3) (rhel-5.1.13.3.el6_5-x86_64) OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode) $ java -jar jboss-cli-client.jar --help WARN: can't find jboss-cli.xml. Using default configuration values. Oct 7, 2014 5:58:22 PM org.jboss.as.cli.impl.CommandContextImpl printLine INFO: Usage: Usage: Oct 7, 2014 5:58:22 PM org.jboss.as.cli.impl.CommandContextImpl printLine INFO: Oct 7, 2014 5:58:22 PM org.jboss.as.cli.impl.CommandContextImpl printLine INFO: jboss-cli.sh/jboss-cli.bat [--help] [--version] [--controller=host:port] ... OS: RHEL 6.5 CSB Java: 1.6.0_30 EAP: 6.3.1.GA Sorry Bryan, I can see it now (I redirected the output to the file before so I didn't see the output from logger). When the CLI is launched this way, the logging config property name would be the standard java util one, i.e. java -Djava.util.logging.config.file=file:"$JBOSS_HOME"/bin/jboss-cli-logging.properties -jar jboss-cli-client.jar --help (In reply to Alexey Loubyansky from comment #5) > When the CLI is launched this way, the logging config property name would be > the standard java util one, i.e. > > java > -Djava.util.logging.config.file=file:"$JBOSS_HOME"/bin/jboss-cli-logging. > properties -jar jboss-cli-client.jar --help Thanks Alexey this will be helpful. Verified on EAP 6.4.0.DR13 java -jar jboss-cli-client.jar --help // no logs from client java -jar -Djboss.cli.log.file=/home/pkremens/cli.log jboss-cli-client.jar --help -Djboss.cli.log.level=INFO // logs to file |