Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-10134

/rest/flows/exporters throws NPE when no flows are found

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 22.0.0
    • Fix Version/s: 22.0.0
    • Component/s: Telemetry
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Sprint:
      Horizon - May 9th 2018

      Description

      While attempting to reproduce HELM-91, I tried setting up a clean OpenNMS with telemetry enabled, but no nodes or data.  When I try a simple curl to list the contents, I get a NullPointerException:

      Failed to execute query: java.lang.NullPointerException% ranger@With-Teeth > /usr/local/var/log/grafana > curl -L -o - -u admin:admin http://localhost:8980/opennms/rest/flows/exporters
      Failed to execute query: java.lang.NullPointerException%

      Steps to reproduce:

      1. Build OpenNMS from develop
      2. Enable telemetryd netflow 5 support
      3. Download & install elasticsearch 6.2.4 and install the drift elasticsearch plugin
      4. Start elasticsearch
      5. Start opennms

      In this state, it throws an NPE hitting the exporters url.  It also does so after I import some nodes (but still have no flow data).  It also still does it if I restart OpenNMS, so it's not just that the failure is cached somehow.

        Attachments

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              ranger Benjamin Reed
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: