java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Connection timed out: 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

    error when connect to sqlserver

    Oracle Community | 1 decade ago | 3004
    java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Connection timed out: connect
  2. 0

    connection problem with as400 after upgrade to 2.5.2

    Oracle Community | 1 decade ago | 3004
    java.sql.SQLException: [SQL0204] SYSTABLES in SYSIBM type *FILE not found. You can resolve this issue by creating an extension of the DB2Dictionary that looks something like this: public class AS400Dictionary extends com.solarmetric.kodo.impl.jdbc.schema.dict.DB2Dictionary { public AS400Dictionary () { setValidateConnectionSQL ("some SELECT that is fast and valid"); } } The validate SQL is used from time to time when borrowing items from the connection pool to ensure that a connection is really alive, since the Connection.isClosed() method is notoriously bad at truly identifying live connections. -Patrick On Mon, 14 Jul 2003 10:54:05 +0000, Harald wrote: Hello, I was using kodo 2.4.2 with with an as400 db2 database (DB2 for OS/400 JDBC Driver). This worked fine for me. After upgrading to to kodo 2.5.2 i get the following exception: A connection could not be obtained in the specified login time of 30 seconds. [code=0;state=null] NestedThrowables: com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=SELECT .... A connection could not be obtained in the specified login time of 30 seconds.

    Root Cause Analysis

    1. java.sql.SQLException

      [Microsoft][SQLServer JDBC Driver]Connection timed out: connect

      at com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwFatal()
    2. com.solarmetric.kodo
      QueryImpl.execute
      1. com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwFatal(SQLExceptions.java:58)
      2. com.solarmetric.kodo.impl.jdbc.schema.DBDictionaryFactory.getDictionary(DBDictionaryFactory.java:212)
      3. com.solarmetric.kodo.impl.jdbc.JDBCSimpleConfiguration.getDictionary(JDBCSimpleConfiguration.java:377)
      4. com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.getDictionary(JDBCStoreManager.java:710)
      5. com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.getExpressionFactory(JDBCQuery.java:112)
      6. com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.<init>(QueryImpl.java:1516)
      7. com.solarmetric.kodo.query.QueryImpl$QueryExecutionManager.getQueryExecutor(QueryImpl.java:1351)
      8. com.solarmetric.kodo.query.QueryImpl.internalCompile(QueryImpl.java:462)
      9. com.solarmetric.kodo.query.QueryImpl.getAccessPathClasses(QueryImpl.java:1161)
      10. com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:574)
      11. com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:533)
      12. com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:483)
      12 frames
    3. com.ipacs.als
      Test.main
      1. com.ipacs.als.test.Test.main(Test.java:125)
      1 frame