Projects tigase _server server-core Issues #1167
NPE in XMPPProcessorAbstract.processToUserPacket (#1167)
wojciech.kapcia@tigase.net opened 4 years ago
[2020-07-09 18:02:31:366] [SEVERE  ] [default-threads-pool-proc-157 ] WorkerThread.run()        : tigase.server.xmppsession.SessionManager$ProcessorWorkerThread,(default-threads-pool-proc-157) Exception during packet processing: from=localhost, to=sess-man@9585556aacac, DATA=<iq from="localhost" type="result" to="jaxmpp__euoq2y0533@localhost/2095755800-tigase-317" xmlns="jabber:client" id="HbFV7mJKZhQLLS7gBtobNZt"><query xmlns="http://jabber.org/protocol/disco#info"><identity type="router" category="component" name="Tigase ver. 8.1.0-SNAPSHOT-b10803/960d5e95"/><identity type="im" category="server" name="Tigase ver. 8.1.0-SNAPSHOT-b10803/960d5e95"/><feature var="http://jabber.org/protocol/commands"/><x xmlns="jabber:x:data" type="result"><field var="FORM_TYPE" type="hidden"><value>http://jabber.org/network/serverinfo</value></field><field var="abuse-addresses" type="text-multi"><value>mailto:abuse@localhost</value><value>xmpp:abuse@localhost</value></field></x><feature var="urn:xmpp:carbons:2"/><feature var="http://jabber.org/protocol/stats"/><feature var="jabber:iq:auth"/><feature var="vcard-temp"/><feature var="http://jabber.org/protocol/amp"/><feature var="msgoffline"/><feature var="http://jabber.org/protocol/disco#info"/><feature var="http://jabber.org/protocol/disco#items"/>< ... , SIZE=2300, XMLNS=jabber:client, PRIORITY=NORMAL, PERMISSION=AUTH, TYPE=result
java.lang.NullPointerException
        at tigase.xmpp.XMPPProcessorAbstract.processToUserPacket(XMPPProcessorAbstract.java:285)
        at tigase.xmpp.XMPPProcessorAbstract.process(XMPPProcessorAbstract.java:126)
        at tigase.xmpp.impl.ServiceDiscovery.process(ServiceDiscovery.java:164)
        at tigase.server.xmppsession.SessionManager$ProcessorWorkerThread.process(SessionManager.java:2640)
        at tigase.util.processing.WorkerThread.run(WorkerThread.java:67)

It seems that the session disappeared during packet processing as tigase.xmpp.XMPPProcessorAbstract#process seems to have correct check?

Andrzej Wójcik (Tigase) commented 4 years ago

Added protection against NPE

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
tigase-server-8.1.0
Spent time
30m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#1167
Please wait...
Page is in error, reload to recover