java.net.ConnectException: Connection timed out: 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

Samebug tips

,

Check if your MongoDB is available.

,

Check if your MariaDB is running and available.

Solutions on the web

via Oracle Community by 807546, 1 year ago
Connection timed out: connect
via Oracle Community by 843841, 1 year ago
via Oracle Community by 843834, 1 year ago
Connection timed out: connect
via Oracle Community by 843841, 1 year ago
Connection timed out: connect
via Oracle Community by 807606, 7 months ago
via Oracle Community by 807595, 1 year ago
Connection timed out: connect
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:386)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:602)
at sun.net.www.http.HttpClient.(HttpClient.java:303)
at sun.net.www.http.HttpClient.(HttpClient.java:264)
at sun.net.www.http.HttpClient.New(HttpClient.java:336)
at sun.net.www.http.HttpClient.New(HttpClient.java:317)
at sun.net.www.http.HttpClient.New(HttpClient.java:312)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:481)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:472)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:574)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1169)
at java.net.URLConnection.getContentType(URLConnection.java:381)
at org.apache.crimson.parser.Resolver.resolveEntity(Resolver.java:388)
at org.apache.crimson.parser.ExternalEntity.getInputSource(ExternalEntity.java:89)
at org.apache.crimson.parser.Parser2.pushReader(Parser2.java:3133)
at org.apache.crimson.parser.Parser2.externalParsedEntity(Parser2.java:2819)
at org.apache.crimson.parser.Parser2.expandEntityInContent(Parser2.java:2545)
at org.apache.crimson.parser.Parser2.maybeReferenceInContent(Parser2.java:2422)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1833)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:151)
at undefined.XmlCompareTest.main(XmlCompareTest.java:34)

Users with the same issue

74 times, 4 hours ago
410 times, 10 hours ago
9 times, 11 hours ago
23 times, 1 week ago
307 times, 1 week ago
298 more bugmates

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