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
  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

    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]
  6. 0

    SparkContext shut down if runJob() returns a stream runtime object

    GitHub | 2 years ago | adrianfr
    java.util.concurrent.RejectedExecutionException: Task org.apache.spark.scheduler.TaskResultGetter$$anon$2@458eb02b rejected from java.util.concurrent.ThreadPoolExecutor@1acffaba[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 4]

  1. kjhdofjosvs 1 times, last 1 week ago
  2. tyson925 16 times, last 2 weeks ago
  3. Nikolay Rybak 1 times, last 2 months ago
  4. rlovtangen 109 times, last 2 months ago
  5. rp 2 times, last 3 months ago
5 more registered users
32 unregistered visitors
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