RejectedExecutionException occurs during shutdown if an open websocket session exists

Solution Unverified - Updated -


The following message is logged in server.log during shutdown if an open websocket session exists. Frequency is rare and not reproducible.

14:25:50,082 ERROR [org.xnio.listener] (default I/O-4) XNIO001007: A channel event listener threw an exception: java.util.concurrent.RejectedExecutionException: XNIO007007: Thread is terminating
    at org.xnio.nio.WorkerThread.execute(
    at io.undertow.websockets.jsr.UndertowSession$3.handleEvent(
    at io.undertow.websockets.jsr.UndertowSession$3.handleEvent(
    at org.xnio.ChannelListeners.invokeChannelListener(
    at io.undertow.server.protocol.framed.AbstractFramedChannel$FrameCloseListener.handleEvent(
    at io.undertow.server.protocol.framed.AbstractFramedChannel$FrameCloseListener$
    at io.undertow.server.protocol.framed.AbstractFramedChannel$
    at org.xnio.nio.WorkerThread.safeRun(


  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.3
    • 7.4

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