Error in STREAM_MOVED command

Mauro Carrio
Added about 5 years ago


We have implemented StreamManagement and I often get this error:


2014-03-02 09:34:52.312 [in_7-sess-man]    AbstractMessageReceiver$  SEVERE: [in_7-sess-man] Exception during packet processing: from=c2s@localhost.localdomain/, to=sess-man@localhost.localdomain, DATA=<iq to="sess-man@localhost.localdomain" from="c2s@localhost.localdomain/" id="moved" type="set"><command node="STREAM_MOVED" xmlns=""><x xmlns="jabber:x:data" type="submit"><field var="old-conn-jid"><value>c2s@localhost.localdomain/</value></field></x></command></iq>, SIZE=377, XMLNS=null, PRIORITY=NORMAL, PERMISSION=NONE, TYPE=set
    at tigase.server.xmppsession.SessionManager.processCommand(
    at tigase.server.xmppsession.SessionManager.processPacket(
    at tigase.server.AbstractMessageReceiver$

Looking at that line in code I supposed that the oldConn object is null and there is no condition that validates that, but which could be the conditions to raise the error? Not always happens.

I'm using the last commit of on Tigase 5.2.0 release.

Thanks a lot.

Replies (1)

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 5 years ago

I've never received this error on our installation, but it is possible only if ClientConnectionManager still keeps information about possibility to resume session which was somehow removed from map of available sessions in SessionManager. It is hard to tell what removed this resumable connection from list of active sessions in SessionManager. In upcoming version I will add proper check if session we try to resume is still available in SessionManager which will return failure to client if session is not available.