java.util.concurrent.RejectedExecutionException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by Jason Peterson,
  • 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.
    via by 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] 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)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    92 more bugmates