java.net.NoRouteToHostException

No route to host: connect

Samebug tips1

Signals that an error occurred while attempting to connect a socket to a remote address and port. Typically, the remote host cannot be reached because of an intervening firewall, or if an intermediate router is down.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web582

  • via Coderanch by marco tognoni, 8 months ago
    No route to host: connect
  • via Google Groups by vinview, 1 year ago
    No route to host: connect
  • via Google Groups by shabda.raaj, 1 year ago
    No route to host: connect
  • Stack trace

    • java.net.NoRouteToHostException: No route to host: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) at sun.net.www.http.HttpClient.<init>(HttpClient.java:214) at sun.net.www.http.HttpClient.New(HttpClient.java:287) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:799) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:758) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913) at java.net.URL.openStream(URL.java:1007) at oracle.xml.parser.v2.XMLReader.openURL(XMLReader.java:2551) at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:285) at oracle.xml.parser.v2.NonValidatingParser.pushExternalDTD(NonValidatingParser.java:573) at oracle.xml.parser.v2.NonValidatingParser.parseDoctypeDecl(NonValidatingParser.java:491) at oracle.xml.parser.v2.NonValidatingParser.parseProlog(NonValidatingParser.java:323) at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:302) at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:205) at org.apache.commons.digester.Digester.parse(Digester.java:1567) at org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:259) at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:222) at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:161) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2361) at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4810) at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4734) at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4922) at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1134) at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:738) at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414) at com.evermind.server.Application.getHttpApplication(Application.java:571) at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1990) at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1973) at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.getHttpApplication(HttpSite.java:1925) at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:424) at com.evermind.server.http.HttpRequestHandler.resolveApplication(HttpRequestHandler.java:392) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:433) at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:595)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    21 times, 1 week ago
    6 times, 7 months ago
    84 times, 9 months ago
    10 times, 10 months ago
    15 more bugmates