powered by Jive Software

org.jivesoftware.openfire.muc.HistoryRequest - Error parsing date from history management

Hi Experts,
I know https://issues.igniterealtime.org/browse/OF-600 has already been fixed in 3.8.0.
But in our embedded Openfire 4.3.1, the date parsing exception still can be seen.

Stack trace:
2019.06.25 10:05:21 org.jivesoftware.openfire.muc.HistoryRequest - Error parsing date from history management
java.text.ParseException: Date String could not be parsed
at org.jivesoftware.util.XMPPDateTimeFormat.parseString(XMPPDateTimeFormat.java:124) ~[xmppserver-4.3.1.jar:?]
at org.jivesoftware.openfire.muc.HistoryRequest.(HistoryRequest.java:69) [xmppserver-4.3.1.jar:?]
at org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:481) [xmppserver-4.3.1.jar:?]
at org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:180) [xmppserver-4.3.1.jar:?]
at org.jivesoftware.openfire.muc.spi.MultiUserChatServiceImpl.processPacket(MultiUserChatServiceImpl.java:370) [xmppserver-4.3.1.jar:?]
at org.jivesoftware.openfire.component.InternalComponentManager$RoutableComponents.process(InternalComponentManager.java:602) [xmppserver-4.3.1.jar:?]
at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToComponent(RoutingTableImpl.java:403) [xmppserver-4.3.1.jar:?]
at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:245) [xmppserver-4.3.1.jar:?]
at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:162) [xmppserver-4.3.1.jar:?]
at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:76) [xmppserver-4.3.1.jar:?]
at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84) [xmppserver-4.3.1.jar:?]
at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:118) [xmppserver-4.3.1.jar:?]
at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:69) [xmppserver-4.3.1.jar:?]
at org.jivesoftware.openfire.http.HttpSession.sendPendingPackets(HttpSession.java:622) [xmppserver-4.3.1.jar:?]
at org.jivesoftware.openfire.http.HttpSession$HttpPacketSender.run(HttpSession.java:1251) [xmppserver-4.3.1.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_202]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_202]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]

Can you share the stanza (or just the date representation) that is being processed please?

Sorry, I only find this error in log, I don’t know when it happened.

I’m guessing it is caused by a misbehaving client, that sends invalid data.