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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

spring-data-redis requires redis 2.6+ to work properly.

,
Expert tip

Firewall might be blocking your connection, or MySQL it's not running on your server machine.

Solutions on the web

via GitHub by JarvisZhu
, 1 year ago
Could not get a resource from the pool
via GitHub by sukeqiang
, 1 year ago
Could not get a resource from the pool
via GitHub by sukeqiang
, 1 year ago
Could not get a resource from the pool
via GitHub by sukeqiang
, 1 year ago
Could not get a resource from the pool
via GitHub by sukeqiang
, 1 year ago
Could not get a resource from the pool
via GitHub by veludurai106
, 2 years ago
Could not get a resource from the pool
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at redis.clients.jedis.Connection.connect(Connection.java:158)
at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:80)
at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1677)
at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:868)
at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:435)
at redis.clients.util.Pool.getResource(Pool.java:49)
at io.codis.jodis.RoundRobinJedisPool.getResource(RoundRobinJedisPool.java:205)
at undefined.JodisToMultiCodisProxy.main(JodisToMultiCodisProxy.java:14)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)

Users with the same issue

Once, 1 day ago
Once, 5 days ago
39 times, 5 days ago
14 times, 6 days ago
2 times, 1 week ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.