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.

  • mapper.save() throws a ThreadPool error (Java)
    via by Ali Akhtar,
  • Hello, We got an issue when preparing statements under high activity. When number of threads limit is reached on the server, SessionManager.toPreparedStatement() hangs with RejectedExecutionException in Futures.transform() method. Here is the callstack with driver v2.0.8: {code} java.util.concurrent.RejectedExecutionException: Task com.google.common.util.concurrent.Futures$ChainingListenableFuture@1a779c1 rejected from java.util.concurrent.ThreadPoolExecutor@a27a60[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 6] at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2013) at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:816) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1337) at com.google.common.util.concurrent.MoreExecutors$ListeningDecorator.execute(MoreExecutors.java:484) at com.google.common.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156) at com.google.common.util.concurrent.ExecutionList.add(ExecutionList.java:101) at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:170) at com.google.common.util.concurrent.Futures.transform(Futures.java:606) at com.google.common.util.concurrent.Futures.transform(Futures.java:715) at com.datastax.driver.core.SessionManager.toPreparedStatement(SessionManager.java:159) at com.datastax.driver.core.SessionManager.prepareAsync(SessionManager.java:124) at com.datastax.driver.core.AbstractSession.prepare(AbstractSession.java:77) at com.bnpparibas.eqd.atlas.core.CassandraDatabase.prepare(CassandraDatabase.java:178) at com.bnpparibas.eqd.atlas.core.persistence.GenericDao.buildUpdateQuery(GenericDao.java:117) at com.bnpparibas.eqd.atlas.storage.titan.persistence.pdlidentity.PdlIdentityDao.createQueries(PdlIdentityDao.java:42) at com.bnpparibas.eqd.atlas.core.CassandraDatabase.registerDao(CassandraDatabase.java:94) at com.bnpparibas.eqd.atlas.core.persistence.GenericDao.<init>(GenericDao.java:38) {code} I've found an interesting article on the issue: http://www.concurrentaffair.org/2012/10/27/problems-with-rejectedexecutionhandler-and-futures/ Could you please investigate? Thanks in advance for your help. Minh
    via by Ngoc Minh,
  • Hello, We got an issue when preparing statements under high activity. When number of threads limit is reached on the server, SessionManager.toPreparedStatement() hangs with RejectedExecutionException in Futures.transform() method. Here is the callstack with driver v2.0.8: {code} java.util.concurrent.RejectedExecutionException: Task com.google.common.util.concurrent.Futures$ChainingListenableFuture@1a779c1 rejected from java.util.concurrent.ThreadPoolExecutor@a27a60[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 6] at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2013) at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:816) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1337) at com.google.common.util.concurrent.MoreExecutors$ListeningDecorator.execute(MoreExecutors.java:484) at com.google.common.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156) at com.google.common.util.concurrent.ExecutionList.add(ExecutionList.java:101) at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:170) at com.google.common.util.concurrent.Futures.transform(Futures.java:606) at com.google.common.util.concurrent.Futures.transform(Futures.java:715) at com.datastax.driver.core.SessionManager.toPreparedStatement(SessionManager.java:159) at com.datastax.driver.core.SessionManager.prepareAsync(SessionManager.java:124) at com.datastax.driver.core.AbstractSession.prepare(AbstractSession.java:77) at com.bnpparibas.eqd.atlas.core.CassandraDatabase.prepare(CassandraDatabase.java:178) at com.bnpparibas.eqd.atlas.core.persistence.GenericDao.buildUpdateQuery(GenericDao.java:117) at com.bnpparibas.eqd.atlas.storage.titan.persistence.pdlidentity.PdlIdentityDao.createQueries(PdlIdentityDao.java:42) at com.bnpparibas.eqd.atlas.core.CassandraDatabase.registerDao(CassandraDatabase.java:94) at com.bnpparibas.eqd.atlas.core.persistence.GenericDao.<init>(GenericDao.java:38) {code} I've found an interesting article on the issue: http://www.concurrentaffair.org/2012/10/27/problems-with-rejectedexecutionhandler-and-futures/ Could you please investigate? Thanks in advance for your help. Minh
    via by Ngoc Minh,
  • java.util.concurrent.RejectedExecutionException:
    via by Unknown author,
  • Perfomance issues
    via by Eugene Prokopiev,
    • java.util.concurrent.RejectedExecutionException: Task com.google.common.util.concurrent.Futures$ChainingListenableFuture@5164e29 rejected from java.util.concurrent.ThreadPoolExecutor@53213dad[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0] at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2047) at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1369) at com.google.common.util.concurrent.MoreExecutors$ListeningDecorator.execute(MoreExecutors.java:484) at com.google.common.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156) at com.google.common.util.concurrent.ExecutionList.add(ExecutionList.java:101) at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:170) at com.google.common.util.concurrent.Futures.transform(Futures.java:608) at com.datastax.driver.core.SessionManager.toPreparedStatement(SessionManager.java:200) at com.datastax.driver.core.SessionManager.prepareAsync(SessionManager.java:161) at com.datastax.driver.core.AbstractSession.prepareAsync(AbstractSession.java:134) at com.datastax.driver.mapping.Mapper.getPreparedQueryAsync(Mapper.java:121) at com.datastax.driver.mapping.Mapper.saveQueryAsync(Mapper.java:224) at com.datastax.driver.mapping.Mapper.saveAsync(Mapper.java:307) at com.datastax.driver.mapping.Mapper.save(Mapper.java:270)

    Users with the same issue

    rprp
    1 times, last one,
    bandocabandoca
    3 times, last one,
    johnxflyjohnxfly
    22 times, last one,
    tyson925tyson925
    44 times, last one,
    arturgajowyarturgajowy
    15 times, last one,
    92 more bugmates