[jboss-jira] [JBoss JIRA] (AS7-5108) Unused Command Line -D parameters should error out and stop boot of JBoss AS
Jim Tyrrell (JIRA)
jira-events at lists.jboss.org
Thu Jul 5 12:43:12 EDT 2012
[ https://issues.jboss.org/browse/AS7-5108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704685#comment-12704685 ]
Jim Tyrrell commented on AS7-5108:
----------------------------------
When the object/String that represents the passed in flag is used/injected, can't we increment a counter on that object, and increment it on every use, and then at the end of booting make sure every object at least has a count of 1 or greater. If not then we error out or at least output an error before continuing to boot.
That would take care of any random new parameters, our's and any other use case. It would enable people to easily see the custom parameter they thought they were using/injecting is in fact not working as they expected.
Of course if they are passing a parameter to their application, then this would generate an error at boot time, hmmm.
Thoughts?
> Unused Command Line -D parameters should error out and stop boot of JBoss AS
> ----------------------------------------------------------------------------
>
> Key: AS7-5108
> URL: https://issues.jboss.org/browse/AS7-5108
> Project: Application Server 7
> Issue Type: Feature Request
> Components: Domain Management
> Affects Versions: 7.1.2.Final (EAP)
> Environment: All
> Reporter: Jim Tyrrell
> Assignee: Brian Stansberry
> Labels: eap6-ux
>
> When running the clustering lab at JBW hosted by Rich Rapoosa, I mistakeningly typed in the wrong command line parameters. We were supposed to use dots and with tired eyes I misread the screen and used dashes. The error message that came up made very little sense. It would be great to stop the server booting with any unused/injected parameter that was passed in at the command line. My example command was this, but it should work for any unused passed in parameter. ./domain.sh --host-config=host-slave.xml -Djboss.domain.base.dir=/home/jimtyrrell/Servers/machine3/ -Djboss.domain-master-address=127.0.0.1
> The error message was this:
> [Host Controller] 09:48:27,318 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("write-remote-domain-controller") failed - address: ([("host" => "hostjim2")]) - failure description: "JBAS014802: Cannot resolve expression 'expression \"${jboss.domain.master.address}\"' -- java.lang.IllegalStateException: Failed to resolve expression: ${jboss.domain.master.address}"
> [Host Controller] 09:48:27,320 FATAL [org.jboss.as.host.controller] (Controller Boot Thread) JBAS010933: Host Controller boot has failed in an unrecoverable manner; exiting. See previous messages for details.
> I agree it is mostly right there, however, it took three of us looking at the command line before we noticed the dashes instead of the dots. Any other unused parameters should generate a very clear error message that is as close as possible to the starting of the instance.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list