powered by Jive Software

Users getting kicked out of my chatting server

Hi all,

I am using Openfire 3.1 along with an applicaton with Android aSmack library of version 4.0.3.

I know my Openfire and the aSmack library is outdated but it’s been working very fine until now.

But suddenly, I check the Debug log and these Exceptions appear and kick off my users out of my chatting server:

[Debug log]

2017.05.29 15:42:28 org.jivesoftware.openfire.nio.NIOConnection - Error delivering raw text:

<stream:error xmlns:stream=“http://etherx.jabber.org/streams”></stream:error>

java.io.IOException: Connection reset/closed by peer

at org.jivesoftware.openfire.nio.NIOConnection.deliverRawText(NIOConnection.java:3 81)

at org.jivesoftware.openfire.nio.ConnectionHandler.exceptionCaught(ConnectionHandl er.java:154)

at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaugh t(DefaultIoFilterChain.java:672)

at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(D efaultIoFilterChain.java:461)

at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilt erChain.java:47)

at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaug ht(DefaultIoFilterChain.java:760)

at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapte r.java:102)

at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(D efaultIoFilterChain.java:461)

at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilt erChain.java:47)

at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaug ht(DefaultIoFilterChain.java:760)

at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapte r.java:102)

at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(D efaultIoFilterChain.java:461)

at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilt erChain.java:47)

at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaug ht(DefaultIoFilterChain.java:760)

at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:93)

at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)

at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(Ordere dThreadPoolExecutor.java:769)

at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(Order edThreadPoolExecutor.java:761)

at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThr eadPoolExecutor.java:703)

at java.lang.Thread.run(Unknown Source)

2017.05.29 15:42:28 org.jivesoftware.openfire.nio.NIOConnection - Error delivering raw text:

</stream:stream>

java.io.IOException: Connection reset/closed by peer

at org.jivesoftware.openfire.nio.NIOConnection.deliverRawText(NIOConnection.java:3 81)

at org.jivesoftware.openfire.nio.NIOConnection.close(NIOConnection.java:246)

at org.jivesoftware.openfire.nio.NIOConnection.close(NIOConnection.java:224)

at org.jivesoftware.openfire.nio.NIOConnection.deliverRawText(NIOConnection.java:3 96)

at org.jivesoftware.openfire.nio.ConnectionHandler.exceptionCaught(ConnectionHandl er.java:154)

at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.exceptionCaugh t(DefaultIoFilterChain.java:672)

at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(D efaultIoFilterChain.java:461)

at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilt erChain.java:47)

at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaug ht(DefaultIoFilterChain.java:760)

at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapte r.java:102)

at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(D efaultIoFilterChain.java:461)

at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilt erChain.java:47)

at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaug ht(DefaultIoFilterChain.java:760)

at org.apache.mina.core.filterchain.IoFilterAdapter.exceptionCaught(IoFilterAdapte r.java:102)

at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextExceptionCaught(D efaultIoFilterChain.java:461)

at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1100(DefaultIoFilt erChain.java:47)

at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.exceptionCaug ht(DefaultIoFilterChain.java:760)

at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:93)

at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)

at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(Ordere dThreadPoolExecutor.java:769)

at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(Order edThreadPoolExecutor.java:761)

at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThr eadPoolExecutor.java:703)

at java.lang.Thread.run(Unknown Source)

Does anyone have a clue about this exception? Does it relate to the idle client connection time and sending XMPP pings to idle clients?

Currently my client setting is set to 3600 sec for idle clients until the connection closes, and set to sending XMPP pings to idle clients.

I need a desperate help on this. Thank you!

Error logs suggests that you have restared your server if not then is the same user login from any other place?? there is one properties in openfire it will get kick out the older session if the same user logged in from other place.

Hi Hiren,

thanks for the reply. I haven’t restarted my server, but I was just looking at the debug log for a while.

Maybe as you suggested, I would have to change the conflict policy and watch again if that occurs again.

But I am almost certain that won’t be the cause as we make our clients log in to our server their own unique username.in one app.

please post your debug log it could help me to suggest you better way

The log that I have originally posted is the actual debug log when the user’s session is being disconnected for a reason that I don’t know why.