redis.clients.jedis.exceptions.JedisConnectionException

java.net.ConnectException: Connection refused: connect

Samebug tips9

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


rafaelrafael

To restart the Selenium Webdriver mock browser in a testcase, first use 'driver.close()' and then reinstantiate the driver.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web2698

Stack trace

  • redis.clients.jedis.exceptions.JedisConnectionException: java.net.ConnectException: Connection refused: connect at redis.clients.jedis.Connection.connect(Connection.java:164)[jedis-2.8.2.jar:na] at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:80)[jedis-2.8.2.jar:na] at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1677)[jedis-2.8.2.jar:na] at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:87)[jedis-2.8.2.jar:na] at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:868)[commons-pool2-2.4.2.jar:2.4.2] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:435)[commons-pool2-2.4.2.jar:2.4.2] at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363)[commons-pool2-2.4.2.jar:2.4.2] at redis.clients.util.Pool.getResource(Pool.java:49)[jedis-2.8.2.jar:na] Caused by: java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)[na:1.8.0_45] at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)[na:1.8.0_45] at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)[na:1.8.0_45] at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)[na:1.8.0_45] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)[na:1.8.0_45] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)[na:1.8.0_45] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[na:1.8.0_45] at java.net.Socket.connect(Socket.java:589)[na:1.8.0_45] at redis.clients.jedis.Connection.connect(Connection.java:158)[jedis-2.8.2.jar:na] ... 8 more

Write tip

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

Users with the same issue

magicanmagican
3 times, last one
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
rocdayrocday
7 times, last one
399 more bugmates