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)
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 .