H. Hampel

Internal server error from presence messages

Discussion created by H. Hampel on Mar 24, 2015
Latest reply on Nov 3, 2015 by John Tikis

After some time  (minutes to hours) the java process is using 1 of 2 cpu's completely, then 2 of 2 and stops servicing. About this time I get in the error log (openfire_2015-03-23.deb):

 

2015.03.24 17:33:30 org.jivesoftware.openfire.nio.NIOConnection - Failed to deliver packet: <presence to="someone@domain.de/PC_Pidgin" from="talk@co

nference.domain.de/someone" type="unavailable"><priority>1</priority><c xmlns="http://jabber.org/protocol/caps" node="http://pidgin.im/" hash="sha-1" ver=

"AcN1/PEN8nq7AHD+9jpxMV4U6YM=" ext="voice-v1 camera-v1 video-v1"/><x xmlns="vcard-temp:x:update"><photo>56ae7e2105c682afccb6922cff2d497fd5dc2260</ph oto

></x><x xmlns="http://jabber.org/protocol/muc#user"><item jid="someone@domain.de/PC_Pidgin" affiliation="owner" role="none"/><status code="110"/><

/x></presence>

2015.03.24 17:33:30 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(RoutingTableI mpl.java:354)

        at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.jav a:239)

        at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:170)

        at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:84)

        at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:84)

        at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:65)

        at org.jivesoftware.openfire.muc.spi.LocalMUCRole.send(LocalMUCRole.java:266)

        at org.jivesoftware.openfire.muc.spi.LocalMUCRoom.broadcast(LocalMUCRoom.java:1153 )

        at org.jivesoftware.openfire.muc.cluster.BroadcastPresenceRequest$1.run(BroadcastP resenceRequest.java:71)

        at org.jivesoftware.openfire.muc.cluster.MUCRoomTask.execute(MUCRoomTask.java:85)

        at org.jivesoftware.openfire.muc.cluster.BroadcastPresenceRequest.run(BroadcastPre senceRequest.java:69)

        at org.jivesoftware.openfire.muc.spi.LocalMUCRoom.broadcastPresence(LocalMUCRoom.j ava:1106)

        at org.jivesoftware.openfire.muc.spi.LocalMUCRoom.leaveRoom(LocalMUCRoom.java:826)

        at org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:552)

        at org.jivesoftware.openfire.muc.spi.LocalMUCUser.process(LocalMUCUser.java:197)

        at org.jivesoftware.openfire.muc.spi.MultiUserChatServiceImpl.processPacket(MultiU serChatServiceImpl.java:324)

        at org.jivesoftware.openfire.component.InternalComponentManager$RoutableComponents .process(InternalComponentManager.java:591)

        at org.jivesoftware.openfire.spi.RoutingTableImpl.routeToComponent(RoutingTableImp l.java:401)

        at org.jivesoftware.openfire.spi.RoutingTableImpl.routePacket(RoutingTableImpl.jav a:243)

        at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:170)

        at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:84)

        at org.jivesoftware.openfire.handler.PresenceUpdateHandler.broadcastUnavailableFor DirectedPresences(PresenceUpdateHandler.java:489)

        at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateH andler.java:163)

        at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateH andler.java:137)

        at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateH andler.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.onConnectionClos e(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.NIOConnection.systemShutdown(NIOConnection.java:2 30)

        at org.jivesoftware.openfire.spi.LocalRoutingTable.stop(LocalRoutingTable.java:146 )

    at org.jivesoftware.openfire.spi.RoutingTableImpl.stop(RoutingTableImpl.java:953)
    at org.jivesoftware.openfire.XMPPServer.shutdownServer(XMPPServer.java:995)
    at org.jivesoftware.openfire.XMPPServer.access$800(XMPPServer.java:148)
    at org.jivesoftware.openfire.XMPPServer$ShutdownHookThread.run(XMPPServer.java:941 )

Outcomes