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

Samebug tips

,

Check if your MongoDB is available.

,

Check if your MariaDB is running and available.

Solutions on the web

via GitHub by Haitianisgood
, 7 months ago
Connection refused (Connection refused)
via Stack Overflow by Ravata Ram
, 2 months ago
Connection refused (Connection refused)
via GitHub by marbug
, 1 year ago
via GitHub by johnthomas00
, 2 years ago
via Google Groups by Arc Net, 1 year ago
via Server Fault by Unknown author, 1 year ago
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:370)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:231)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:213)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:404)
at java.net.Socket.connect(Socket.java:643)
at java.net.Socket.connect(Socket.java:590)
at java.net.Socket.(Socket.java:454)
at java.net.Socket.(Socket.java:234)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:370)

Users with the same issue

3 times, 3 days ago
12 times, 3 days ago
462 times, 4 days ago
4 times, 5 days ago
1340 times, 6 days ago

Write tip

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