ClosedChannelException on reload

Hello,

I have a very simple Push example application (Most of my code is from the Push example in the online doc). When I deploy the application I get the following warnings:

15:41:57,270 WARNING [org.atmosphere.cpr.AtmosphereFramework]
(default task-22) SessionSupport error. Make sure you define org.atmosphere.cpr.SessionSupport as a listener in web.xml instead

15:41:57,286 WARNING [org.atmosphere.cpr.DefaultAnnotationProcessor]
(default task-22) Unable to detect annotations. Application may fail to deploy.

Despite that, the application deploys succesfully and the example seems to work just fine. Messages get broadcasted and UIs gets updated. But whenever I reload a page (ctrl+R) I get the following error:

[code]
15:12:26,711 SEVERE [org.atmosphere.container.JSR356Endpoint]
(default I/O-3) : java.nio.channels.ClosedChannelException
at io.undertow.server.protocol.framed.AbstractFramedChannel.receive(AbstractFramedChannel.java:260)
at io.undertow.websockets.core.AbstractReceiveListener.handleEvent(AbstractReceiveListener.java:20)
at io.undertow.websockets.core.AbstractReceiveListener.handleEvent(AbstractReceiveListener.java:15)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.2.Final.jar:3.2.2.Final]

at io.undertow.server.protocol.framed.AbstractFramedChannel$FrameReadListener.handleEvent(AbstractFramedChannel.java:632)
at io.undertow.server.protocol.framed.AbstractFramedChannel$FrameReadListener.handleEvent(AbstractFramedChannel.java:618)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.2.Final.jar:3.2.2.Final]

at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [xnio-api-3.2.2.Final.jar:3.2.2.Final]

at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87) [xnio-nio-3.2.2.Final.jar:3.2.2.Final]

at org.xnio.nio.WorkerThread.run(WorkerThread.java:539) [xnio-nio-3.2.2.Final.jar:3.2.2.Final]

[/code]And on (seemingly) random, the error:

15:45:51,245 ERROR [stderr] (pool-13-thread-13) com.vaadin.ui.UIDetachedException 15:45:51,246 ERROR [stderr] (pool-13-thread-13) at com.vaadin.ui.UI.access(UI.java:1369) 15:45:51,247 ERROR [stderr] (pool-13-thread-13) at com.eosmatrix.vaachko.MyVaadinUI.recieveBroadcast(MyVaadinUI.java:26) 15:45:51,247 ERROR [stderr] (pool-13-thread-13) at com.eosmatrix.vaachko.Broadcaster$1.run(Broadcaster.java:38) 15:45:51,252 ERROR [stderr] (pool-13-thread-13) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 15:45:51,252 ERROR [stderr] (pool-13-thread-13) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 15:45:51,253 ERROR [stderr] (pool-13-thread-13) at java.lang.Thread.run(Thread.java:744) … and the application still continues to works fine.

What could be the cause of this? Should I just ignore the errors?

I use Vaadin
7.2.6
and
Wildfly 8.1 Final

I downgraded Vaadin to
7.1.19
and I no longer get the
java.nio.channels.ClosedChannelException
. Now I only get the following:

20:30:22,996 ERROR [stderr]
 (pool-7-thread-7) Exception in thread "pool-7-thread-7" com.vaadin.ui.UIDetachedException
20:30:22,997 ERROR [stderr]
 (pool-7-thread-7)     at com.vaadin.ui.UI.access(UI.java:1291)
20:30:22,998 ERROR [stderr]
 (pool-7-thread-7)     at com.eosmatrix.vaachko.MyVaadinUI.recieveBroadcast(MyVaadinUI.java:26)
20:30:22,998 ERROR [stderr]
 (pool-7-thread-7)     at com.eosmatrix.vaachko.Broadcaster$1.run(Broadcaster.java:38)
20:30:22,999 ERROR [stderr]
 (pool-7-thread-7)     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
20:30:23,004 ERROR [stderr]
 (pool-7-thread-7)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
20:30:23,005 ERROR [stderr]
 (pool-7-thread-7)     at java.lang.Thread.run(Thread.java:744)


https://github.com/Atmosphere/atmosphere/issues/1550