Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-270

2 digits milliseconds can not be parsed in notification eventTime

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • None
    • None
    • netconf
    • None
    • Operating System: Linux
      Platform: PC

    • 6645

      When I use netconf to recevice and process our device's notification, I
      found that the EvnetTime cound not be parsed.

      The EventTinme is like:

      ?eventTime?2016-09-05T07:11:39.18Z?/eventTime?

      But the controller throw an expection:

      Unable to parse event time from XmlElement

      {name='eventTime', namespace='urn:ietf:params:xml:ns:netconf:notification:1.0'}

      . Setting time
      to Thu Jan 01 08:00:00 CST 1970
      java.text.ParseException: Unparseable date: "2016-09-05T07:11:39.18Z"
      at java.text.DateFormat.parse(DateFormat.java:357)
      at
      org.opendaylight.controller.sal.connect.netconf.schema.mapping.NetconfMessageTransformer$3$1.parse(NetconfMessageTransformer.java:157)

      I find that when the 2 digits milliseconds can not be parsed and 6 digits
      milliseconds can be parsed.

            miroslav.kovac@pantheon.tech Miroslav Kovac
            hou.jin@zte.com.cn Hou Jin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: