java.util.concurrent.RejectedExecutionException

The app was encountering this exception while submitting new task to the pool. There was not much details for the error message.

Application run failed java.util.concurrent.RejectedExecutionException: null
at java.util.concurrent.ForkJoinPool.externalSubmit(ForkJoinPool.java:2339)
at java.util.concurrent.ForkJoinPool.externalPush(ForkJoinPool.java:2430)
at java.util.concurrent.ForkJoinPool.invokeAll(ForkJoinPool.java:2733)

Turns out the issue was due to the case that pool is a common pool which has been shutdown (not accepting new connections) in some other part of the application.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s