[jboss-jira] [JBoss JIRA] (AS7-4630) add-user script broken
Samuel Doyle (JIRA)
jira-events at lists.jboss.org
Fri Jun 22 10:22:12 EDT 2012
[ https://issues.jboss.org/browse/AS7-4630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702992#comment-12702992 ]
Samuel Doyle commented on AS7-4630:
-----------------------------------
It is very evident by the exception that the result is there no console.
If you have no console your testcase is not valid at this point since you are manually entering the command from a console.
The error occurs when the command is invoked through something like a scripted automated deployment procedure which is a very common usecase.
This is continuously reproducible.
> add-user script broken
> ----------------------
>
> Key: AS7-4630
> URL: https://issues.jboss.org/browse/AS7-4630
> Project: Application Server 7
> Issue Type: Bug
> Reporter: Dustin Kut Moy Cheung
> Assignee: Darran Lofthouse
> Fix For: 7.1.3.Final (EAP), 7.2.0.Alpha1
>
>
> ./add-user.sh dustin dustin1 does not work anymore. In previous versions it worked. It has to do with the "theConsole" object being null.
> In the same breadth, the --silent=true option in add-user.sh does not work anymore. Again has to do with the need for "theConsole" object being null.
> The --silent=true option was added because in some environments, System.console() returns null[for example when the Izpack installer calls that script] and the add-user.sh script breaks because of its dependence on System.console() object to print stuff.
> [the "theConsole" object calls the System.console() object]
--
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