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

jdbcEventWriter: Failed to convert time to Timestamp

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.6.11
    • 15.0.0
    • Security Level: Default (Default Security Scheme)
    • Operating System: Windows XP/2003 (NT 5.1)
      Platform: PC
    • 3805

    Description

      It seems that your code is converting Date to string and back. It fails when locales are not set to EN because it cant parse string back to date

      2010-05-27 22:02:49,421 WARN [EventHandlerPool-fiber3] JdbcEventWriter: Failed to convert time Ä?tvrtek, 27. kvÄ›ten 2010 20:02:49 GMT to Timestamp, setting current time instead. Exception: java.text.ParseException: Unparseable date: "Ä?tvrtek, 27. kvÄ›ten 2010 20:02:49 GMT"
      java.text.ParseException: Unparseable date: "Ä?tvrtek, 27. kvÄ›ten 2010 20:02:49 GMT"
      at java.text.DateFormat.parse(DateFormat.java:352)
      at org.opennms.netmgt.EventConstants.parseToDate(EventConstants.java:906)
      at org.opennms.netmgt.eventd.processor.AbstractJdbcPersister.getEventTime(AbstractJdbcPersister.java:274)
      at org.opennms.netmgt.eventd.processor.JdbcEventWriter.insertEvent(JdbcEventWriter.java:191)
      at org.opennms.netmgt.eventd.processor.JdbcEventWriter.process(JdbcEventWriter.java:118)
      at org.opennms.netmgt.eventd.DefaultEventHandlerImpl$EventHandlerRunnable.run(DefaultEventHandlerImpl.java:134)
      at org.opennms.core.concurrent.RunnableConsumerThreadPool$FiberThreadImpl.run(RunnableConsumerThreadPool.java:422)
      at java.lang.Thread.run(Thread.java:811)

      Attachments

        Activity

          People

            seth Seth Leger
            hsn@sendmail.cz Radim Kolar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: