Hello, I’m trying to use liquibase 4.25.0 to run sql scripts in DB2 on zOS from the zOS Unix System service. The first time liquibase is run (with status or update) the databasechangelog and databasechangeloglock are created in DB2 on zOS, but when trying to run another script a second time it always gives the error ‘Unexpected error running Liquibase: java.lang.NullPointerException’ . It seems that when running liquibase with the databasechangelog and databasechangeloglock tables already created, it does not recognize them or cannot access them (?).
I don’t think it’s a permissions problem as I can access them directly on zOS with the same user. My properties file looks like this:
And the script it’s just a simple SELECT :
–liquibase formatted sql
SET CURRENT SQLID = ‘DSVDB2’;
SELECT * FROM AAT001_TESTE
Can anyone help me see if I’m doing something wrong or what could be causing the problem?