[
https://issues.jboss.org/browse/WFLY-130?page=com.atlassian.jira.plugin.s...
]
Aleksandar Kostadinov edited comment on WFLY-130 at 1/21/14 2:42 PM:
---------------------------------------------------------------------
I've created a PR for the wrong bash syntax with cygwin=true
(
https://github.com/wildfly/wildfly/pull/5737)
The other problem is also still present. I'm pasting the english version of the
exception here. It is IMO in the aesh component:{CODE}
Exception in thread "main" java.lang.IllegalStateException: JBAS015232: No
java.io.Console available to interact with user.
at org.jboss.as.domain.management.security.adduser.AddUser.<init>(AddUser.java:79)
at org.jboss.as.domain.management.security.adduser.AddUser.main(AddUser.java:237)
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:606)
at org.jboss.modules.Module.run(Module.java:292)
at org.jboss.modules.Main.main(Main.java:455)
{CODE}
btw a workaround would be to use the -s option and provide necessary parameters to the
command such that user input is not required. Sometimes inconvenient but at least somehow
works.
was (Author: akostadinov):
I've created a PR for the wrong bash syntax with cygwin=true
(
https://github.com/wildfly/wildfly/pull/5737#issuecomment-32890105)
The other problem is also still present. I'm pasting the english version of the
exception here. It is IMO in the aesh component:{CODE}
Exception in thread "main" java.lang.IllegalStateException: JBAS015232: No
java.io.Console available to interact with user.
at org.jboss.as.domain.management.security.adduser.AddUser.<init>(AddUser.java:79)
at org.jboss.as.domain.management.security.adduser.AddUser.main(AddUser.java:237)
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:606)
at org.jboss.modules.Module.run(Module.java:292)
at org.jboss.modules.Main.main(Main.java:455)
{CODE}
btw a workaround would be to use the -s option and provide necessary parameters to the
command such that user input is not required. Sometimes inconvenient but at least somehow
works.
Cygwin, add-user.sh and error "JBAS015232: Aucune
java.io.Console disponible pour interagir avec l'utilisateur."
----------------------------------------------------------------------------------------------------------------
Key: WFLY-130
URL:
https://issues.jboss.org/browse/WFLY-130
Project: WildFly
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Domain Management, Security
Environment: Windows XP with CYGWIN_NT-5.1 ... 1.7.17 (0.262/5/3) 2012-10-19
i686
Java HotSpot 1.7.0_11, RE build 1.7.0_11-b21, Client VM build 23.6-b04, mixed mode
JBoss AS 7.1.3.Final
Reporter: Bernard Giroud
Assignee: Darran Lofthouse
Labels: as7, management
Fix For: 9.0.0.CR1
First of all, the add-user.sh script has an invalid syntax on line 14 which reads:
{code}
cygwin = true;
{code}
It should read:
{code}
cygwin=true;
{code}
without spaces around the equal sign, Otherwise the truth value is not set, and the
conversion back to Windows pathes is not done.
Furthermore, the back-conversions should be conditioned to avoid a "cygpath:
can't convert empty path" in lines 56-60, especially with JAVA_HOME.
Finally, issuance of the following command : bin/add-user.sh u p
Gives:
{noformat}
cygpath: can't convert empty path
Exception in thread "main" java.lang.IllegalStateException: JBAS015232: Aucune
java.io.Console disponible pour interagir avec l'utilisateur.
at
org.jboss.as.domain.management.security.AddPropertiesUser.<init>(AddPropertiesUser.java:107)
at
org.jboss.as.domain.management.security.AddPropertiesUser.<init>(AddPropertiesUser.java:118)
at
org.jboss.as.domain.management.security.AddPropertiesUser.main(AddPropertiesUser.java:166)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.modules.Module.run(Module.java:270)
at org.jboss.modules.Main.main(Main.java:294)
{noformat}
Issuance of the following command : bin/add-user.sh
Gives:
{noformat}
cygpath: can't convert empty path
Exception in thread "main" java.lang.IllegalStateException: JBAS015232: Aucune
java.io.Console disponible pour interagir avec l'utilisateur.
at
org.jboss.as.domain.management.security.AddPropertiesUser.<init>(AddPropertiesUser.java:78)
at
org.jboss.as.domain.management.security.AddPropertiesUser.main(AddPropertiesUser.java:168)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.modules.Module.run(Module.java:270)
at org.jboss.modules.Main.main(Main.java:294)
{noformat}
Option --silent doesn't make a difference.
An obvious workaround exists though: use with a CMD windows
{noformat}
bin\add-user.bat u p
{noformat}
--
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