org.hsqldb.HsqlException: user lacks privilege or object not found: DATABASECHANGELOGLOCK

て烟熏妆下的殇ゞ 提交于 2019-12-01 01:33:17

That error on hsqldb usually means the table doesn't exist. The "does the databasechangelog table exist" caching mechanism can become incorrect if you drop the databasechangelog table after it has been checked.

There is a fix for that in an the upcoming liquibase 3.3 version, but for now if you add ChangeLogHistoryServiceFactory.getInstance().reset() where you clear out your database it should fix the problem.

I believe this error can occur, when your connection is closed or invalid.

I get the same error when using Hsqldb-2.3.2 with a connection pool (like dbcp) and a validationQuery. Once a validationQuery has invalidated the connection the error is thrown on next database access.

Since your in a test, this will not be your Problem, but you could debug the connection and see if it is open at the time of error.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!