0 Replies Latest reply on Nov 9, 2016 11:58 PM by adi

    Openfire 3.10.2 with websocket 1.0.0

    adi

      lately i have been experiencing this errors with websocket.

       

      09:54:19,371 ERROR XmppWebSocket:123 - Error detected; session: WebSocketSession[websocket=JettyAnnotatedEventDriver[org.jivesoftware.openfire. websocket.XmppWebSocket@2a68857a],behavior=SERVER,connection=WebSocketServerConn ection@7d00776c{FILLING}{f=Flusher[queueSize=0,aggregateSize=0,failure=org.eclip se.jetty.io.EofException],g=Generator[SERVER,validating,+rsv1],p=Parser@5204f615 [ExtensionStack,s=START,c=0,len=22,f=TEXT[len=0,fin=true,rsv=1..,masked=true],p= WebSocketPolicy@2ca9a5e7[behavior=SERVER,maxTextMessageSize=65536,maxTextMessage BufferSize=32768,maxBinaryMessageSize=65536,maxBinaryMessageBufferSize=32768,asy ncWriteTimeout=60000,idleTimeout=300000,inputBufferSize=4096]]},remote=WebSocket RemoteEndpoint@4284b65d[batching=true],incoming=JettyAnnotatedEventDriver[org.ji vesoftware.openfire.websocket.XmppWebSocket@2a68857a],outgoing=ExtensionStack[qu eueSize=0,extensions=[permessage-deflate],incoming=org.eclipse.jetty.websocket.c ommon.extensions.compress.PerMessageDeflateExtension,outgoing=org.eclipse.jetty. websocket.common.extensions.compress.PerMessageDeflateExtension]]

      org.eclipse.jetty.io.EofException

        at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:192)

        at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:408)

        at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:302)

        at org.eclipse.jetty.io.AbstractEndPoint.write(AbstractEndPoint.java:129)

        at org.eclipse.jetty.websocket.common.io.FrameFlusher$Flusher.flush(FrameFlusher.j ava:152)

        at org.eclipse.jetty.websocket.common.io.FrameFlusher$Flusher.process(FrameFlusher .java:211)

        at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:246)

        at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:208)

        at org.eclipse.jetty.websocket.common.io.FrameFlusher.enqueue(FrameFlusher.java:38 1)

        at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.outgoingFrame (AbstractWebSocketConnection.java:563)

        at org.eclipse.jetty.websocket.common.extensions.AbstractExtension.nextOutgoingFra me(AbstractExtension.java:169)

        at org.eclipse.jetty.websocket.common.extensions.compress.PerMessageDeflateExtensi on.nextOutgoingFrame(PerMessageDeflateExtension.java:103)

        at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.access $1000(CompressExtension.java:41)

        at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flushe r.compress(CompressExtension.java:374)

        at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flushe r.deflate(CompressExtension.java:288)

        at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flushe r.process(CompressExtension.java:269)

        at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:246)

        at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:208)

        at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.outgoi ngFrame(CompressExtension.java:196)

        at org.eclipse.jetty.websocket.common.extensions.ExtensionStack$Flusher.process(Ex tensionStack.java:389)

        at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:246)

        at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:208)

        at org.eclipse.jetty.websocket.common.extensions.ExtensionStack.outgoingFrame(Exte nsionStack.java:290)

        at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.uncheckedSendFrame(W ebSocketRemoteEndpoint.java:304)

        at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.sendAsyncFrame(WebSo cketRemoteEndpoint.java:234)

        at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.sendStringByFuture(W ebSocketRemoteEndpoint.java:406)

        at org.jivesoftware.openfire.websocket.XmppWebSocket.deliver(XmppWebSocket.java:17 3)

        at org.jivesoftware.openfire.websocket.WebSocketConnection.deliverRawText(WebSocke tConnection.java:88)

        at org.jivesoftware.openfire.websocket.WebSocketConnection.deliver(WebSocketConnec tion.java:78)

        at org.jivesoftware.openfire.session.LocalClientSession.deliver(LocalClientSession .java:857)

        at org.jivesoftware.openfire.session.LocalSession.process(LocalSession.java:289)

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

        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:331)

        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.SessionPacketRouter.route(SessionPacketRouter.java:12 0)

        at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:75 )

        at org.jivesoftware.openfire.websocket.XmppWebSocket.processStanza(XmppWebSocket.j ava:225)

        at org.jivesoftware.openfire.websocket.XmppWebSocket.onTextMethod(XmppWebSocket.ja va:111)

        at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at org.eclipse.jetty.websocket.common.events.annotated.CallableMethod.call(Callabl eMethod.java:70)

        at org.eclipse.jetty.websocket.common.events.annotated.OptionalSessionCallableMeth od.call(OptionalSessionCallableMethod.java:72)

        at org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver.onTextMessa ge(JettyAnnotatedEventDriver.java:225)

        at org.eclipse.jetty.websocket.common.message.SimpleTextMessage.messageComplete(Si mpleTextMessage.java:69)

        at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.appendMessage(Abs tractEventDriver.java:64)

        at org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver.onTextFrame (JettyAnnotatedEventDriver.java:217)

        at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.incomingFrame(Abs tractEventDriver.java:160)

        at org.eclipse.jetty.websocket.common.WebSocketSession.incomingFrame(WebSocketSess ion.java:309)

        at org.eclipse.jetty.websocket.common.extensions.AbstractExtension.nextIncomingFra me(AbstractExtension.java:163)

        at org.eclipse.jetty.websocket.common.extensions.compress.PerMessageDeflateExtensi on.nextIncomingFrame(PerMessageDeflateExtension.java:92)

        at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.forwar dIncoming(CompressExtension.java:123)

        at org.eclipse.jetty.websocket.common.extensions.compress.PerMessageDeflateExtensi on.incomingFrame(PerMessageDeflateExtension.java:78)

        at org.eclipse.jetty.websocket.common.extensions.ExtensionStack.incomingFrame(Exte nsionStack.java:214)

        at org.eclipse.jetty.websocket.common.Parser.notifyFrame(Parser.java:220)

        at org.eclipse.jetty.websocket.common.Parser.parse(Parser.java:258)

        at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.readParse(Abs tractWebSocketConnection.java:628)

        at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillable(Ab stractWebSocketConnection.java:476)

        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)

        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635 )

        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)

        at java.lang.Thread.run(Thread.java:745)

      Caused by: java.io.IOException: An established connection was aborted by the software in your host machine

        at sun.nio.ch.SocketDispatcher.write0(Native Method)

        at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)

        at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)

        at sun.nio.ch.IOUtil.write(IOUtil.java:51)

        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)

        at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:170)

        ... 80 more

      09:54:19,482 ERROR XmppWebSocket:128 - Error disconnecting websocket

      java.lang.NullPointerException

        at org.jivesoftware.openfire.websocket.XmppWebSocket.onError(XmppWebSocket.java:12 6)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at org.eclipse.jetty.websocket.common.events.annotated.CallableMethod.call(Callabl eMethod.java:70)

        at org.eclipse.jetty.websocket.common.events.annotated.OptionalSessionCallableMeth od.call(OptionalSessionCallableMethod.java:72)

        at org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver.onError(Jet tyAnnotatedEventDriver.java:148)

        at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.incomingError(Abs tractEventDriver.java:94)

        at org.eclipse.jetty.websocket.common.WebSocketSession.incomingError(WebSocketSess ion.java:296)

        at org.eclipse.jetty.websocket.common.WebSocketSession.notifyError(WebSocketSessio n.java:347)

        at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection$Flusher.onFai lure(AbstractWebSocketConnection.java:73)

        at org.eclipse.jetty.websocket.common.io.FrameFlusher$Flusher.onCompleteFailure(Fr ameFlusher.java:108)

        at org.eclipse.jetty.util.IteratingCallback.failed(IteratingCallback.java:422)

        at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:330)

        at org.eclipse.jetty.io.AbstractEndPoint.write(AbstractEndPoint.java:129)

        at org.eclipse.jetty.websocket.common.io.FrameFlusher$Flusher.flush(FrameFlusher.j ava:152)

        at org.eclipse.jetty.websocket.common.io.FrameFlusher$Flusher.process(FrameFlusher .java:211)

        at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:246)

        at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:208)

        at org.eclipse.jetty.websocket.common.io.FrameFlusher.enqueue(FrameFlusher.java:38 1)

        at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.outgoingFrame (AbstractWebSocketConnection.java:563)

        at org.eclipse.jetty.websocket.common.extensions.AbstractExtension.nextOutgoingFra me(AbstractExtension.java:169)

        at org.eclipse.jetty.websocket.common.extensions.compress.PerMessageDeflateExtensi on.nextOutgoingFrame(PerMessageDeflateExtension.java:103)

        at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.access $1000(CompressExtension.java:41)

        at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flushe r.compress(CompressExtension.java:374)

        at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flushe r.deflate(CompressExtension.java:288)

        at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension$Flushe r.process(CompressExtension.java:269)

        at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:246)

        at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:208)

        at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.outgoi ngFrame(CompressExtension.java:196)

        at org.eclipse.jetty.websocket.common.extensions.ExtensionStack$Flusher.process(Ex tensionStack.java:389)

        at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:246)

        at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:208)

        at org.eclipse.jetty.websocket.common.extensions.ExtensionStack.outgoingFrame(Exte nsionStack.java:290)

        at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.uncheckedSendFrame(W ebSocketRemoteEndpoint.java:304)

        at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.sendAsyncFrame(WebSo cketRemoteEndpoint.java:234)

        at org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint.sendStringByFuture(W ebSocketRemoteEndpoint.java:406)

        at org.jivesoftware.openfire.websocket.XmppWebSocket.deliver(XmppWebSocket.java:17 3)

        at org.jivesoftware.openfire.websocket.WebSocketConnection.deliverRawText(WebSocke tConnection.java:88)

        at org.jivesoftware.openfire.websocket.WebSocketConnection.deliver(WebSocketConnec tion.java:78)

        at org.jivesoftware.openfire.session.LocalClientSession.deliver(LocalClientSession .java:857)

        at org.jivesoftware.openfire.session.LocalSession.process(LocalSession.java:289)

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

        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:331)

        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.SessionPacketRouter.route(SessionPacketRouter.java:12 0)

        at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:75 )

        at org.jivesoftware.openfire.websocket.XmppWebSocket.processStanza(XmppWebSocket.j ava:225)

        at org.jivesoftware.openfire.websocket.XmppWebSocket.onTextMethod(XmppWebSocket.ja va:111)

        at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at org.eclipse.jetty.websocket.common.events.annotated.CallableMethod.call(Callabl eMethod.java:70)

        at org.eclipse.jetty.websocket.common.events.annotated.OptionalSessionCallableMeth od.call(OptionalSessionCallableMethod.java:72)

        at org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver.onTextMessa ge(JettyAnnotatedEventDriver.java:225)

        at org.eclipse.jetty.websocket.common.message.SimpleTextMessage.messageComplete(Si mpleTextMessage.java:69)

        at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.appendMessage(Abs tractEventDriver.java:64)

        at org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver.onTextFrame (JettyAnnotatedEventDriver.java:217)

        at org.eclipse.jetty.websocket.common.events.AbstractEventDriver.incomingFrame(Abs tractEventDriver.java:160)

        at org.eclipse.jetty.websocket.common.WebSocketSession.incomingFrame(WebSocketSess ion.java:309)

        at org.eclipse.jetty.websocket.common.extensions.AbstractExtension.nextIncomingFra me(AbstractExtension.java:163)

        at org.eclipse.jetty.websocket.common.extensions.compress.PerMessageDeflateExtensi on.nextIncomingFrame(PerMessageDeflateExtension.java:92)

        at org.eclipse.jetty.websocket.common.extensions.compress.CompressExtension.forwar dIncoming(CompressExtension.java:123)

        at org.eclipse.jetty.websocket.common.extensions.compress.PerMessageDeflateExtensi on.incomingFrame(PerMessageDeflateExtension.java:78)

        at org.eclipse.jetty.websocket.common.extensions.ExtensionStack.incomingFrame(Exte nsionStack.java:214)

        at org.eclipse.jetty.websocket.common.Parser.notifyFrame(Parser.java:220)

        at org.eclipse.jetty.websocket.common.Parser.parse(Parser.java:258)

        at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.readParse(Abs tractWebSocketConnection.java:628)

        at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillable(Ab stractWebSocketConnection.java:476)

        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)

        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635 )

        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)

        at java.lang.Thread.run(Thread.java:745)

       

       

      can you please assist how to resolve those errors?