java.lang.IllegalStateException: Connection closed

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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}
    via by Daryl Herzmann,
  • 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}
    via by Daryl Herzmann,
  • 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}
    via by Daryl Herzmann,
    • 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)
    No Bugmate found.