java.net.ConnectException: Connection timed out: connect

Oracle Community | 807546 | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Comparing 2 XML Files

    Oracle Community | 1 decade ago | 807546
    java.net.ConnectException: Connection timed out: connect

    Root Cause Analysis

    1. java.net.ConnectException

      Connection timed out: connect

      at java.net.PlainSocketImpl.socketConnect()
    2. Java RT
      URLConnection.getContentType
      1. java.net.PlainSocketImpl.socketConnect(Native Method)
      2. java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
      3. java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
      4. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
      5. java.net.Socket.connect(Socket.java:426)
      6. java.net.Socket.connect(Socket.java:376)
      7. sun.net.NetworkClient.doConnect(NetworkClient.java:139)
      8. sun.net.www.http.HttpClient.openServer(HttpClient.java:386)
      9. sun.net.www.http.HttpClient.openServer(HttpClient.java:602)
      10. sun.net.www.http.HttpClient.<init>(HttpClient.java:303)
      11. sun.net.www.http.HttpClient.<init>(HttpClient.java:264)
      12. sun.net.www.http.HttpClient.New(HttpClient.java:336)
      13. sun.net.www.http.HttpClient.New(HttpClient.java:317)
      14. sun.net.www.http.HttpClient.New(HttpClient.java:312)
      15. sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:481)
      16. sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:472)
      17. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:574)
      18. sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1169)
      19. java.net.URLConnection.getContentType(URLConnection.java:381)
      19 frames
    3. org.apache.crimson
      DocumentBuilderImpl.parse
      1. org.apache.crimson.parser.Resolver.resolveEntity(Resolver.java:388)
      2. org.apache.crimson.parser.ExternalEntity.getInputSource(ExternalEntity.java:89)
      3. org.apache.crimson.parser.Parser2.pushReader(Parser2.java:3133)
      4. org.apache.crimson.parser.Parser2.externalParsedEntity(Parser2.java:2819)
      5. org.apache.crimson.parser.Parser2.expandEntityInContent(Parser2.java:2545)
      6. org.apache.crimson.parser.Parser2.maybeReferenceInContent(Parser2.java:2422)
      7. org.apache.crimson.parser.Parser2.content(Parser2.java:1833)
      8. org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
      9. org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
      10. org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
      11. org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
      12. org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
      13. org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
      14. org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
      14 frames
    4. Java RT
      DocumentBuilder.parse
      1. javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:151)
      1 frame
    5. Unknown
      XmlCompareTest.main
      1. XmlCompareTest.main(XmlCompareTest.java:34)
      1 frame