Exception in Liquibase update java program

321 Views Asked by At

I am trying to update database from liquibase java program . I am getting the following exception:

:liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.DatabaseException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.DatabaseException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at liquibase.database.AbstractJdbcDatabase.checkDatabaseChangeLogTable(AbstractJdbcDatabase.java:605)
    at liquibase.Liquibase.checkDatabaseChangeLogTable(Liquibase.java:602)
    at liquibase.Liquibase.forceReleaseLocks(Liquibase.java:640)
1

There are 1 best solutions below

0
On

I found the reason is I was using old liquibase jar file : liquibase 3.0.2 when I updated it to liquibase 3.5.3 this issue got resolved .