EAP 7 intermittently hits java.nio.channels.ClosedSelectorException

Solution Verified - Updated -

Issue

  • After some time, JBoss begins to throw the following ClosedSelectorException intermittently causing a connection/request attempt to fail:
10:20:52,253 ERROR [org.xnio.listener] (default Accept) XNIO001007: A channel event listener threw an exception: java.nio.channels.ClosedSelectorException
    at sun.nio.ch.EPollSelectorImpl.implRegister(EPollSelectorImpl.java:174)
    at sun.nio.ch.SelectorImpl.register(SelectorImpl.java:132)
    at java.nio.channels.spi.AbstractSelectableChannel.register(AbstractSelectableChannel.java:219)
    at java.nio.channels.SelectableChannel.register(SelectableChannel.java:280)
    at org.xnio.nio.WorkerThread.registerChannel(WorkerThread.java:731)
    at org.xnio.nio.NioTcpServer.accept(NioTcpServer.java:421)
    at org.xnio.nio.QueuedNioTcpServer2.handleReady(QueuedNioTcpServer2.java:149)
    at org.xnio.nio.QueuedNioTcpServer2.lambda$new$1(QueuedNioTcpServer2.java:58)
    at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
    at org.xnio.nio.NioTcpServerHandle.handleReady(NioTcpServerHandle.java:65)
    at org.xnio.nio.WorkerThread.run(WorkerThread.java:591)

Environment

  • JBoss Enterprise Application Platform (EAP) 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content