JedisPool.getResource() has thrown a JedisConnectionException

java.net.SocketTimeoutException
at java.net.PlainSocketImpl.socketConnect
at java.net.AbstractPlainSocketImpl.doConnect
at java.net.AbstractPlainSocketImpl.connectToAddress
at java.net.AbstractPlainSocketImpl.connect
at java.net.SocksSocketImpl.connect
at java.net.Socket.connect
at redis.clients.jedis.Connection.connect
redis.clients.jedis.exceptions.JedisConnectionException
at redis.clients.jedis.Connection.connect
at redis.clients.jedis.BinaryClient.connect
at redis.clients.jedis.BinaryJedis.connect
at redis.clients.jedis.JedisFactory.makeObject
at org.apache.commons.pool2.impl.GenericObjectPool.create
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject
at redis.clients.util.Pool.getResource
redis.clients.jedis.exceptions.JedisConnectionException
at redis.clients.util.Pool.getResource
at redis.clients.jedis.JedisPool.getResource
16 frames hidden

Typical Exception Messages

  1. Could not get a resource from the pool
  2. Could not get a resource from the pool
  3. Could not get a resource from the pool

Origin

Specific cases

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

  1. doom369via GitHub5 months ago
    Could not get a resource from the pool
  2. Igor Shaldevvia Google Groups11 months ago
    Could not get a resource from the pool
  3. guiclvia Stack Overflow2 years ago
    Could not get a resource from the pool
  4. guilhermeclvia GitHub2 years ago
    Could not get a resource from the pool