java.net.NoRouteToHostException: No route to host: connect

Oracle Community | 3004 | 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

    Getting java.net.NoRouteToHostException

    Oracle Community | 1 decade ago | 3004
    java.net.NoRouteToHostException: No route to host: connect
  2. 0

    Problems with Weblogic 8.1 clustering

    Coderanch | 1 decade ago | Misnad Haque
    java.net.NoRouteToHostException: No route to host: connect
  3. 0

    ctl: not found error

    Google Groups | 6 years ago | Surendra
    java.net.NoRouteToHostException: No route to host: connect
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When starting up the server without a network connection, I get exceptions in the Tomcat console like the one below for all data sources that are not resident on my local machine. We should probably swallow the exception and print a more friendly warning message. Jul 14, 2009 10:06:24 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\pentaho\dry-runs\biserver-ee-CITRUS-FC1-winxp-tomcat-mysql \biserver-ee\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\pentaho\dry-runs\biserver-ee-CITRUS-FC1-winxp-tomcat-mysql\biserver-ee\jre\bin;z:\users\devuser\public\pentaho\qa\bin;.;c:\cygwin\bin;c:\bin;c: \pentaho\qa\bin;C:\Perl\site\bin;C:\Perl\bin;c:\bin;C:\pentaho\java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;;C:\WATCOM\BINNT;C:\WATCOM\BINW;C:\Program Files\Mozilla Firefox\;C:\Sub version\bin;C:\nsPerl5.005_03\bin;c:\C:\Program Files\XEmacs\XEmacs-21.4.21\i586-pc-win32;C:\Program Files\Diskeeper Corporation\Diskeeper\C:\Program Files\Common Files\Adaptec Shared\System;C:\Progra m Files\QuickTime\QTSystem\;C:\Program Files\Common Files\HP\Digital Imaging\\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin;%ANT_HOME%\bin;C:\Program Files\VMware\VMware Server;C:\Program Files\VMwa re\VMware Server\bin;C:\STAF\bin;z:\users\devuser\public\pentaho\qa\bin;.;c:\cygwin\bin;c:\bin;c:\pentaho\qa\bin;C:\Perl\site\bin;C:\Perl\bin;c:\bin;C:\pentaho\java\bin;C:\WINDOWS\system32;C:\WINDOWS; C:\WINDOWS\System32\Wbem;;C:\WATCOM\BINNT;C:\WATCOM\BINW;C:\Program Files\Mozilla Firefox\;C:\Subversion\bin;C:\nsPerl5.005_03\bin;c:\C:\Program Files\XEmacs\XEmacs-21.4.21\i586-pc-win32;C:\Program Fi les\Diskeeper Corporation\Diskeeper\C:\Program Files\Common Files\Adaptec Shared\System;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Common Files\HP\Digital Imaging\\bin;C:\Program Files\MySQ L\MySQL Server 5.0\bin;%ANT_HOME%\bin;C:\Program Files\VMware\VMware Server;C:\Program Files\VMware\VMware Server\bin;c:\jdk1.5.0_14\bin;c:\7-zip;C:\Groovy-1.5.4\bin;C:\Subversion-1.4.6; Jul 14, 2009 10:06:24 AM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jul 14, 2009 10:06:24 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 578 ms Jul 14, 2009 10:06:24 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jul 14, 2009 10:06:24 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.26 Jul 14, 2009 10:06:24 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Jul 14, 2009 10:06:26 AM org.apache.catalina.startup.ContextConfig validateSecurityRoles WARNING: Security role name PENTAHO_ADMIN used in an <auth-constraint> without being defined in a <security-role> 10:06:48,531 ERROR [Logger] misc-org.pentaho.platform.engine.services.connection.datasource.dbcp.PooledDatasourceSystemListener: PooledDatasourceSystemListener.ERROR_0003 - Unable to pool datasource o bject: Baseball caused by com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.NoRouteToHostException MESSAGE: No route to host: connect STACKTRACE: java.net.NoRouteToHostException: No route to host: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.<init>(Unknown Source) at java.net.Socket.<init>(Unknown Source) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:271) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2744) at com.mysql.jdbc.Connection.<init>(Connection.java:1553) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:48) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290) at org.apache.commons.pool.impl.GenericObjectPool.addObject(GenericObjectPool.java:1059) at org.pentaho.platform.engine.services.connection.datasource.dbcp.PooledDatasourceHelper.setupPooledDataSource(PooledDatasourceHelper.java:133) at org.pentaho.platform.engine.services.connection.datasource.dbcp.PooledDatasourceSystemListener.startup(PooledDatasourceSystemListener.java:56) at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:306) at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:291) at org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:265) at org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:206) at org.pentaho.platform.web.http.context.SolutionContextListener.contextInitialized(SolutionContextListener.java:136) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) ** END NESTED EXCEPTION **

    Pentaho BI Platform Tracking | 8 years ago | Jared Pshedesky
    java.net.NoRouteToHostException: No route to host: connect
  6. 0

    Customer reported that JIRA mails are no longer sent. I have found the following exception which may be the reason for the stuck mail queue. I have no idea though why sending mail involves processing of trackbacks. Please explain. {noformat} 2009-04-01 15:30:18,152 Sending mailitem Trackback ping com.atlassian.trackback.Trackback@da26e9[] WARN [com.atlassian.trackback.DefaultTrackbackFinder] Error getting content of URL 'http://home.arcor.de/xxxxxxx': java.net.NoRouteToHostException: No route to host: connect 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.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at java.net.Socket.<init>(Socket.java:365) at java.net.Socket.<init>(Socket.java:238) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) at com.atlassian.trackback.TrackbackUtils.getUrlContent(TrackbackUtils.java:149) at com.atlassian.trackback.DefaultTrackbackFinder.findPingUrls(DefaultTrackbackFinder.java:52) at com.atlassian.trackback.DefaultTrackbackFinder.findPingUrls(DefaultTrackbackFinder.java:25) at com.atlassian.trackback.DefaultTrackbackHelper.pingTrackbacksInContent(DefaultTrackbackHelper.java:27) at com.atlassian.jira.trackback.TrackbackMailQueueItem.send(TrackbackMailQueueItem.java:61) at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:68) at com.atlassian.jira.web.action.admin.MailQueueAdmin.doExecute(MailQueueAdmin.java:38) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:209) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:73) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55) at com.atlassian.jira.web.filters.SitemeshExcludePathFilter.doFilter(SitemeshExcludePathFilter.java:38) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:182) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.seraph.filter.LoginFilter.doFilter(LoginFilter.java:181) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132) at com.atlassian.jira.web.filters.JIRAProfilingFilter.doFilter(JIRAProfilingFilter.java:16) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.ActionCleanupDelayFilter.doFilter(ActionCleanupDelayFilter.java:43) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.RequestCleanupFilter.doFilter(RequestCleanupFilter.java:49) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.johnson.filters.AbstractJohnsonFilter.doFilter(AbstractJohnsonFilter.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.gzip.GzipFilter.doFilter(GzipFilter.java:64) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:37) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcerFilter.doFilter(DatabaseCompatibilityEnforcerFilter.java:39) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) {noformat}

    Atlassian JIRA | 8 years ago | Arne Schirmacher (Pix Software GmbH)
    java.net.NoRouteToHostException: No route to host: connect

  1. abrazeneb 15 times, last 8 months ago
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.NoRouteToHostException

    No route to host: connect

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.<init>
    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:434)
    6. java.net.Socket.connect(Socket.java:384)
    7. java.net.Socket.<init>(Socket.java:291)
    8. java.net.Socket.<init>(Socket.java:147)
    8 frames
  3. weblogic.net.http
    HttpURLConnection.getOutputStream
    1. weblogic.net.http.HttpClient.openServer(HttpClient.java:231)
    2. weblogic.net.http.HttpClient.openServer(HttpClient.java:292)
    3. weblogic.net.http.HttpClient.<init>(HttpClient.java:128)
    4. weblogic.net.http.HttpClient.New(HttpClient.java:170)
    5. weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:112)
    6. weblogic.net.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:159)
    6 frames
  4. com.csxwt.zodiac
    ZodiacLoginModule.login
    1. com.csxwt.zodiac.command.util.HttpConnection.marshall(HttpConnection.java:168)
    2. com.csxwt.zodiac.command.util.HttpConnection.execute(HttpConnection.java:85)
    3. com.csxwt.zodiac.security.ZodiacLoginModule.login(ZodiacLoginModule.java:101)
    3 frames
  5. Java RT
    LoginContext.login
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:324)
    5. javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
    6. javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
    7. javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
    8. java.security.AccessController.doPrivileged(Native Method)
    9. javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
    10. javax.security.auth.login.LoginContext.login(LoginContext.java:534)
    10 frames