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

Catch NullPointer Exception when running BSFScripts

    XMLWordPrintable

Details

    • Enhancement
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.8.5
    • 1.9.4
    • Security Level: Default (Default Security Scheme)
    • 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

            seth Seth Leger
            opennms@hammon.info Daniel Hammon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: