Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5060

add-user.sh/add-user.bat non-interactive mode cannot redirect output

XMLWordPrintable

      Currently the add-user.sh / add-user.bat script fails with the exception below if it tries to redirect the output.

      ./add-user.sh --silent=true user password > log

      Exception in thread "main" java.lang.IllegalStateException: JBAS015232: No java.io.Console available to interact with user.
      at org.jboss.as.domain.management.security.AddPropertiesUser.<init>(AddPropertiesUser.java:108)
      at org.jboss.as.domain.management.security.AddPropertiesUser.<init>(AddPropertiesUser.java:119)
      at org.jboss.as.domain.management.security.AddPropertiesUser.main(AddPropertiesUser.java:167)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.modules.Module.run(Module.java:270)
      at org.jboss.modules.Main.main(Main.java:294)

              tfonteyn Tom Fonteyne (Inactive)
              rhn-support-bmaxwell Brad Maxwell
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: