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

NPE when running supportextract without monitoring user configured

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.0.0
    • Fix Version/s: 7.0.0
    • Component/s: tools
    • Labels:

      Description

      Found with 7.0.0-SNAPSHOT rev. 71deb64d1f9fd65bb7da6cba56884f3380b2d7c6.

      I hit NPE when running supportextract tool on instance without monitoring user.

      Steps to reproduce
      1. Setup DS

      ./setup \
       --serverId Sari_Henshaw \
       --hostname pyforge.example.com \
       --adminConnectorPort 4444 \
       --rootUserDn uid=admin \
       --rootUserPassword pwdpwdpwd \
       --ldapPort 1389 \
       --enableStartTls \
       --ldapsPort 1636 \
       --httpsPort 8443 \
       --sampleData 1 \
       --baseDn dc=example,dc=com
      
      

      2. run supportextract tool

      ./bin/supportextract -D "cn=Directory Manager" -w "password" -d "/tmp"
      The instance is running
      No value was provided for --jdkToolsDirectory, JDK tool directory is set to
      /usr/lib/jvm/java-8-oracle/bin
      VERSION: 7.0.0.054825e4d76bff67e031554f373ac7e40e9aa745
      Apr 26, 2019 8:58:51 AM org.forgerock.i18n.slf4j.LocalizedLogger warn
      WARNING: The extensions directory /home/fuchsik/forks/pyforge/archives/opendj/lib/extensions does not exist, therefore no extensions will be loaded
      Collecting the monitoring info from cn=monitor
      Collecting process statistics
      - Generating stack dump, sample number : 1
      - Collecting process thread information, sample number : 1
      - Generating stack dump, sample number : 2
      - Collecting process thread information, sample number : 2
      - Generating stack dump, sample number : 3
      - Collecting process thread information, sample number : 3
      - Generating stack dump, sample number : 4
      - Collecting process thread information, sample number : 4
      - Generating stack dump, sample number : 5
      - Collecting process thread information, sample number : 5
      - Generating stack dump, sample number : 6
      - Collecting process thread information, sample number : 6
      - Generating stack dump, sample number : 7
      - Collecting process thread information, sample number : 7
      - Generating stack dump, sample number : 8
      - Collecting process thread information, sample number : 8
      - Generating stack dump, sample number : 9
      - Collecting process thread information, sample number : 9
      - Generating stack dump, sample number : 10
      - Collecting process thread information, sample number : 10
      Collecting the configuration files
      - Adding config.ldif
      - Adding admin-backend.ldif
      - Adding rootUser0.ldif
      null
      Continuing data gathering though there was an error: Could not collect all the
      files: java.lang.NullPointerException
      Collecting system node information
      - OS information
      - Network information
      - Disk information
      - Processor information
      - Linux Release
      Collecting backend statistics
      - userRoot: total jdb files 2
      - Adding je.info.0
      - Adding je.config.csv
      - Adding je.stat.csv
      Collecting the log files
      - /home/fuchsik/forks/pyforge/archives/opendj/logs/access
      - /home/fuchsik/forks/pyforge/archives/opendj/logs/http-access
      - /home/fuchsik/forks/pyforge/archives/opendj/logs/ldap-access.audit.json
      - /home/fuchsik/forks/pyforge/archives/opendj/logs/http-access.audit.json
      - /home/fuchsik/forks/pyforge/archives/opendj/logs/audit
      - /home/fuchsik/forks/pyforge/archives/opendj/logs/errors
      - /home/fuchsik/forks/pyforge/archives/opendj/logs/replication
      - /home/fuchsik/forks/pyforge/archives/opendj/logs/debug
      Skipping GC logs collection because GC logging is not enabled
      
      The following archive has been created :
      /tmp/opendj-support-data-20190426-085849.zip
      There was at least one error during the tasks execution: 
      Could not collect all the files: java.lang.NullPointerException 
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                JnRouvignac Jean-Noël Rouvignac
                Reporter:
                ondrej.fuchsik Ondrej Fuchsik
                QA Assignee:
                Ondrej Fuchsik
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: