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

Trailing whitespace breaks flow listener config

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 28.0.1
    • Fix Version/s: 28.1.0
    • Component/s: Flows, Minion
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Sprint:
      Horizon 2021 - Aug 18 - Sept 1
    • HB Backlog Status:
      Backlog

      Description

      Trailing whitespace in a parser class-name line:

      parsers.0.class-name = org.opennms.netmgt.telemetry.protocols.netflow.parser.Netflow5UdpParser 

      ...on Minion is sufficient to break the flow listener with the error:

      2021-08-02T10:02:04,915 | ERROR | CM Configuration Updater (ManagedServiceFactory Update: factoryPid=[org.opennms.features.telemetry.listeners]) | ListenerM
      anager                  | 357 - org.opennms.features.telemetry.distributed.minion - 28.0.0 | Failed to build listener.
      
      java.lang.IllegalArgumentException: Each parser must be of type UdpParser but was not.
      
              at org.opennms.netmgt.telemetry.listeners.factory.UdpListenerFactory.createBean(UdpListenerFactory.java:63) ~[?:?]
      
              at org.opennms.netmgt.telemetry.listeners.factory.UdpListenerFactory.createBean(UdpListenerFactory.java:42) ~[?:?]
      
              at Proxy02fe324e_3dd9_4bf9_9b9e_c8a30278358c.createBean(Unknown Source) ~[?:?]
      
              at org.opennms.netmgt.telemetry.protocols.registry.impl.TelemetryServiceRegistryImpl.getService(TelemetryServiceRegistryImpl.java:121) ~[?:?]
      
              at org.opennms.netmgt.telemetry.protocols.registry.impl.TelemetryServiceRegistryImpl.getService(TelemetryServiceRegistryImpl.java:56) ~[?:?]
      
              at org.opennms.netmgt.telemetry.protocols.registry.impl.TelemetryRegistryImpl.getListener(TelemetryRegistryImpl.java:85) ~[?:?]
      
              at Proxy5da45d56_e7d0_4900_b13f_f1304145e459.getListener(Unknown Source) ~[?:?]
      
              at org.opennms.netmgt.telemetry.distributed.minion.ListenerManager.updated(ListenerManager.java:124) [!/:?]
      
              at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159) [!/:?]
      
              at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93) [!/:?]
      
              at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1264) [!/:?]
      
              at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1208) [!/:?]
      
              at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:122) [!/:?]
      
              at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:84) [!/:?]
      
              at java.lang.Thread.run(Thread.java:834) [?:?]
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cpape Christian Pape
              Reporter:
              dino2gnt Dino Yancey
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                HB Grooming Date:

                  Git Integration