[jboss-jira] [JBoss JIRA] (AS7-5061) add-user utility reports "No java.io.Console available to interact with user." when used silently with su and piped to a file.
Samuel Doyle (JIRA)
jira-events at lists.jboss.org
Thu Sep 19 18:22:03 EDT 2013
[ https://issues.jboss.org/browse/AS7-5061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Samuel Doyle reopened AS7-5061:
-------------------------------
I just encountered this problem yet again in your 7.2.0 release
commit 4ed76ceef253c568b7475780a92e49a034f540c5
Author: Jason T. Greene <jason.greene at redhat.com>
Date: Mon Feb 11 23:35:47 2013 -0600
Prepare 7.2.0.Final for pre-releases
----
Exception in thread "main" java.lang.IllegalStateException: JBAS015232: No java.io.Console available to interact with user.
at org.jboss.as.domain.management.security.AddPropertiesUser.<init>(AddPropertiesUser.java:97)
at org.jboss.as.domain.management.security.AddPropertiesUser.main(AddPropertiesUser.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.jboss.modules.Module.run(Module.java:262)
at org.jboss.modules.Main.main(Main.java:329)
> add-user utility reports "No java.io.Console available to interact with user." when used silently with su and piped to a file.
> ------------------------------------------------------------------------------------------------------------------------------
>
> Key: AS7-5061
> URL: https://issues.jboss.org/browse/AS7-5061
> Project: Application Server 7
> Issue Type: Bug
> Components: Domain Management, Security
> Affects Versions: 7.1.2.Final (EAP)
> Reporter: Samuel Doyle
> Assignee: Darran Lofthouse
> Fix For: 7.1.3.Final (EAP), EAP 6.1.0.Alpha (7.2.0.Final)
>
>
> ./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
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list