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

send-event.pl timestamp is not parsed correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.4
    • Fix Version/s: 1.8.11, 1.9.7
    • Component/s: Command-Line Tools
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      Operating System: Linux
      Platform: PC
    • Bugzilla Id:
      4128

      Description

      Hello,

      I sent some events manually:

      $OPENNMS_HOME/bin/send-event.pl -p 'daemonName Eventd' uei.opennms.org/internal/reloadDaemonConfig

      (BTW, this does not work)

      However, in eventd.log, I got:

      2010-09-21 16:10:30,840 WARN [EventHandlerPool-fiber1] JdbcEventWriter: Failed to convert time Tuesday, 21 September 2010 19:10:30 o'clock GMT to Timestamp, setting current time instead. Exception: java.text.ParseException: Unparseable date: "Tuesday, 21 September 2010 19:10:30 o'clock GMT"
      java.text.ParseException: Unparseable date: "Tuesday, 21 September 2010 19:10:30 o'clock GMT"
      at java.text.ParseException.<init>(ParseException.java:55)
      at java.text.DateFormat.parse(DateFormat.java:346)
      (...)

      Except for "o'clock", I think that this date should be parseable. I'm using IBM Java 1.6.0 SR8

        Attachments

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              luizluca@gmail.com Luiz Angelo Daros de Luca
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: