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

NullPointerException in RrdtoolXportFetchStrategy

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 16.0.0
    • Fix Version/s: 16.0.1
    • Component/s: REST
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      CentOS 6, rrdtool v1.3.8
    • Sprint:
      Finalize 16.0.1

      Description

      The service throws an NPE when using older versions of rrdtool.

      This case should be handled properly and an error of the form "Use rrdtool v1.4.0 or greater" should be logged instead.

      Stack trace:

      java.lang.NullPointerException
      at org.opennms.web.rest.measurements.fetch.RrdtoolXportFetchStrategy.fetchMeasurements(RrdtoolXportFetchStrategy.java:177) ~[org.opennms.features.rest-measurements-api-16.0.0.jar:?]
      at org.opennms.web.rest.measurements.fetch.AbstractRrdBasedFetchStrategy.fetch(AbstractRrdBasedFetchStrategy.java:113) ~[org.opennms.features.rest-measurements-api-16.0.0.jar:?]
      at org.opennms.web.rest.MeasurementsRestService.query(MeasurementsRestService.java:155) [org.opennms.features.rest-measurements-api-16.0.0.jar:?]

        Attachments

          Activity

            People

            • Assignee:
              j-white Jesse White
              Reporter:
              j-white Jesse White
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: