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

    • Hide

      Under Cygwin:

      bin/add-user.sh u p

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

      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
      

            darran.lofthouse@redhat.com Darran Lofthouse
            bgiroud Bernard Giroud (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: