Pool.getResource() has thrown a JedisConnectionException

java.lang.IllegalStateException
Javadoc
Signals that a method has been invoked at an illegal or inappropriate time. In other words, the Java environment or Java application is not in an appropriate state for the requested operation. @author Jonni Kanerva @since JDK1.1
at org.apache.commons.pool2.impl.BaseGenericObjectPool.assertOpen
(source)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject
(source)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject
(source)
at redis.clients.util.Pool.getResource
(source)
redis.clients.jedis.exceptions.JedisConnectionException
Javadoc
at redis.clients.util.Pool.getResource
(source)
4 frames hidden

Typical Exception Messages

  1. Could not get a resource from the pool

Origin

GenericObjectPool.borrowObject() has thrown an IllegalStateException

java.lang.IllegalStateException
2 frames hidden
org.apache.commons.pool2.impl.GenericObjectPool.borrowObject
2Web pages

Similar

Specific cases

Solution

rp, 1 year ago

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

Check the source of this solution for more info

External results for this pattern (2)

  1. tonyvia Stack Overflow3 months ago
    Could not get a resource from the pool
    Show stack trace
  2. bleszxyvia GitHub1 year ago
    Could not get a resource from the pool
    Show stack trace