java.lang.IllegalStateException: Connection closed

Jive Software Open Source | Daryl Herzmann | 2 years ago
  1. 0

    Using the current master build, I see tracebacks like so. These happen when by coded bot quickly (and probably uncleanly) disconnects from the server. {code} 2015.04.10 12:18:53 org.jivesoftware.openfire.nio.NIOConnection - Failed to deliver packet: <presence type="unavailable" from="iembot_ingest@weather.im/pirep_20150407194011" to="iembot_ingest@weather.im/new_watch_20150324195807"/> 2015.04.10 12:18:53 org.jivesoftware.openfire.session.LocalSession - Internal server error java.lang.IllegalStateException: Connection closed at org.jivesoftware.openfire.nio.NIOConnection.deliver(NIOConnection.java:264) 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.SessionManager.broadcastPresenceToOtherResources(SessionManager.java:663) at org.jivesoftware.openfire.roster.Roster.broadcastPresence(Roster.java:642) at org.jivesoftware.openfire.handler.PresenceUpdateHandler.broadcastUpdate(PresenceUpdateHandler.java:308) at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:162) at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:137) at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:201) at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:148) at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:84) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84) at org.jivesoftware.openfire.SessionManager$ClientSessionListener.onConnectionClose(SessionManager.java:1242) at org.jivesoftware.openfire.nio.NIOConnection.notifyCloseListeners(NIOConnection.java:240) at org.jivesoftware.openfire.nio.NIOConnection.close(NIOConnection.java:222) at org.jivesoftware.openfire.nio.ConnectionHandler.sessionClosed(ConnectionHandler.java:115) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.sessionClosed(DefaultIoFilterChain.java:793) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:504) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$2(DefaultIoFilterChain.java:500) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:923) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionClosed(IoFilterAdapter.java:88) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:504) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$2(DefaultIoFilterChain.java:500) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:923) at org.apache.mina.filter.codec.ProtocolCodecFilter.sessionClosed(ProtocolCodecFilter.java:367) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:504) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$2(DefaultIoFilterChain.java:500) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:923) at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:109) at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:769) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:761) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:703) at java.lang.Thread.run(Thread.java:745) {code}

    Jive Software Open Source | 2 years ago | Daryl Herzmann
    java.lang.IllegalStateException: Connection closed
  2. 0

    Using the current master build, I see tracebacks like so. These happen when by coded bot quickly (and probably uncleanly) disconnects from the server. {code} 2015.04.10 12:18:53 org.jivesoftware.openfire.nio.NIOConnection - Failed to deliver packet: <presence type="unavailable" from="iembot_ingest@weather.im/pirep_20150407194011" to="iembot_ingest@weather.im/new_watch_20150324195807"/> 2015.04.10 12:18:53 org.jivesoftware.openfire.session.LocalSession - Internal server error java.lang.IllegalStateException: Connection closed at org.jivesoftware.openfire.nio.NIOConnection.deliver(NIOConnection.java:264) 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.SessionManager.broadcastPresenceToOtherResources(SessionManager.java:663) at org.jivesoftware.openfire.roster.Roster.broadcastPresence(Roster.java:642) at org.jivesoftware.openfire.handler.PresenceUpdateHandler.broadcastUpdate(PresenceUpdateHandler.java:308) at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:162) at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:137) at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:201) at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:148) at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:84) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84) at org.jivesoftware.openfire.SessionManager$ClientSessionListener.onConnectionClose(SessionManager.java:1242) at org.jivesoftware.openfire.nio.NIOConnection.notifyCloseListeners(NIOConnection.java:240) at org.jivesoftware.openfire.nio.NIOConnection.close(NIOConnection.java:222) at org.jivesoftware.openfire.nio.ConnectionHandler.sessionClosed(ConnectionHandler.java:115) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.sessionClosed(DefaultIoFilterChain.java:793) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:504) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$2(DefaultIoFilterChain.java:500) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:923) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionClosed(IoFilterAdapter.java:88) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:504) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$2(DefaultIoFilterChain.java:500) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:923) at org.apache.mina.filter.codec.ProtocolCodecFilter.sessionClosed(ProtocolCodecFilter.java:367) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:504) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$2(DefaultIoFilterChain.java:500) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:923) at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:109) at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:769) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:761) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:703) at java.lang.Thread.run(Thread.java:745) {code}

    JIRA | 2 years ago | Daryl Herzmann
    java.lang.IllegalStateException: Connection closed
  3. 0

    Using the current master build, I see tracebacks like so. These happen when by coded bot quickly (and probably uncleanly) disconnects from the server. {code} 2015.04.10 12:18:53 org.jivesoftware.openfire.nio.NIOConnection - Failed to deliver packet: <presence type="unavailable" from="iembot_ingest@weather.im/pirep_20150407194011" to="iembot_ingest@weather.im/new_watch_20150324195807"/> 2015.04.10 12:18:53 org.jivesoftware.openfire.session.LocalSession - Internal server error java.lang.IllegalStateException: Connection closed at org.jivesoftware.openfire.nio.NIOConnection.deliver(NIOConnection.java:264) 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.SessionManager.broadcastPresenceToOtherResources(SessionManager.java:663) at org.jivesoftware.openfire.roster.Roster.broadcastPresence(Roster.java:642) at org.jivesoftware.openfire.handler.PresenceUpdateHandler.broadcastUpdate(PresenceUpdateHandler.java:308) at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:162) at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:137) at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:201) at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:148) at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:84) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84) at org.jivesoftware.openfire.SessionManager$ClientSessionListener.onConnectionClose(SessionManager.java:1242) at org.jivesoftware.openfire.nio.NIOConnection.notifyCloseListeners(NIOConnection.java:240) at org.jivesoftware.openfire.nio.NIOConnection.close(NIOConnection.java:222) at org.jivesoftware.openfire.nio.ConnectionHandler.sessionClosed(ConnectionHandler.java:115) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.sessionClosed(DefaultIoFilterChain.java:793) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:504) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$2(DefaultIoFilterChain.java:500) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:923) at org.apache.mina.core.filterchain.IoFilterAdapter.sessionClosed(IoFilterAdapter.java:88) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:504) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$2(DefaultIoFilterChain.java:500) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:923) at org.apache.mina.filter.codec.ProtocolCodecFilter.sessionClosed(ProtocolCodecFilter.java:367) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:504) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$2(DefaultIoFilterChain.java:500) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:923) at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:109) at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:769) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:761) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:703) at java.lang.Thread.run(Thread.java:745) {code}

    Jive Software Open Source | 2 years ago | Daryl Herzmann
    java.lang.IllegalStateException: Connection closed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [OF-903] ISE attempting to write data to a closed/closing session - Jive Software Open Source

    igniterealtime.org | 11 months ago
    java.lang.IllegalStateException: Connection closed

    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.lang.IllegalStateException

      Connection closed

      at org.jivesoftware.openfire.nio.NIOConnection.deliver()
    2. org.jivesoftware.openfire
      ConnectionHandler.sessionClosed
      1. org.jivesoftware.openfire.nio.NIOConnection.deliver(NIOConnection.java:264)
      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.SessionManager.broadcastPresenceToOtherResources(SessionManager.java:663)
      7. org.jivesoftware.openfire.roster.Roster.broadcastPresence(Roster.java:642)
      8. org.jivesoftware.openfire.handler.PresenceUpdateHandler.broadcastUpdate(PresenceUpdateHandler.java:308)
      9. org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:162)
      10. org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:137)
      11. org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:201)
      12. org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:148)
      13. org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:84)
      14. org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84)
      15. org.jivesoftware.openfire.SessionManager$ClientSessionListener.onConnectionClose(SessionManager.java:1242)
      16. org.jivesoftware.openfire.nio.NIOConnection.notifyCloseListeners(NIOConnection.java:240)
      17. org.jivesoftware.openfire.nio.NIOConnection.close(NIOConnection.java:222)
      18. org.jivesoftware.openfire.nio.ConnectionHandler.sessionClosed(ConnectionHandler.java:115)
      18 frames
    3. Apache MINA Core
      OrderedThreadPoolExecutor$Worker.run
      1. org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.sessionClosed(DefaultIoFilterChain.java:793)
      2. org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:504)
      3. org.apache.mina.core.filterchain.DefaultIoFilterChain.access$2(DefaultIoFilterChain.java:500)
      4. org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:923)
      5. org.apache.mina.core.filterchain.IoFilterAdapter.sessionClosed(IoFilterAdapter.java:88)
      6. org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:504)
      7. org.apache.mina.core.filterchain.DefaultIoFilterChain.access$2(DefaultIoFilterChain.java:500)
      8. org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:923)
      9. org.apache.mina.filter.codec.ProtocolCodecFilter.sessionClosed(ProtocolCodecFilter.java:367)
      10. org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSessionClosed(DefaultIoFilterChain.java:504)
      11. org.apache.mina.core.filterchain.DefaultIoFilterChain.access$2(DefaultIoFilterChain.java:500)
      12. org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.sessionClosed(DefaultIoFilterChain.java:923)
      13. org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:109)
      14. org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)
      15. org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:769)
      16. org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:761)
      17. org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:703)
      17 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame