java.net.ConnectException: Connection refused: connect: localhost" [90067-161]

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

,
via Stack Overflow by LittlePanda

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

,
Expert tip

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

Solutions on the web

via Google Groups by Christian123456789, 1 year ago
Connection refused: connect: localhost" [90067-161]
via Google Groups by Dave Atkins, 2 years ago
via Google Groups by Luigi Galati, 1 year ago
Connection refused: connect: 127.0.1.1:44256" [90067-176]
via GitHub by ayakix
, 1 year ago
Connection refused: localhost" [90067-190]
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at org.h2.util.NetUtils.createSocket(NetUtils.java:110)
at org.h2.util.NetUtils.createSocket(NetUtils.java:91)
at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:91)
at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:373)
at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:267)
at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:110)
at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:94)
at org.h2.Driver.connect(Driver.java:72)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.h2.util.JdbcUtils.getConnection(JdbcUtils.java:168)
at org.h2.util.JdbcUtils.getConnection(JdbcUtils.java:118)
at org.h2.tools.Console.runTool(Console.java:222)
at org.h2.tools.Console.main(Console.java:100)

Users with the same issue

8 times, 21 hours ago
14 times, 23 hours ago
552 times, 1 day ago
11 times, 3 days ago
26943 times, 4 days ago

Write tip

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