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

Destination path initial-delay parsing causing NumberFormatException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 21.0.0
    • Fix Version/s: None
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      Late-night DevJam hacking on a new notification strategy, while also fighting a head cold

      Description

      Getting this in notifd.log, and no notices are being sent:

      2017-07-19 22:56:02,922 INFO  [Notifd:BroadcastEventProcessor-Thread] o.o.n.n.BroadcastEventProcessor: Inserting notification #4 into database: Notice #4: node greynuns down.
      2017-07-19 22:56:02,927 WARN  [Notifd:BroadcastEventProcessor-Thread] o.o.n.e.EventIpcManagerDefaultImpl: run: an unexpected error occured during ListenerThread Notifd:BroadcastEventProcessor
      java.lang.NumberFormatException: For input string: "null"
          at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043) ~[?:1.8.0_111]
          at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122) ~[?:1.8.0_111]
          at java.lang.Float.parseFloat(Float.java:451) ~[?:1.8.0_111]
          at java.lang.Float.<init>(Float.java:532) ~[?:1.8.0_111]
          at org.opennms.core.utils.TimeConverter.convertToMillis(TimeConverter.java:118) ~[opennms-util-21.0.0-SNAPSHOT.jar:?]
          at org.opennms.netmgt.notifd.BroadcastEventProcessor.scheduleNoticesForEvent(BroadcastEventProcessor.java:583) ~[opennms-services-21.0.0-SNAPSHOT.jar:?]
          at org.opennms.netmgt.notifd.BroadcastEventProcessor.onEvent(BroadcastEventProcessor.java:208) ~[opennms-services-21.0.0-SNAPSHOT.jar:?]
          at org.opennms.netmgt.eventd.EventIpcManagerDefaultImpl$EventListenerExecutor$2.run(EventIpcManagerDefaultImpl.java:183) [org.opennms.features.events.daemon-21.0.0-SNAPSHOT.jar:?]
          at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1626) [?:1.8.0_111]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_111]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_111]
          at org.opennms.core.concurrent.LogPreservingThreadFactory$2.run(LogPreservingThreadFactory.java:106) [opennms-util-21.0.0-SNAPSHOT.jar:?]
          at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]
      

       

      I have a hunch this is breaking the sending of all notifications. That would be bad.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jeffg Jeff Gehlbach
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration