[
https://issues.jboss.org/browse/AS7-4630?page=com.atlassian.jira.plugin.s...
]
Dustin Kut Moy Cheung commented on AS7-4630:
--------------------------------------------
Duplicate of AS7-4611
Darran:
When running './add-user.sh dustin dustin1', I get:
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:110)
at
org.jboss.as.domain.management.security.AddPropertiesUser.<init>(AddPropertiesUser.java:121)
at
org.jboss.as.domain.management.security.AddPropertiesUser.main(AddPropertiesUser.java:169)
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:260)
at org.jboss.modules.Main.main(Main.java:291)
By the way the --silent=true option works again. Thanks!
add-user script broken
----------------------
Key: AS7-4630
URL:
https://issues.jboss.org/browse/AS7-4630
Project: Application Server 7
Issue Type: Bug
Affects Versions: 7.1.1.Final
Reporter: Dustin Kut Moy Cheung
Assignee: Dustin Kut Moy Cheung
Fix For: 7.1.2.Final-redhat1
./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