Projects tigase _server server-core Issues #1168
NPE in StreamManagementIOProcessor.processOutgoing (#1168)
wojciech.kapcia@tigase.net opened 4 years ago
[2020-07-09 17:52:22:293] [SEVERE  ] [              in_5-c2s ] AbstractMessageReceiver$QueueListener.run(): [in_5-c2s] Exception during packet processing: from=sess-man@9585556aacac, to=c2s@9585556aacac/127.0.0.1_5222_127.0.0.1_34102, DATA=<presence to="admin@localhost" xmlns="jabber:client" from="admin@localhost/2095755800-tigase-1"><c node="http://tigase.org/jaxmpp" hash="sha-1" xmlns="http://jabber.org/protocol/caps" ver="mg5bXbOeu1848vxdgu3jELgbQF8="/></presence>, SIZE=231, XMLNS=jabber:client, PRIORITY=PRESENCE, PERMISSION=ADMIN, TYPE=null
java.lang.NullPointerException
        at tigase.server.xmppclient.StreamManagementIOProcessor.processOutgoing(StreamManagementIOProcessor.java:243)
        at tigase.xmpp.XMPPIOService.addPacketToSend(XMPPIOService.java:125)
        at tigase.server.ConnectionManager.writePacketToSocket(ConnectionManager.java:592)
        at tigase.server.ConnectionManager.writePacketToSocket(ConnectionManager.java:861)
        at tigase.server.xmppclient.ClientConnectionManager.processPacket(ClientConnectionManager.java:131)
        at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessageReceiver.java:1405)
Andrzej Wójcik (Tigase) commented 4 years ago

Fixed NPE by sending error back, as in this case waiting packets would already send errors before.

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