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

Flow Thresholds: Fix handling of rrdRepository

    XMLWordPrintable

Details

    • Story
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • 30.0.0
    • 30.0.0
    • None
    • Security Level: Default (Default Security Scheme)
    • None

    Description

      While working on the example configs for the documentation I ran into a following with resource-filters. Currently the handling of the rrdRepository for thresholding results in a NullPointerException when evaluating the ds-label field or the resource-filter field. 

       

      java.lang.NullPointerException: null
      	at org.opennms.netmgt.model.ResourceTypeUtils.getResourcePathWithRepository(ResourceTypeUtils.java:191) ~[opennms-model-30.0.0-SNAPSHOT.jar:?]
      	at org.opennms.netmgt.threshd.CollectionResourceWrapper.getFieldValue(CollectionResourceWrapper.java:508) [org.opennms.features.collection.thresholding.impl-30.0.0-SNAPSHOT.jar:?]
      	at org.opennms.netmgt.threshd.ThresholdingSetImpl.passedThresholdFilters(ThresholdingSetImpl.java:363) [org.opennms.features.collection.thresholding.impl-30.0.0-SNAPSHOT.jar:?]
      	at org.opennms.netmgt.threshd.ThresholdingSetImpl.applyThresholds(ThresholdingSetImpl.java:308) [org.opennms.features.collection.thresholding.impl-30.0.0-SNAPSHOT.jar:?]
      	at org.opennms.netmgt.threshd.ThresholdingSetImpl.applyThresholds(ThresholdingSetImpl.java:546) [org.opennms.features.collection.thresholding.impl-30.0.0-SNAPSHOT.jar:?]
      	at org.opennms.netmgt.threshd.ThresholdingVisitorImpl.completeResource(ThresholdingVisitorImpl.java:162) [org.opennms.features.collection.thresholding.impl-30.0.0-SNAPSHOT.jar:?]
      	at org.opennms.netmgt.collection.support.AbstractCollectionResource.visit(AbstractCollectionResource.java:118) [org.opennms.features.collection.api-30.0.0-SNAPSHOT.jar:?]
      	at org.opennms.netmgt.collection.dto.CollectionSetDTO.visit(CollectionSetDTO.java:218) [org.opennms.features.collection.api-30.0.0-SNAPSHOT.jar:?]
      

      Attachments

        Activity

          People

            fooker Dustin Frisch
            cpape Christian Pape
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: