Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wildfly 8: ERROR o.a.container.JSR356Endpoint - java.nio.channels.ClosedChannelException: null #1550

Closed
teknologist opened this issue Apr 6, 2014 · 8 comments

Comments

@teknologist
Copy link

Hi,

I am using PrimePush with latest atmosphere (2.2.0-SNAPSHOT) and I am getting my logs spammed with tons of these. (see full stacktrace below).

I had to use 2.2.0-SNAPSHOT with WilfFly 8 otherwise my channels names were truncated...took me some time to figure this out...

Now the Push seems to work great but these errors keep on showing on my logs.

FYI the WildFly server is accessed through an Apache 2.4 Reverse Proxy with mod_proxy_ws_tunnel for the websocket endpoints...

This happens whenever I navigate to another JSF view.

More specifically when the primefaces <p:socket is "abandoned" in the originating page and "rerendered" on the destination page...Hope it's clear...not easy to explain...

Is it a know bug ? is there somehting needed on my side to fix it ?

Many thanks in advance,

Cheers,

Eric

Stack Trace below:

18:51:33.088 wildfly [default I/O-2] ERROR o.a.container.JSR356Endpoint -  java.nio.channels.ClosedChannelException: null
    at io.undertow.server.protocol.framed.AbstractFramedChannel.receive(AbstractFramedChannel.java:253) ~[undertow-core-1.0.0.Final.jar!/:1.0.0.Final]
    at io.undertow.websockets.core.AbstractReceiveListener.handleEvent(AbstractReceiveListener.java:20) [undertow-core-1.0.0.Final.jar!/:1.0.0.Final]
    at io.undertow.websockets.core.AbstractReceiveListener.handleEvent(AbstractReceiveListener.java:15) [undertow-core-1.0.0.Final.jar!/:1.0.0.Final]
    at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.0.Final.jar!/:3.2.0.Final]
    at io.undertow.server.protocol.framed.AbstractFramedChannel$FrameReadListener.handleEvent(AbstractFramedChannel.java:615) [undertow-core-1.0.0.Final.jar!/:1.0.0.Final]
    at io.undertow.server.protocol.framed.AbstractFramedChannel$FrameReadListener.handleEvent(AbstractFramedChannel.java:601) [undertow-core-1.0.0.Final.jar!/:1.0.0.Final]
    at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.0.Final.jar!/:3.2.0.Final]
    at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [xnio-api-3.2.0.Final.jar!/:3.2.0.Final]
    at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87) [xnio-nio-3.2.0.Final.jar!/:3.2.0.Final]
    at org.xnio.nio.WorkerThread.run(WorkerThread.java:531) [xnio-nio-3.2.0.Final.jar!/:3.2.0.Final]
jfarcand added a commit that referenced this issue Apr 7, 2014
@jfarcand jfarcand closed this as completed Apr 7, 2014
jfarcand added a commit that referenced this issue Apr 7, 2014
@teknologist
Copy link
Author

Brilliant.

Where can I get the fixed jar ?

Do I need to build it or is it on maven ?

Thansk again for your great support

@jfarcand
Copy link
Member

jfarcand commented Apr 7, 2014

Use Maven to pull the dependencies, or download it here

@teknologist
Copy link
Author

Thanks!

Brilliant!

@teknologist
Copy link
Author

Still have my error:

2014-04-07 15:33:19,560 INFO  [stdout] (default I/O-2) 15:33:19.560 [default] [default I/O-2] ERROR o.a.container.JSR356Endpoint -  java.nio.channels.ClosedChannelException: null
2014-04-07 15:33:19,561 INFO  [stdout] (default I/O-2)  at io.undertow.server.protocol.framed.AbstractFramedChannel.receive(AbstractFramedChannel.java:253) ~[undertow-core-1.0.0.Final.jar!/:1.0.0.Final]
2014-04-07 15:33:19,561 INFO  [stdout] (default I/O-2)  at io.undertow.websockets.core.AbstractReceiveListener.handleEvent(AbstractReceiveListener.java:20) [undertow-core-1.0.0.Final.jar!/:1.0.0.Final]
2014-04-07 15:33:19,561 INFO  [stdout] (default I/O-2)  at io.undertow.websockets.core.AbstractReceiveListener.handleEvent(AbstractReceiveListener.java:15) [undertow-core-1.0.0.Final.jar!/:1.0.0.Final]
2014-04-07 15:33:19,561 INFO  [stdout] (default I/O-2)  at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.0.Final.jar!/:3.2.0.Final]
2014-04-07 15:33:19,561 INFO  [stdout] (default I/O-2)  at io.undertow.server.protocol.framed.AbstractFramedChannel$FrameReadListener.handleEvent(AbstractFramedChannel.java:615) [undertow-core-1.0.0.Final.jar!/:1.0.0.Final]
2014-04-07 15:33:19,561 INFO  [stdout] (default I/O-2)  at io.undertow.server.protocol.framed.AbstractFramedChannel$FrameReadListener.handleEvent(AbstractFramedChannel.java:601) [undertow-core-1.0.0.Final.jar!/:1.0.0.Final]
2014-04-07 15:33:19,561 INFO  [stdout] (default I/O-2)  at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.0.Final.jar!/:3.2.0.Final]
2014-04-07 15:33:19,561 INFO  [stdout] (default I/O-2)  at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [xnio-api-3.2.0.Final.jar!/:3.2.0.Final]
2014-04-07 15:33:19,561 INFO  [stdout] (default I/O-2)  at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87) [xnio-nio-3.2.0.Final.jar!/:3.2.0.Final]
2014-04-07 15:33:19,561 INFO  [stdout] (default I/O-2)  at org.xnio.nio.WorkerThread.run(WorkerThread.java:531) [xnio-nio-3.2.0.Final.jar!/:3.2.0.Final]

