Uploaded image for project: 'JBoss Enterprise Application Platform 6'
  1. JBoss Enterprise Application Platform 6
  2. JBPAPP6-887

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

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Migrated to another ITS
    • EAP 6.0.0
    • EAP 6.0.1 ER 1
    • Consoles
    • None
    • Release Notes

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

              tfonteyn Tom Fonteyne (Inactive)
              rhn-support-dereed Dennis Reed
              Archiver:
              samahaja@redhat.com Sagar Mahajan

              Dates

                Created:
                Updated:
                Resolved:
                Archived: