powered by Jive Software

Xmpp Lost connection

Server :Openfire 4.3.2
Client(Win): qxmpp 1.1
Client(Mac):XMPPFramework 4.0

Under the same network (WiFi), some accounts suddenly lose their connection and the following log appears. How to solve this problem.

2020.01.16 13:23:34 org.apache.mina.core.filterchain.IoFilterEvent - Firing a MESSAGE_RECEIVED event for session 161
2020.01.16 13:23:34 org.apache.mina.filter.codec.ProtocolCodecFilter - Processing a MESSAGE_RECEIVED for session 161
2020.01.16 13:23:34 org.apache.mina.filter.ssl.SslFilter - Session Server161: Writing Message : WriteRequest: HeapBuffer[pos=0 lim=103 cap=4096: 3C 69 71 20 74 79 70 65 3D 22 72 65 73 75 6C 74…]
2020.01.16 13:23:34 org.apache.mina.core.filterchain.IoFilterEvent - Event MESSAGE_RECEIVED has been fired for session 161
2020.01.16 13:23:34 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event MESSAGE_SENT to session 161
Queue : [MESSAGE_SENT, ]

2020.01.16 13:23:34 org.apache.mina.core.filterchain.IoFilterEvent - Firing a MESSAGE_SENT event for session 161
2020.01.16 13:23:34 org.apache.mina.core.filterchain.IoFilterEvent - Event MESSAGE_SENT has been fired for session 161
2020.01.16 13:23:34 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event EXCEPTION_CAUGHT to session 152
Queue : [EXCEPTION_CAUGHT, ]

2020.01.16 13:23:34 org.apache.mina.core.filterchain.IoFilterEvent - Firing a EXCEPTION_CAUGHT event for session 152
2020.01.16 13:23:34 org.apache.mina.filter.ssl.SslHandler - Unexpected exception from SSLEngine.closeInbound().
javax.net.ssl.SSLException: Inbound closed before receiving peer’s close_notify: possible truncation attack?
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) ~[?:1.8.0_191]
at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1647) ~[?:1.8.0_191]
at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1615) ~[?:1.8.0_191]
at sun.security.ssl.SSLEngineImpl.closeInbound(SSLEngineImpl.java:1542) ~[?:1.8.0_191]
at org.apache.mina.filter.ssl.SslHandler.destroy(SslHandler.java:204) [mina-core-2.0.7.jar:?]
at org.apache.mina.filter.ssl.SslFilter.sessionClosed(SslFilter.java:439) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:382) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$900(DefaultIoFilterChain.java:47) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:750) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.filterchain.IoFilterAdapter.sessionClosed(IoFilterAdapter.java:88) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:382) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireSessionClosed(DefaultIoFilterChain.java:375) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.service.IoServiceListenerSupport.fireSessionDestroyed(IoServiceListenerSupport.java:244) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.polling.AbstractPollingIoProcessor.removeNow(AbstractPollingIoProcessor.java:600) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.polling.AbstractPollingIoProcessor.removeSessions(AbstractPollingIoProcessor.java:560) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$800(AbstractPollingIoProcessor.java:67) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1132) [mina-core-2.0.7.jar:?]
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) [mina-core-2.0.7.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_191]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
2020.01.16 13:23:34 org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event SESSION_CLOSED to session 152
Queue : [SESSION_CLOSED, ]

2020.01.16 13:23:34 org.jivesoftware.openfire.spi.RoutingTableImpl - Adding client route cod_60000161@testdomain.com/DESKTOP

debug.zip (191.0 KB)

The following error is displayed in the log

2020.01.17 21:51:34 DEBUG [NioProcessor-4]: org.apache.mina.filter.ssl.SslHandler - Unexpected exception from SSLEngine.closeInbound().
javax.net.ssl.SSLException: Inbound closed before receiving peer’s close_notify: possible truncation attack?
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) ~[?:1.8.0_191]
at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1647) ~[?:1.8.0_191]
at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1615) ~[?:1.8.0_191]
at sun.security.ssl.SSLEngineImpl.closeInbound(SSLEngineImpl.java:1542) ~[?:1.8.0_191]
at org.apache.mina.filter.ssl.SslHandler.destroy(SslHandler.java:204) [mina-core-2.0.7.jar:?]
at org.apache.mina.filter.ssl.SslFilter.sessionClosed(SslFilter.java:439) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:382) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$900(DefaultIoFilterChain.java:47) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:750) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.filterchain.IoFilterAdapter.sessionClosed(IoFilterAdapter.java:88) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:382) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireSessionClosed(DefaultIoFilterChain.java:375) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.service.IoServiceListenerSupport.fireSessionDestroyed(IoServiceListenerSupport.java:244) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.polling.AbstractPollingIoProcessor.removeNow(AbstractPollingIoProcessor.java:600) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.polling.AbstractPollingIoProcessor.removeSessions(AbstractPollingIoProcessor.java:560) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$800(AbstractPollingIoProcessor.java:67) [mina-core-2.0.7.jar:?]
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1132) [mina-core-2.0.7.jar:?]
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) [mina-core-2.0.7.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_191]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
2020.01.17 21:51:34 DEBUG [NioProcessor-4]: org.apache.mina.filter.executor.OrderedThreadPoolExecutor - Adding event SESSION_CLOSED to session 79
Queue : [SESSION_CLOSED, ]