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

The poller-test command doesn't work due to Spring initialization conflicts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 18.0.3
    • Fix Version/s: 19.1.0
    • Component/s: Command-Line Tools
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Sprint:
      Horizon - March 29th

      Description

      The /opt/opennms/bin/poller-test command was used to validate a given monitor based on the current content of poller-configuration.xml and the IP/Node combination from the database.

      Unfortunately, the current implementation uses BeanUtils to initialize the DAO to perform the database validation which forces to initialize the whole Spring Content, and that causes error if OpenNMS is running, as it tries to initialize things that are already running.

      To fix this problem, the poller-test command has to be reworked to avoid the usage of BeanUtils, which is possible with direct database calls.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                j-white Jesse White
                Reporter:
                agalue Alejandro Galue
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: