java.net.ConnectException: Connection refused

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

Solutions on the web

via Stack Overflow by Nick
, 1 year ago
via itquestionz.com by Unknown author, 2 years ago
via Stack Overflow by Rahul Kolluri
, 2 years ago
via Stack Overflow by bwillemo
, 1 week ago
Connection refused (Connection refused)
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at java.net.Socket.(Socket.java:434)
at java.net.Socket.(Socket.java:244)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
at com.mysql.jdbc.MysqlIO.(MysqlIO.java:271)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2771)
at com.mysql.jdbc.Connection.(Connection.java:1555)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:208)
at undefined.DatabaseConnector.getConnection(DatabaseConnector.java:34)
at undefined.DatabaseConnector.foundTable(DatabaseConnector.java:65)
at undefined.TextOutput.(TextOutput.java:21)
at undefined.Crawler.main(Crawler.java:77)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
4 times, 9 months ago
Once, 10 months ago
Once, 11 months ago
Once, 1 year ago
949 more bugmates

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