redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

You are trying to retrieve stuff from the redis pool after destroyPool has been called.

(source)
rp

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • JedisPool cannot connect to a telnet redis server
    via Stack Overflow by tony
    ,
  • GitHub comment 99#153336681
    via GitHub by johnou
    ,
    • redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool at redis.clients.util.Pool.getResource(Pool.java:53) at redis.clients.jedis.JedisPool.getResource(JedisPool.java:226) at com.mbg.redis.RedisUtils.get(RedisUtils.java:122) at com.mbg.redis.RedisDemo.poolTest(RedisDemo.java:25) at com.mbg.redis.RedisDemo.main(RedisDemo.java:35) Caused by: java.lang.IllegalStateException: Pool not open at org.apache.commons.pool2.impl.BaseGenericObjectPool.assertOpen(BaseGenericObjectPool.java:672) at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:412) at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363) at redis.clients.util.Pool.getResource(Pool.java:49) ... 4 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    rp
    rp10 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,