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

Solution Unverified - Updated

Environment

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

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.

Resolution

The RejectedExecutionException can be ignored when seen from a jboss-cli call. It is happening during shutdown and does not affect the cli call. This will be fixed in JBoss EAP 6.4 CP2 .

Root Cause

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.