What are the possible reason for a java.util.concurrent.RejectedExecutionException in a SingleThreadExecutor

There are two reasons why execute would throw a RejectedExecutionException

  1. The queue is full and you cannot add any more threads
  2. The ThreadPool has been shut down

Since you are using a LinkedBlockingQueue, the only way I can see this occurring is because you shut down the pool.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)