java.sql.SQLException: Invalid state, the Connection object is closed. at net.sourceforge.jtds.jdbc.TdsCore.checkOpen(TdsCore.java:424) at net.sourceforge.jtds.jdbc.TdsCore.clearResponseQueue(TdsCore.java:685) at net.sourceforge.jtds.jdbc.TdsCore.close(TdsCore.java:808) at net.sourceforge.jtds.jdbc.ConnectionJDBC2.close(ConnectionJDBC2.java:1467)

jtds | gward | 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

    Connection.close() can take a long time when Sybase down

    jtds | 1 decade ago | gward
    java.sql.SQLException: Invalid state, the Connection object is closed. at net.sourceforge.jtds.jdbc.TdsCore.checkOpen(TdsCore.java:424) at net.sourceforge.jtds.jdbc.TdsCore.clearResponseQueue(TdsCore.java:685) at net.sourceforge.jtds.jdbc.TdsCore.close(TdsCore.java:808) at net.sourceforge.jtds.jdbc.ConnectionJDBC2.close(ConnectionJDBC2.java:1467)

    Root Cause Analysis

    1. java.sql.SQLException

      Invalid state, the Connection object is closed. at net.sourceforge.jtds.jdbc.TdsCore.checkOpen(TdsCore.java:424) at net.sourceforge.jtds.jdbc.TdsCore.clearResponseQueue(TdsCore.java:685) at net.sourceforge.jtds.jdbc.TdsCore.close(TdsCore.java:808) at net.sourceforge.jtds.jdbc.ConnectionJDBC2.close(ConnectionJDBC2.java:1467)

      at testclose.main()
    2. Unknown
      testclose.main
      1. testclose.main(testclose.java:59)
      1 frame