java.util.concurrent.RejectedExecutionException: Task http://localhost/webservices/admin/ rejected from java.util.concurrent.ThreadPoolExecutor@1aa46859[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1]

Apereo Issues | Jason Peterson | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    After a login then logout then a login again. The next time you logout you get the below exception. {noformat} 2015-04-01 14:00:41,167 WARN [cas-com.docmagic.cas.ticket.registry.DocmagicJpaTicketRegistry] - Ticket : TGT-**********************************************tEMctdcHqj-cas.docmagic.com java.util.concurrent.RejectedExecutionException: Task http://localhost/webservices/admin/ rejected from java.util.concurrent.ThreadPoolExecutor@1aa46859[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1] 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.apache.http.impl.client.FutureRequestExecutionService.execute(FutureRequestExecutionService.java:122) at org.apache.http.impl.client.FutureRequestExecutionService.execute(FutureRequestExecutionService.java:89) at org.jasig.cas.util.SimpleHttpClient.sendMessageToEndPoint(SimpleHttpClient.java:349) at com.docmagic.cas.logout.LogoutManagerImpl.performBackChannelLogout(LogoutManagerImpl.java:228) at com.docmagic.cas.logout.LogoutManagerImpl.handleLogoutForSloService(LogoutManagerImpl.java:194) at com.docmagic.cas.logout.LogoutManagerImpl.performLogout(LogoutManagerImpl.java:152) at org.jasig.cas.CentralAuthenticationServiceImpl.destroyTicketGrantingTicket(CentralAuthenticationServiceImpl.java:225) {noformat} This is caused becuase in method sendMessageToEndPoint in the finally {noformat} @Override public boolean sendMessageToEndPoint(@NotNull final HttpMessage message) { ... try { ... service = new FutureRequestExecutionService(this.httpClient, executorService); } finally { IOUtils.closeQuietly(service); } } {noformat} This closes the executorService used which causes the above exception.

    Apereo Issues | 2 years ago | Jason Peterson
    java.util.concurrent.RejectedExecutionException: Task http://localhost/webservices/admin/ rejected from java.util.concurrent.ThreadPoolExecutor@1aa46859[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1]
  2. 0

    After a login then logout then a login again. The next time you logout you get the below exception. {noformat} 2015-04-01 14:00:41,167 WARN [cas-com.docmagic.cas.ticket.registry.DocmagicJpaTicketRegistry] - Ticket : TGT-**********************************************tEMctdcHqj-cas.docmagic.com java.util.concurrent.RejectedExecutionException: Task http://localhost/webservices/admin/ rejected from java.util.concurrent.ThreadPoolExecutor@1aa46859[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1] 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.apache.http.impl.client.FutureRequestExecutionService.execute(FutureRequestExecutionService.java:122) at org.apache.http.impl.client.FutureRequestExecutionService.execute(FutureRequestExecutionService.java:89) at org.jasig.cas.util.SimpleHttpClient.sendMessageToEndPoint(SimpleHttpClient.java:349) at com.docmagic.cas.logout.LogoutManagerImpl.performBackChannelLogout(LogoutManagerImpl.java:228) at com.docmagic.cas.logout.LogoutManagerImpl.handleLogoutForSloService(LogoutManagerImpl.java:194) at com.docmagic.cas.logout.LogoutManagerImpl.performLogout(LogoutManagerImpl.java:152) at org.jasig.cas.CentralAuthenticationServiceImpl.destroyTicketGrantingTicket(CentralAuthenticationServiceImpl.java:225) {noformat} This is caused becuase in method sendMessageToEndPoint in the finally {noformat} @Override public boolean sendMessageToEndPoint(@NotNull final HttpMessage message) { ... try { ... service = new FutureRequestExecutionService(this.httpClient, executorService); } finally { IOUtils.closeQuietly(service); } } {noformat} This closes the executorService used which causes the above exception.

    Apereo Issues | 2 years ago | Jason Peterson
    java.util.concurrent.RejectedExecutionException: Task http://localhost/webservices/admin/ rejected from java.util.concurrent.ThreadPoolExecutor@1aa46859[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1]
  3. 0

    CAS 4.1.0 Snapshot - Single Sign Out - Back Channel Exception

    Google Groups | 2 years ago | Vit Rozkovec
    java.util.concurrent.RejectedExecutionException: Task http://unitedkingdog.com/callback rejected from java.util.concurrent.ThreadPoolExecutor@4c8459d9[Shutting down, pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 0]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring Integration - Queue channel + Service activator Poller exhausts threadpool

    Stack Overflow | 3 years ago | Marty Pitt
    org.springframework.core.task.TaskRejectedException: Executor [java.util.concurrent.ThreadPoolExecutor@48e83911[Running, pool size = 20, active threads = 20, queued tasks = 1000, completed tasks = 48]] did not accept task: org.springframework.integration.util.ErrorHandlingTaskExecutor$1@a5798e
  6. 0

    Test fails with SparkContext has been shutdown

    GitHub | 2 years ago | jamborta
    java.util.concurrent.RejectedExecutionException: Task org.apache.spark.executor.Executor$TaskRunner@656a0389 rejected from java.util.concurrent.ThreadPoolExecutor@130e4b63[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.concurrent.RejectedExecutionException

    Task http://localhost/webservices/admin/ rejected from java.util.concurrent.ThreadPoolExecutor@1aa46859[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1]

    at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution()
  2. Java RT
    ThreadPoolExecutor.execute
    1. java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2048)
    2. java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:821)
    3. java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1372)
    3 frames
  3. Apache HttpClient
    FutureRequestExecutionService.execute
    1. org.apache.http.impl.client.FutureRequestExecutionService.execute(FutureRequestExecutionService.java:122)
    2. org.apache.http.impl.client.FutureRequestExecutionService.execute(FutureRequestExecutionService.java:89)
    2 frames
  4. Jasig CAS Core
    SimpleHttpClient.sendMessageToEndPoint
    1. org.jasig.cas.util.SimpleHttpClient.sendMessageToEndPoint(SimpleHttpClient.java:349)
    1 frame
  5. com.docmagic.cas
    LogoutManagerImpl.performLogout
    1. com.docmagic.cas.logout.LogoutManagerImpl.performBackChannelLogout(LogoutManagerImpl.java:228)
    2. com.docmagic.cas.logout.LogoutManagerImpl.handleLogoutForSloService(LogoutManagerImpl.java:194)
    3. com.docmagic.cas.logout.LogoutManagerImpl.performLogout(LogoutManagerImpl.java:152)
    3 frames
  6. Jasig CAS Core
    CentralAuthenticationServiceImpl.destroyTicketGrantingTicket
    1. org.jasig.cas.CentralAuthenticationServiceImpl.destroyTicketGrantingTicket(CentralAuthenticationServiceImpl.java:225)
    1 frame