java.net.ConnectException: Connection refused: connect

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 jsystemtest by doronzuker
, 1 year ago
via Stack Overflow by Charles
, 1 year ago
via Stack Overflow by Ajay Yadav
, 2 years ago
Connection timed out: connect
via wordpress.com by Unknown author, 1 year ago
connect: Address is invalid on local machine, or port is not valid on remote machine
via Oracle Community by 22b0e2af-f3a3-4cf2-8718-cdafa95404ef, 1 year ago
via Google Groups by Gary, 7 months ago
Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:69)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:337)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:198)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:483)
at sun.net.www.http.HttpClient.(HttpClient.java:213)
at sun.net.www.http.HttpClient.New(HttpClient.java:300)
at sun.net.www.http.HttpClient.New(HttpClient.java:316)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:992)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:928)
at jsystem.utils.UploadRunner.validateUrl(UploadRunner.java:107)
at jsystem.treeui.TestTreeView.validateUrl(TestTreeView.java:691)
at jsystem.treeui.TestTreeView.validateUrl(TestTreeView.java:698)
at jsystem.treeui.TestTreeView.refreshOpenReportsButton(TestTreeView.java:721)
at jsystem.treeui.TestTreeView.createToolBar(TestTreeView.java:451)
at jsystem.treeui.TestTreeView.(TestTreeView.java:214)
at jsystem.treeui.TestRunner.startRunner(TestRunner.java:152)
at jsystem.framework.launcher.Launcher2.run(Launcher2.java:78)
at jsystem.framework.launcher.Launcher2.main(Launcher2.java:31)

Users with the same issue

3 times, 4 hours ago
4 times, 10 hours ago
335 times, 10 hours ago
39 times, 1 week ago
Once, 1 month ago

Write tip

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