Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-130

Cygwin, add-user.sh and error "JBAS015232: No java.io.Console available to interact with user."

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 8.0.0.CR1
    • Fix Version/s: 8.0.0.Final
    • Component/s: 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

    • Steps to Reproduce:
      Hide

      Under Cygwin:

      bin/add-user.sh u p

      Show
      Under Cygwin: bin/add-user.sh u p

      Description

      First of all, the add-user.sh script has an invalid syntax on line 14 which reads:

          cygwin = true;
      

      It should read:

          cygwin=true;
      

      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:

      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)
      

      Issuance of the following command : bin/add-user.sh
      Gives:

      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)
      

      Option --silent doesn't make a difference.

      An obvious workaround exists though: use with a CMD windows

      bin\add-user.bat u p
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dlofthouse Darran Lofthouse
                Reporter:
                bgiroud Bernard Giroud
              • Votes:
                3 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: