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

add-user script ends with NPE when username and password are the same

XMLWordPrintable

      The same username and password were used.

      [rsvoboda@rosta-ntb ER5]$ jboss-eap-6.0/bin/add-user.sh 
      
      What type of user do you wish to add? 
       a) Management User (mgmt-users.properties) 
       b) Application User (application-users.properties)
      (a): 
      
      Enter the details of the new user to add.
      Realm (ManagementRealm) : 
      Username : asd
      Password : 
      Re-enter Password : 
      Exception in thread "main" java.lang.NullPointerException
      	at org.jboss.as.domain.management.security.state.ErrorState.execute(ErrorState.java:58)
      	at org.jboss.as.domain.management.security.AddPropertiesUser.run(AddPropertiesUser.java:117)
      	at org.jboss.as.domain.management.security.AddPropertiesUser.main(AddPropertiesUser.java:159)
      	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:260)
      	at org.jboss.modules.Main.main(Main.java:291)
      

              darran.lofthouse@redhat.com Darran Lofthouse
              rsvoboda@redhat.com Rostislav Svoboda
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: