JedisPool.returnResource() has thrown a JedisException

java.lang.IllegalStateException
at org.apache.commons.pool2.impl.GenericObjectPool.returnObject
at redis.clients.util.Pool.returnResourceObject
redis.clients.jedis.exceptions.JedisException
at redis.clients.util.Pool.returnResourceObject
at redis.clients.jedis.JedisPool.returnResource
redis.clients.jedis.exceptions.JedisException
at redis.clients.jedis.JedisPool.returnResource
4 frames hidden

Typical Exception Messages

  1. Could not return the resource to the pool

Origin

Specific cases

We have seen this error pattern in the following webpages (2)

  1. Joel Evansvia Stack Overflow8 months ago
    Could not return the resource to the pool