java.sql.SQLException: Invalid state, the Connection object is closed.

GitHub | jdoose | 5 months 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

    Documentation: Limitation in SQL Server: ALTER DATABASE SINGLE_USER not supported

    GitHub | 5 months ago | jdoose
    java.sql.SQLException: Invalid state, the Connection object is closed.

    Root Cause Analysis

    1. java.sql.SQLException

      Invalid state, the Connection object is closed.

      at net.sourceforge.jtds.jdbc.JtdsConnection.checkOpen()
    2. jTDS
      JtdsConnection.setAutoCommit
      1. net.sourceforge.jtds.jdbc.JtdsConnection.checkOpen(JtdsConnection.java:1744)
      2. net.sourceforge.jtds.jdbc.JtdsConnection.setAutoCommit(JtdsConnection.java:2276)
      2 frames
    3. ${project.artifactId}
      Flyway.migrate
      1. org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:96)
      2. org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:173)
      3. org.flywaydb.core.Flyway$1.execute(Flyway.java:959)
      4. org.flywaydb.core.Flyway$1.execute(Flyway.java:917)
      5. org.flywaydb.core.Flyway.execute(Flyway.java:1373)
      6. org.flywaydb.core.Flyway.migrate(Flyway.java:917)
      6 frames
    4. org.flywaydb.commandline
      Main.main
      1. org.flywaydb.commandline.Main.executeOperation(Main.java:139)
      2. org.flywaydb.commandline.Main.main(Main.java:102)
      2 frames