4 Replies Latest reply on Jun 1, 2017 5:27 PM by Jack Choi

    Users getting kicked out of my chatting server

    Jack Choi

      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"><internal-server-error xmlns="urn:ietf:params:xml:ns:xmpp-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!