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.
Originally published at https://lwpro2.dev on May 19, 2021.