I have below liquibase script for create table. This script is working fine in v3.5.5, but if I use v3.6.2 then its giving me “ArrayIndexOutOfBoundsException”. It looks like liquibase is not bale to replace the property with the value based on DB. If I remove “${varcharUnit}” and change “java.sql.Types.VARCHAR(50${varcharUnit})” to “java.sql.Types.VARCHAR(50)” then its working fine with 3.6.2.
Any one has idea what changed in v3.6.2, which leading this error?
Need help to fix this issue.
Script:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><databaseChangeLog xmlns=“http://www.liquibase.org/xml/ns/dbchangelog”
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
Error:
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:305)</div></div>