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

GitHub | jdoose | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

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

    GitHub | 8 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.commit
      1. net.sourceforge.jtds.jdbc.JtdsConnection.checkOpen(JtdsConnection.java:1744)
      2. net.sourceforge.jtds.jdbc.JtdsConnection.commit(JtdsConnection.java:2149)
      2 frames
    3. ${project.artifactId}
      Flyway.migrate
      1. org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:88)
      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