6 Replies Latest reply on Jun 16, 2016 6:16 PM by Bar Mid

    WildFly 10.0.0.Final WFLYDM0021: No java.io.Console available to interact with user

    Bar Mid Newbie

      First experience with WildFly and the first task in the Getting Started fails. Not such a good first impression. It sort of begs the question of how well this is tested.

       

      [17:42:37] [/cygdrive/c/dev/newEnv/wildfly-10.0.0.Final/bin] [1245] [master] $ ./add-user.sh

      ++ dirname ./add-user.sh

      + DIRNAME=.

      + cygwin=false

      ++ uname

      ++ grep -i CYGWIN

      + '[' CYGWIN_NT-6.3 ']'

      + cygwin=true

      + true

      + '[' -n '' ']'

      + '[' -n 'C:\Program Files\Java\jre1.8.0_91' ']'

      ++ cygpath --unix 'C:\Program Files\Java\jre1.8.0_91'

      + JAVA_HOME='/cygdrive/c/Program Files/Java/jre1.8.0_91'

      + '[' -n '' ']'

      ++ cd ./..

      ++ pwd

      + RESOLVED_JBOSS_HOME=/cygdrive/c/dev/newEnv/wildfly-10.0.0.Final

      + '[' x = x ']'

      + JBOSS_HOME=/cygdrive/c/dev/newEnv/wildfly-10.0.0.Final

      + export JBOSS_HOME

      + '[' x = x ']'

      + '[' 'x/cygdrive/c/Program Files/Java/jre1.8.0_91' '!=' x ']'

      + JAVA='/cygdrive/c/Program Files/Java/jre1.8.0_91/bin/java'

      + '[' x = x ']'

      + JBOSS_MODULEPATH=/cygdrive/c/dev/newEnv/wildfly-10.0.0.Final/modules

      + true

      ++ cygpath --path --windows /cygdrive/c/dev/newEnv/wildfly-10.0.0.Final

      + JBOSS_HOME='C:\dev\newEnv\wildfly-10.0.0.Final'

      ++ cygpath --path --windows '/cygdrive/c/Program Files/Java/jre1.8.0_91'

      + JAVA_HOME='C:\Program Files\Java\jre1.8.0_91'

      ++ cygpath --path --windows /cygdrive/c/dev/newEnv/wildfly-10.0.0.Final/modules

      + JBOSS_MODULEPATH='C:\dev\newEnv\wildfly-10.0.0.Final\modules'

      + JAVA_OPTS=

      + eval '"/cygdrive/c/Program' 'Files/Java/jre1.8.0_91/bin/java"' -jar '"C:\dev\newEnv\wildfly-10.0.0.Final/jboss-modules.jar"' -mp '"C:\dev\newEnv\wildfly-10.0.0.Final\modules"' org.jboss.as.domain-add-user '"$@"'

      ++ '/cygdrive/c/Program Files/Java/jre1.8.0_91/bin/java' -jar 'C:\dev\newEnv\wildfly-10.0.0.Final/jboss-modules.jar' -mp 'C:\dev\newEnv\wildfly-10.0.0.Final\modules' org.jboss.as.domain-add-user

      Exception in thread "main" java.lang.IllegalStateException: WFLYDM0021: No java.io.Console available to interact with user.

              at org.jboss.as.domain.management.security.adduser.AddUser.<init>(AddUser.java:78)

              at org.jboss.as.domain.management.security.adduser.AddUser.main(AddUser.java:232)

              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:329)

              at org.jboss.modules.Main.main(Main.java:507)

       

      This was listed as a bug in 2013.

       

      Any idea how to resolve it?

       

      I don't really want to have to switch to a win console every time I need to run an admin command.