Bug 910925 - rhq-installer should suppress java stacktrace
Summary: rhq-installer should suppress java stacktrace
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Installer
Version: JON 3.1.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ER01
: JON 3.2.0
Assignee: John Mazzitelli
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-13 21:37 UTC by Viet Nguyen
Modified: 2014-01-02 20:35 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-02 20:35:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Viet Nguyen 2013-02-13 21:37:38 UTC
Description of problem:

rhq-installer.sh should suppress java trace caused by invalid arguments

[hudson@vnguyen4 bin]$ ./rhq-installer.sh --dd
Starting RHQ Server installer ...
16:35:02,304 INFO  [org.jboss.modules] JBoss Modules version 1.1.2.GA-redhat-1
16:35:02,387 INFO  [org.rhq.enterprise.server.installer.Installer] Starting installer...
installer: unrecognized option '--dd'
16:35:02,397 INFO  [org.rhq.enterprise.server.installer.Installer] RHQ Installer
	--help, -H: this help text
	-Dname=value: set system properties for the Installer VM
	--host=<hostname>, -h: hostname where the app server is running
	--port=<port>, -p: talk to the app server over this management port
	--test, -t: test the validity of the server properties (install not performed)
	--listservers, -l: show list of known installed servers (install not performed)
	--setupdb, -b: only perform database schema creation or update
	--reconfig, -r: resets some configuration settings in an installed server
	--dbpassword, -d: encodes a DB password for rhq-server.properties (install not performed)

16:35:02,398 ERROR [org.rhq.enterprise.server.installer.Installer] An error occurred: java.lang.IllegalArgumentException
	at org.rhq.enterprise.server.installer.Installer.processArguments(Installer.java:194) [rhq-installer-util-4.6.0.JON.jar:4.6.0.JON]
	at org.rhq.enterprise.server.installer.Installer.doInstall(Installer.java:76) [rhq-installer-util-4.6.0.JON.jar:4.6.0.JON]
	at org.rhq.enterprise.server.installer.Installer.main(Installer.java:57) [rhq-installer-util-4.6.0.JON.jar:4.6.0.JON]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_24]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.6.0_24]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.6.0_24]
	at java.lang.reflect.Method.invoke(Method.java:616) [rt.jar:1.6.0_24]
	at org.jboss.modules.Module.run(Module.java:270)
	at org.jboss.modules.Main.main(Main.java:294)


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. 
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Viet Nguyen 2013-02-13 21:41:44 UTC
Also considering removing the message "Starting RHQ Server installer ..."  It seems to me as if the installing is doing the actual installation.  For example when running ./rhq-installer.sh --dbpassword=foobar  I thought the installation is happening following the password encryption.

Comment 2 John Mazzitelli 2013-04-22 17:38:41 UTC
git commit to master: 110ce1a

Comment 3 Larry O'Leary 2013-09-06 14:31:34 UTC
As this is MODIFIED or ON_QA, setting milestone to ER1.

Comment 4 Viet Nguyen 2013-11-15 19:49:07 UTC
verified in ER5


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