[jboss-jira] [JBoss JIRA] (AS7-6411) Cygwin, add-user.sh and error "JBAS015232: Aucune java.io.Console disponible pour interagir avec l'utilisateur."

Bernard Giroud (JIRA) jira-events at lists.jboss.org
Mon Jan 28 13:09:47 EST 2013


Bernard Giroud created AS7-6411:
-----------------------------------

             Summary: Cygwin, add-user.sh and error "JBAS015232: Aucune java.io.Console disponible pour interagir avec l'utilisateur."
                 Key: AS7-6411
                 URL: https://issues.jboss.org/browse/AS7-6411
             Project: Application Server 7
          Issue Type: Bug
          Components: Domain Management, Security
    Affects Versions: 7.1.3.Final (EAP)
         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: Brian Stansberry


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


More information about the jboss-jira mailing list