java.io.IOException: Closing session that seems to be stalled. Preventing OOM

Jive Software Open Source | Guus der Kinderen | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Daryl found this in the logfiles (five rotated log files full, all logged within a couple of seconds). The probable cause is {{StalledSessionsFilter}} trying to (asynchronously) close a session that is already being closed. {code}2015.03.19 19:18:49 org.jivesoftware.openfire.nio.ConnectionHandler - ConnectionHandler reports IOException for session: (0x000003D3: nio socket, server, /REDACTED:46248 => /REDACTED:5222) java.io.IOException: Closing session that seems to be stalled. Preventing OOM at org.jivesoftware.openfire.net.StalledSessionsFilter.filterWrite(StalledSessionsFilter.java:60) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:625) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$8(DefaultIoFilterChain.java:621) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:953) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:877) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:625) at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:618) at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:502) at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:447) at org.jivesoftware.openfire.nio.NIOConnection.deliver(NIOConnection.java:291) at org.jivesoftware.openfire.session.LocalClientSession.deliver(LocalClientSession.java:857) at org.jivesoftware.openfire.session.LocalSession.process(LocalSession.java:289) at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToLocalDomain(RoutingTableImpl.java:354) at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:239) at org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:138) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:80) at org.jivesoftware.openfire.net.SocketReader.processMessage(SocketReader.java:307) at org.jivesoftware.openfire.net.ServerSocketReader.access$301(ServerSocketReader.java:60) at org.jivesoftware.openfire.net.ServerSocketReader$3.run(ServerSocketReader.java:148) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code}

    Jive Software Open Source | 2 years ago | Guus der Kinderen
    java.io.IOException: Closing session that seems to be stalled. Preventing OOM
  2. 0

    Daryl found this in the logfiles (five rotated log files full, all logged within a couple of seconds). The probable cause is {{StalledSessionsFilter}} trying to (asynchronously) close a session that is already being closed. {code}2015.03.19 19:18:49 org.jivesoftware.openfire.nio.ConnectionHandler - ConnectionHandler reports IOException for session: (0x000003D3: nio socket, server, /REDACTED:46248 => /REDACTED:5222) java.io.IOException: Closing session that seems to be stalled. Preventing OOM at org.jivesoftware.openfire.net.StalledSessionsFilter.filterWrite(StalledSessionsFilter.java:60) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:625) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$8(DefaultIoFilterChain.java:621) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:953) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:877) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:625) at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:618) at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:502) at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:447) at org.jivesoftware.openfire.nio.NIOConnection.deliver(NIOConnection.java:291) at org.jivesoftware.openfire.session.LocalClientSession.deliver(LocalClientSession.java:857) at org.jivesoftware.openfire.session.LocalSession.process(LocalSession.java:289) at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToLocalDomain(RoutingTableImpl.java:354) at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:239) at org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:138) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:80) at org.jivesoftware.openfire.net.SocketReader.processMessage(SocketReader.java:307) at org.jivesoftware.openfire.net.ServerSocketReader.access$301(ServerSocketReader.java:60) at org.jivesoftware.openfire.net.ServerSocketReader$3.run(ServerSocketReader.java:148) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code}

    JIRA | 2 years ago | Guus der Kinderen
    java.io.IOException: Closing session that seems to be stalled. Preventing OOM
  3. 0

    Daryl found this in the logfiles (five rotated log files full, all logged within a couple of seconds). The probable cause is {{StalledSessionsFilter}} trying to (asynchronously) close a session that is already being closed. {code}2015.03.19 19:18:49 org.jivesoftware.openfire.nio.ConnectionHandler - ConnectionHandler reports IOException for session: (0x000003D3: nio socket, server, /REDACTED:46248 => /REDACTED:5222) java.io.IOException: Closing session that seems to be stalled. Preventing OOM at org.jivesoftware.openfire.net.StalledSessionsFilter.filterWrite(StalledSessionsFilter.java:60) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:625) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$8(DefaultIoFilterChain.java:621) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:953) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:877) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:625) at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:618) at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:502) at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:447) at org.jivesoftware.openfire.nio.NIOConnection.deliver(NIOConnection.java:291) at org.jivesoftware.openfire.session.LocalClientSession.deliver(LocalClientSession.java:857) at org.jivesoftware.openfire.session.LocalSession.process(LocalSession.java:289) at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToLocalDomain(RoutingTableImpl.java:354) at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:239) at org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:138) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:80) at org.jivesoftware.openfire.net.SocketReader.processMessage(SocketReader.java:307) at org.jivesoftware.openfire.net.ServerSocketReader.access$301(ServerSocketReader.java:60) at org.jivesoftware.openfire.net.ServerSocketReader$3.run(ServerSocketReader.java:148) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code}

    Jive Software Open Source | 2 years ago | Guus der Kinderen
    java.io.IOException: Closing session that seems to be stalled. Preventing OOM
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ADB Connection Error

    Stack Overflow | 4 years ago | Raveesh Lawrance
    java.io.IOException: An existing connection was forcibly closed by the remote host at sun.nio.ch.SocketDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(Unknown Source) at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source) at sun.nio.ch.IOUtil.read(Unknown Source) at sun.nio.ch.SocketChannelImpl.read(Unknown Source) at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:395) at com.android.ddmlib.Device.executeShellCommand(Device.java:462) at com.android.ddmuilib.logcat.LogCatReceiver$1.run(LogCatReceiver.java:110)
  6. 0

    java.lang.IllegalArgumentException: URI scheme is not "file"

    java-forums.org | 9 months ago
    java.io.IOException: Server returned HTTP response code: 403 for URL: at sun.net. at slideshowapplet.SlideshowApplet.doListofImagefiles (SlideshowApplet.java:461) at slideshowapplet.SlideshowApplet.init(SlideshowAppl et.java:180) at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Plugin2Manager.java:1658)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Closing session that seems to be stalled. Preventing OOM

      at org.jivesoftware.openfire.net.StalledSessionsFilter.filterWrite()
    2. org.jivesoftware.openfire
      StalledSessionsFilter.filterWrite
      1. org.jivesoftware.openfire.net.StalledSessionsFilter.filterWrite(StalledSessionsFilter.java:60)
      1 frame
    3. Apache MINA Core
      AbstractIoSession.write
      1. org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:625)
      2. org.apache.mina.core.filterchain.DefaultIoFilterChain.access$8(DefaultIoFilterChain.java:621)
      3. org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:953)
      4. org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:877)
      5. org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:625)
      6. org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:618)
      7. org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:502)
      8. org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:447)
      8 frames
    4. org.jivesoftware.openfire
      ServerSocketReader$3.run
      1. org.jivesoftware.openfire.nio.NIOConnection.deliver(NIOConnection.java:291)
      2. org.jivesoftware.openfire.session.LocalClientSession.deliver(LocalClientSession.java:857)
      3. org.jivesoftware.openfire.session.LocalSession.process(LocalSession.java:289)
      4. org.jivesoftware.openfire.spi.RoutingTableImpl.routeToLocalDomain(RoutingTableImpl.java:354)
      5. org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.java:239)
      6. org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:138)
      7. org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:80)
      8. org.jivesoftware.openfire.net.SocketReader.processMessage(SocketReader.java:307)
      9. org.jivesoftware.openfire.net.ServerSocketReader.access$301(ServerSocketReader.java:60)
      10. org.jivesoftware.openfire.net.ServerSocketReader$3.run(ServerSocketReader.java:148)
      10 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames