Uploaded image for project: 'OpenNMS Horizon'
  1. OpenNMS Horizon
  2. HZN-1282

AlarmChangeNotificationClient - Unable to parse time value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 22.0.0
    • Fix Version/s: 22.0.1
    • Component/s: None
    • Labels:
    • Sprint:
      Horizon - May 16th 2018

      Description

      Errors generated by alarm-change-notifier in karaf,log

       

      2018-03-28T15:46:17,750 ERROR alarm-change-notifier.main-module:22.0.0.SNAPSHOT(56) [Thread-145] org.opennms.plugins.dbnotifier.alarmnotifier.AlarmChangeNotificationClient: cannot parse database json time string dbTimeStr2018-03-22T15:51:01.384-05:00
      java.sql.SQLException: Bad value for type timestamp : 2018-03-22T15:51:01.384-05:00
      at org.opennms.plugins.com.impossibl.postgres.jdbc.TimestampUtils.loadCalendar(TimestampUtils.java:269) [57:alarm-change-notifier.pg-jdbc-utils:22.0.0.SNAPSHOT]
      at org.opennms.plugins.com.impossibl.postgres.jdbc.TimestampUtils.toTimestamp(TimestampUtils.java:342) [57:alarm-change-notifier.pg-jdbc-utils:22.0.0.SNAPSHOT]
      at org.opennms.plugins.dbnotifier.alarmnotifier.AlarmChangeNotificationClient.timeNormaliser(AlarmChangeNotificationClient.java:481) [56:alarm-change-notifier.main-module:22.0.0.SNAPSHOT]
      at org.opennms.plugins.dbnotifier.alarmnotifier.AlarmChangeNotificationClient.jsonAlarmTimeNormaliser(AlarmChangeNotificationClient.java:442) [56:alarm-change-notifier.main-module:22.0.0.SNAPSHOT]
      at org.opennms.plugins.dbnotifier.alarmnotifier.AlarmChangeNotificationClient.sendDbNotification(AlarmChangeNotificationClient.java:95) [56:alarm-change-notifier.main-module:22.0.0.SNAPSHOT]
      at org.opennms.plugins.dbnotifier.DbNotificationClientQueueImpl$RemovingConsumer.run(DbNotificationClientQueueImpl.java:157) [56:alarm-change-notifier.main-module:22.0.0.SNAPSHOT]
      at java.lang.Thread.run(Thread.java:748) [?:?]
      Caused by: java.lang.NumberFormatException: Trailing junk on timestamp: 'T15:51:01.384-05:00'
      at org.opennms.plugins.com.impossibl.postgres.jdbc.TimestampUtils.loadCalendar(TimestampUtils.java:262) ~[?:?]
      ... 6 more
      2018-03-28T15:46:17,751 ERROR alarm-change-notifier.main-module:22.0.0.SNAPSHOT(56) [Thread-145] org.opennms.plugins.dbnotifier.alarmnotifier.AlarmChangeNotificationClient: cannot parse database json time string dbTimeStr2018-03-22T15:51:01.384-05:00
      java.sql.SQLException: Bad value for type timestamp : 2018-03-22T15:51:01.384-05:00
      at org.opennms.plugins.com.impossibl.postgres.jdbc.TimestampUtils.loadCalendar(TimestampUtils.java:269) [57:alarm-change-notifier.pg-jdbc-utils:22.0.0.SNAPSHOT]
      at org.opennms.plugins.com.impossibl.postgres.jdbc.TimestampUtils.toTimestamp(TimestampUtils.java:342) [57:alarm-change-notifier.pg-jdbc-utils:22.0.0.SNAPSHOT]
      at org.opennms.plugins.dbnotifier.alarmnotifier.AlarmChangeNotificationClient.timeNormaliser(AlarmChangeNotificationClient.java:481) [56:alarm-change-notifier.main-module:22.0.0.SNAPSHOT]
      at org.opennms.plugins.dbnotifier.alarmnotifier.AlarmChangeNotificationClient.jsonAlarmTimeNormaliser(AlarmChangeNotificationClient.java:445) [56:alarm-change-notifier.main-module:22.0.0.SNAPSHOT]
      at org.opennms.plugins.dbnotifier.alarmnotifier.AlarmChangeNotificationClient.sendDbNotification(AlarmChangeNotificationClient.java:95) [56:alarm-change-notifier.main-module:22.0.0.SNAPSHOT]
      at org.opennms.plugins.dbnotifier.DbNotificationClientQueueImpl$RemovingConsumer.run(DbNotificationClientQueueImpl.java:157) [56:alarm-change-notifier.main-module:22.0.0.SNAPSHOT]
      at java.lang.Thread.run(Thread.java:748) [?:?]
      Caused by: java.lang.NumberFormatException: Trailing junk on timestamp: 'T15:51:01.384-05:00'
      at org.opennms.plugins.com.impossibl.postgres.jdbc.TimestampUtils.loadCalendar(TimestampUtils.java:262) ~[?:?]
      ... 6 more
      2018-03-28T15:46:17,752 ERROR alarm-change-notifier.main-module:22.0.0.SNAPSHOT(56) [Thread-145] org.opennms.plugins.dbnotifier.alarmnotifier.AlarmChangeNotificationClient: cannot parse database json time string dbTimeStr2018-03-28T15:46:17.146-05:00
      java.sql.SQLException: Bad value for type timestamp : 2018-03-28T15:46:17.146-05:00
      at org.opennms.plugins.com.impossibl.postgres.jdbc.TimestampUtils.loadCalendar(TimestampUtils.java:269) [57:alarm-change-notifier.pg-jdbc-utils:22.0.0.SNAPSHOT]
      at org.opennms.plugins.com.impossibl.postgres.jdbc.TimestampUtils.toTimestamp(TimestampUtils.java:342) [57:alarm-change-notifier.pg-jdbc-utils:22.0.0.SNAPSHOT]
      at org.opennms.plugins.dbnotifier.alarmnotifier.AlarmChangeNotificationClient.timeNormaliser(AlarmChangeNotificationClient.java:481) [56:alarm-change-notifier.main-module:22.0.0.SNAPSHOT]
      at org.opennms.plugins.dbnotifier.alarmnotifier.AlarmChangeNotificationClient.jsonAlarmTimeNormaliser(AlarmChangeNotificationClient.java:448) [56:alarm-change-notifier.main-module:22.0.0.SNAPSHOT]
      at org.opennms.plugins.dbnotifier.alarmnotifier.AlarmChangeNotificationClient.sendDbNotification(AlarmChangeNotificationClient.java:95) [56:alarm-change-notifier.main-module:22.0.0.SNAPSHOT]
      at org.opennms.plugins.dbnotifier.DbNotificationClientQueueImpl$RemovingConsumer.run(DbNotificationClientQueueImpl.java:157) [56:alarm-change-notifier.main-module:22.0.0.SNAPSHOT]
      at java.lang.Thread.run(Thread.java:748) [?:?]
      Caused by: java.lang.NumberFormatException: Trailing junk on timestamp: 'T15:46:17.146-05:00'
      at org.opennms.plugins.com.impossibl.postgres.jdbc.TimestampUtils.loadCalendar(TimestampUtils.java:262) ~[?:?]
      ... 6 more
      2018-03-28T15:46:17,752 ERROR alarm-change-notifier.main-module:22.0.0.SNAPSHOT(56) [Thread-145] org.opennms.plugins.dbnotifier.alarmnotifier.AlarmChangeNotificationClient: cannot parse database json time string dbTimeStr2018-03-22T15:51:01.384-05:00
      java.sql.SQLException: Bad value for type timestamp : 2018-03-22T15:51:01.384-05:00
      at org.opennms.plugins.com.impossibl.postgres.jdbc.TimestampUtils.loadCalendar(TimestampUtils.java:269) [57:alarm-change-notifier.pg-jdbc-utils:22.0.0.SNAPSHOT]
      at org.opennms.plugins.com.impossibl.postgres.jdbc.TimestampUtils.toTimestamp(TimestampUtils.java:342) [57:alarm-change-notifier.pg-jdbc-utils:22.0.0.SNAPSHOT]
      at org.opennms.plugins.dbnotifier.alarmnotifier.AlarmChangeNotificationClient.timeNormaliser(AlarmChangeNotificationClient.java:481) [56:alarm-change-notifier.main-module:22.0.0.SNAPSHOT]
      at org.opennms.plugins.dbnotifier.alarmnotifier.AlarmChangeNotificationClient.jsonAlarmTimeNormaliser(AlarmChangeNotificationClient.java:454) [56:alarm-change-notifier.main-module:22.0.0.SNAPSHOT]
      at org.opennms.plugins.dbnotifier.alarmnotifier.AlarmChangeNotificationClient.sendDbNotification(AlarmChangeNotificationClient.java:95) [56:alarm-change-notifier.main-module:22.0.0.SNAPSHOT]
      at org.opennms.plugins.dbnotifier.DbNotificationClientQueueImpl$RemovingConsumer.run(DbNotificationClientQueueImpl.java:157) [56:alarm-change-notifier.main-module:22.0.0.SNAPSHOT]
      at java.lang.Thread.run(Thread.java:748) [?:?]
      Caused by: java.lang.NumberFormatException: Trailing junk on timestamp: 'T15:51:01.384-05:00'
      at org.opennms.plugins.com.impossibl.postgres.jdbc.TimestampUtils.loadCalendar(TimestampUtils.java:262) ~[?:?]
      ... 6 more

        Attachments

          Activity

            People

            • Assignee:
              patrick.schweizer Patrick Schweizer
              Reporter:
              sean Sean Torres
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: