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

Catch NullPointer Exception when running BSFScripts

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.5
    • Fix Version/s: 1.9.4
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      If you have a script (groovy in my case) and want it to run with the BSFMonitor and have anywhere a print statement the monitor will fail with a nullpointer exception.
      For someone not knowing where it come from it is difficult to find/fix.
      Catch that in line 19 of BSFMonitor.java and return a error (Script failed) as pollstatus.

        Attachments

          Activity

            People

            • Assignee:
              seth Seth Leger
              Reporter:
              opennms@hammon.info Daniel Hammon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: