Uploaded image for project: 'Architecture for Learning Enabled Correlation (ALEC)'
  1. Architecture for Learning Enabled Correlation (ALEC)
  2. ALEC-81

OpenNMS Kafka - Format dates in ISO-8601

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.2
    • Labels:
      None

      Description

      When running against a system patched with NMS-12263, situations are not created and the following can be found in ipc.log on OpenNMS:

      2019-10-21 21:27:57,115 WARN  [kafka-consumer-54] o.o.c.i.s.k.s.KafkaMessageConsumerManager: Unexpected exception while dispatching message
      java.lang.RuntimeException: javax.xml.bind.UnmarshalException
       - with linked exception:
      [Exception [EclipseLink-3001] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.ConversionException
      Exception Description: The object [Monday, 21 October 2019 21:27:57 o'clock CDT], of class [class java.lang.String], could not be converted to [class java.util.Date].
      Internal Exception: java.time.format.DateTimeParseException: Text 'Monday, 21 October 2019 21:27:57 o'clock CDT' could not be parsed at index 0]
              at org.opennms.core.xml.XmlHandler.unmarshal(XmlHandler.java:87) ~[org.opennms.core.xml-25.0.0-SNAPSHOT.jar:?]
              at org.opennms.core.ipc.sink.xml.AbstractXmlSinkModule.unmarshal(AbstractXmlSinkModule.java:64) ~[org.opennms.core.ipc.sink.xml-25.0.0-SNAPSHOT.jar:?]
              at org.opennms.core.ipc.sink.kafka.server.KafkaMessageConsumerManager$KafkaConsumerRunner.run(KafkaMessageConsumerManager.java:196) [org.opennms.core.ipc.sink.kafka.server-25.0.0-SNAPSHOT.jar:?]
       

        Attachments

          Activity

            People

            • Assignee:
              mbrooks Matthew Brooks
              Reporter:
              j-white Jesse White
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: