Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-2936

ldappasswordmodify display an unfriendly NullPointer exception

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 2.6.2
    • Fix Version/s: 4.0.0, 3.5.0
    • Component/s: None
    • Labels:
    • Support Ticket IDs:

      Description

      If the OpenDJ is not setup for replication and the user tries to change the password for Global Administrator, a NullPointerException will be encountered.

        ./ldappasswordmodify --port 4444 --hostname localhost --bindDN "cn=Directory Manager" --bindPassword password --authzID "cn=admin,cn=Administrators,cn=admin data" --newPassword password --useStartTLS 
      Exception in thread "main" java.lang.NullPointerException
      	at org.opends.server.tools.LDAPConnection.connectToHost(LDAPConnection.java:247)
      	at org.opends.server.tools.LDAPPasswordModify.mainPasswordModify(LDAPPasswordModify.java:681)
      	at org.opends.server.tools.LDAPPasswordModify.main(LDAPPasswordModify.java:101)
      

      As Null Pointer Exception is not desirable in programming, the code should be enhanced to catch this error and provide a more friendly message instead.

        Attachments

          Activity

            People

            • Assignee:
              JnRouvignac Jean-Noël Rouvignac
              Reporter:
              sam.phua Sam Phua
              QA Assignee:
              Ondrej Fuchsik
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: