liquibase.exception.DatabaseException

java.sql.SQLException: Connection is closed

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web4

  • via GitHub by sarjerav
    ,
  • Stack trace

    • liquibase.exception.DatabaseException: java.sql.SQLException: Connection is closed at liquibase.database.jvm.JdbcConnection.setAutoCommit(JdbcConnection.java:363) at liquibase.database.AbstractJdbcDatabase.close(AbstractJdbcDatabase.java:1176) at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:400) at com.org.demoapp.config.liquibase.AsyncSpringLiquibase.initDb(AsyncSpringLiquibase.java:67) at com.org.demoapp.config.liquibase.AsyncSpringLiquibase.lambda$0(AsyncSpringLiquibase.java:50) at com.org.demoapp.async.ExceptionHandlingAsyncTaskExecutor.lambda$1(ExceptionHandlingAsyncTaskExecutor.java:47) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.sql.SQLException: Connection is closed at com.zaxxer.hikari.pool.ProxyConnection$ClosedConnection$1.invoke(ProxyConnection.java:468) at com.sun.proxy.$Proxy105.setAutoCommit(Unknown Source) at com.zaxxer.hikari.pool.ProxyConnection.setAutoCommit(ProxyConnection.java:378) at com.zaxxer.hikari.pool.HikariProxyConnection.setAutoCommit(HikariProxyConnection.java) at liquibase.database.jvm.JdbcConnection.setAutoCommit(JdbcConnection.java:361) ... 8 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    olle.hallinolle.hallin
    Once,