And well there is a new error now...

15:31:17.876 [default] [default I/O-3] ERROR o.a.container.JSR356Endpoint -  java.io.IOException: io.undertow.websockets.core.WebSocketFrameCorruptedException: UT002015: Extensions not allowed but received rsv of 4
2014-04-07 15:31:17,876 INFO  [stdout] (default I/O-3)  at io.undertow.websockets.core.WebSocketChannel.parseFrame(WebSocketChannel.java:122) ~[undertow-core-1.0.0.Final.jar!/:1.0.0.Final]
2014-04-07 15:31:17,876 INFO  [stdout] (default I/O-3)  at io.undertow.server.protocol.framed.AbstractFramedChannel.receive(AbstractFramedChannel.java:257) ~[undertow-core-1.0.0.Final.jar!/:1.0.0.Final]
2014-04-07 15:31:17,876 INFO  [stdout] (default I/O-3)  at io.undertow.websockets.core.AbstractReceiveListener.handleEvent(AbstractReceiveListener.java:20) [undertow-core-1.0.0.Final.jar!/:1.0.0.Final]
2014-04-07 15:31:17,877 INFO  [stdout] (default I/O-3)  at io.undertow.websockets.core.AbstractReceiveListener.handleEvent(AbstractReceiveListener.java:15) [undertow-core-1.0.0.Final.jar!/:1.0.0.Final]
2014-04-07 15:31:17,877 INFO  [stdout] (default I/O-3)  at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.0.Final.jar!/:3.2.0.Final]
2014-04-07 15:31:17,877 INFO  [stdout] (default I/O-3)  at io.undertow.server.protocol.framed.AbstractFramedChannel$FrameReadListener.handleEvent(AbstractFramedChannel.java:615) [undertow-core-1.0.0.Final.jar!/:1.0.0.Final]
2014-04-07 15:31:17,877 INFO  [stdout] (default I/O-3)  at io.undertow.server.protocol.framed.AbstractFramedChannel$FrameReadListener.handleEvent(AbstractFramedChannel.java:601) [undertow-core-1.0.0.Final.jar!/:1.0.0.Final]
2014-04-07 15:31:17,877 INFO  [stdout] (default I/O-3)  at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.0.Final.jar!/:3.2.0.Final]
2014-04-07 15:31:17,877 INFO  [stdout] (default I/O-3)  at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [xnio-api-3.2.0.Final.jar!/:3.2.0.Final]
2014-04-07 15:31:17,877 INFO  [stdout] (default I/O-3)  at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87) [xnio-nio-3.2.0.Final.jar!/:3.2.0.Final]
2014-04-07 15:31:17,877 INFO  [stdout] (default I/O-3)  at org.xnio.nio.WorkerThread.run(WorkerThread.java:531) [xnio-nio-3.2.0.Final.jar!/:3.2.0.Final]
2014-04-07 15:31:17,877 INFO  [stdout] (default I/O-3) Caused by: io.undertow.websockets.core.WebSocketFrameCorruptedException: UT002015: Extensions not allowed but received rsv of 4
2014-04-07 15:31:17,877 INFO  [stdout] (default I/O-3)  at io.undertow.websockets.core.protocol.version07.WebSocket07Channel$WebSocketFrameHeader.handle(WebSocket07Channel.java:252) ~[undertow-core-1.0.0.Final.jar!/:1.0.0.Final]
2014-04-07 15:31:17,877 INFO  [stdout] (default I/O-3)  at io.undertow.websockets.core.WebSocketChannel.parseFrame(WebSocketChannel.java:112) ~[undertow-core-1.0.0.Final.jar!/:1.0.0.Final]
2014-04-07 15:31:17,877 INFO  [stdout] (default I/O-3)  ... 10 common frames omitted

@jfarcand jfarcand reopened this Apr 7, 2014
@jfarcand
Copy link
Member

jfarcand commented Apr 7, 2014

Seems to me this is an Undertow issue cc @stuartwdouglas

@teknologist
Copy link
Author

Thanks @jfarcand !

Should @stuartwdouglas need any help/feedback debugging this, I am available.

@stuartwdouglas
Copy link
Contributor

https://issues.jboss.org/browse/UNDERTOW-216

Just pushed a fix, there should be an Undertow 1.0.4.Final release soonish (hopefully sometime this week).

@jfarcand
Copy link
Member

jfarcand commented Apr 8, 2014

Gigantic Thanks @stuartwdouglas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants