java.sql.SQLException: Network error IOException: Connection timed out: connect

Atlassian JIRA | Mario Giacomino [Atlassian] | 10 years ago
  1. 0

    When JIRA connects to an external system to import from, if the connection fails it logs: {noformat} 2007-02-16 08:22:22,572 ERROR [web.action.util.DatabaseConnectionBean] Error occurred while connecting to the database. java.sql.SQLException: Network error IOException: Connection timed out: connect at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:372) at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50) at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:193) at com.atlassian.jira.web.action.util.DatabaseConnectionBean.getConnection(DatabaseConnectionBean.java:112) at com.atlassian.jira.web.action.util.DatabaseConnectionBean.isValid(DatabaseConnectionBean.java:127) at com.atlassian.jira.web.action.util.DatabaseConnectionBean.validateConnection(DatabaseConnectionBean.java:307) at com.atlassian.jira.web.action.util.fogbugz.ConfigureFogBugzMapping.doStart(ConfigureFogBugzMapping.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) {noformat} It would be helpful to print the connection details (JDBC URL, user address) in a debug statement just before the connect, so we've got a better chance of debugging the problem.

    Atlassian JIRA | 10 years ago | Mario Giacomino [Atlassian]
    java.sql.SQLException: Network error IOException: Connection timed out: connect
  2. 0

    When JIRA connects to an external system to import from, if the connection fails it logs: {noformat} 2007-02-16 08:22:22,572 ERROR [web.action.util.DatabaseConnectionBean] Error occurred while connecting to the database. java.sql.SQLException: Network error IOException: Connection timed out: connect at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:372) at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50) at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:193) at com.atlassian.jira.web.action.util.DatabaseConnectionBean.getConnection(DatabaseConnectionBean.java:112) at com.atlassian.jira.web.action.util.DatabaseConnectionBean.isValid(DatabaseConnectionBean.java:127) at com.atlassian.jira.web.action.util.DatabaseConnectionBean.validateConnection(DatabaseConnectionBean.java:307) at com.atlassian.jira.web.action.util.fogbugz.ConfigureFogBugzMapping.doStart(ConfigureFogBugzMapping.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) {noformat} It would be helpful to print the connection details (JDBC URL, user address) in a debug statement just before the connect, so we've got a better chance of debugging the problem.

    Atlassian JIRA | 10 years ago | Mario Giacomino [Atlassian]
    java.sql.SQLException: Network error IOException: Connection timed out: connect
  3. 0

    Network error IOException: Connection timed o

    jtds | 1 decade ago | adnene_b
    java.sql.SQLException: Network error IOException: Connection timed out: connect
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    SQLCoffee - jTDS Exception Connection Timed Out

    sqlcoffee.com | 3 months ago
    java.sql.SQLException: Network error IOException: Connection timed out: connect
  6. 0

    Connection URl for SQLExpress database using Hibernate

    Stack Overflow | 6 years ago | Hardik Mishra
    java.sql.SQLException: Unknown server host name 'COMP6\\SQLEXPRESS'. at net.sourceforge.jtds.jdbc.ConnectionJDBC2.&lt;init&gt;(ConnectionJDBC2.java:401) at net.sourceforge.jtds.jdbc.ConnectionJDBC3.&lt;init&gt;(ConnectionJDBC3.java:50)

  1. abrazeneb 1 times, last 3 months ago
13 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.sql.SQLException

    Network error IOException: Connection timed out: connect

    at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>()
  2. jTDS
    Driver.connect
    1. net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:372)
    2. net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50)
    3. net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178)
    3 frames
  3. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(DriverManager.java:525)
    2. java.sql.DriverManager.getConnection(DriverManager.java:193)
    2 frames
  4. com.atlassian.jira
    ConfigureFogBugzMapping.doStart
    1. com.atlassian.jira.web.action.util.DatabaseConnectionBean.getConnection(DatabaseConnectionBean.java:112)
    2. com.atlassian.jira.web.action.util.DatabaseConnectionBean.isValid(DatabaseConnectionBean.java:127)
    3. com.atlassian.jira.web.action.util.DatabaseConnectionBean.validateConnection(DatabaseConnectionBean.java:307)
    4. com.atlassian.jira.web.action.util.fogbugz.ConfigureFogBugzMapping.doStart(ConfigureFogBugzMapping.java:36)
    4 frames
  5. Java RT
    Method.invoke
    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:585)
    4 frames