Quantcast
Channel: Ignite Realtime: Message List
Viewing all articles
Browse latest Browse all 12162

Re: ParseException in message delay stamp due to microseconds

$
0
0

No, this is in Java 1.7 at the moment. Stacktrace below. It crashes because it attempts to read the fourth digit in the microsecond stamp as a time zone identifier.

 

java.text.ParseException: Unparseable date: "2014-09-16T15:14:13.123456+0000"

  at java.text.DateFormat.parse(DateFormat.java:357)

  at org.jxmpp.util.XmppDateTime$DateFormatType.parse(XmppDateTime.java:103)

  at org.jxmpp.util.XmppDateTime.parseXEP0082Date(XmppDateTime.java:159)

  at org.jxmpp.util.XmppDateTime.parseDate(XmppDateTime.java:209)

  at org.jxmpp.util.XmppDateTimeTest.testParseMicroseconds(XmppDateTimeTest.java:235 )


Viewing all articles
Browse latest Browse all 12162

Trending Articles