powered by Jive Software

[4.1.5] get null from PacketCollector.nextResult() when I send msg have delay extension

Smack [4.1.5]
Openfire [3.7.1]
Paraya [5.181]

I get null (Packet) from PacketCollector.nextResult() when I send msg have delay extension.

Environment.
I replace library smack 4.1.5 on module payara5.
I want to request message from A(payara) to B(java app)

A(payara) --> smack4.1.5
B(java app) --> smack2.xx

Step. Error
A send request msg to B (++ have delay)
B send back msg to A ** but A receive null

Step. no Error
A send request msg to B (++ no delay)
B send back msg to A (success)

Error in payara

Message Packet from my debug on Payara (A)

out.[1539133453354]<message to='msgbroker@moo' id='O5DZ2-344' type='chat'><body> Send Request  to B</body><thread>0ad149a7-40c6-4d5b-8737-7f8897d8f8ef</thread><properties xmlns='http://www.jivesoftware.com/xmlns/xmpp/properti      es'><property><name>packageid</name><value type='string'>1121564853-1539133453353-1518372793218229224</value></property><property><name>type</name><value type='string'>request</value></property></properties><delay xmlns='urn:xmpp:delay' stamp='2018-10-10T00:36:36.000+00:00' from='moo'></delay></message>
 
in.[1539133461736]null

*** Please Help Me ***

In short term solution.
I restart Openfire server. A don’t send delay anymore (in day)
in tomorrow. A send delay again … T-T
I must restart server every day in morning

As a quick workaround: It is possible to register a ParsingExceptionCallback to prevent crashes when parsing incoming elements.

You should really consider upgrading Openfire (4.2.3) as well as Smack (4.3.1), as there are many bugs and security issues being fixed in the mean time.