Seeing RejectedExecutionException occasionally when calling the jboss-cli repeatedly in JBoss EAP 6.3 CP3

Solution Unverified - Updated -

Issue

  • We have a script that calls jboss-cli over and over, the command completes successfully, but occasionally we see this RejectedExecutionException :
Exception in thread "Remoting "cli-client" task-6" java.util.concurrent.RejectedExecutionException: Task org.jboss.remoting3.remote.RemoteConnectionChannel$3@4ac0499d rejected from org.xnio.XnioWorker$TaskPool@162108c2[Shutting down, pool size = 2, active threads = 2, queued tasks = 0, completed tasks = 5]
    at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2048)
    at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:821)
    at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1372)
    at org.xnio.XnioWorker.execute(XnioWorker.java:572)
    at org.jboss.remoting3.remote.RemoteConnectionChannel.receiveMessage(RemoteConnectionChannel.java:363)
    at org.jboss.as.protocol.mgmt.ManagementChannelReceiver.handleMessage(ManagementChannelReceiver.java:99)
    at org.jboss.remoting3.remote.RemoteConnectionChannel$5.run(RemoteConnectionChannel.java:451)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
  • jboss-cli.sh command sometimes returns a "task rejection" exception after it completes.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.4 CP1
    • 6.4.0
    • 6.3.3

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