Liquibase连接已关闭

时间:2016-12-03 06:03:42

标签: mysql liquibase jhipster liquibase-hibernate

  

错误[kernel-Executor-1] liquibase:   类路径:配置/ liquibase /变化/ 00000000000000_initial_schema.xml :: 00000000000001 :: jhipster:   无法释放锁liquibase.exception.LockException:   liquibase.exception.DatabaseException:   liquibase.exception.DatabaseException:java.sql.SQLException:   连接已关闭           at liquibase.lockservice.StandardLockService.releaseLock(StandardLockService.java:250)           在liquibase.Liquibase.update(Liquibase.java:216)           在liquibase.Liquibase.update(Liquibase.java:192)           at liquibase.integration.spring.SpringLiquibase.performUpdate(SpringLiquibase.java:434)           at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:391)           at com.vadict.kernel.config.liquibase.AsyncSpringLiquibase.initDb(AsyncSpringLiquibase.java:66)           at com.vadict.kernel.config.liquibase.AsyncSpringLiquibase.lambda $ afterPropertiesSet $ 0(AsyncSpringLiquibase.java:49)           at com.vadict.kernel.async.ExceptionHandlingAsyncTaskExecutor.lambda $ createWrappedRunnable $ 1(ExceptionHandlingAsyncTaskExecutor.java:47)           在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)           at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)           at java.lang.Thread.run(Thread.java:745)引起:liquibase.exception.DatabaseException:   liquibase.exception.DatabaseException:java.sql.SQLException:   连接已关闭           at liquibase.database.AbstractJdbcDatabase.rollback(AbstractJdbcDatabase.java:1143)           在liquibase.lockservice.StandardLockService.releaseLock(StandardLockService.java:242)

运行liquibase脚本时出现此错误。如何解决?

1 个答案:

答案 0 :(得分:1)

Trunctate table DATABASECHANGELOGLOCK。