Liquibase diff throws a NullpointerException in ChangedIndexChangeGenerator.java:72

using Liquibase 3.2.2, we encounter a problem with the mechanism for breaking the liquid base to automatically generate a change log to convert database schema A to database schema B.

We tried to use the Liquibase diff function in two mysql databases. During comparison, Liquibase throws a NullPointerException. Our schemas contain tables, views, foreign and primary keys. Differentiating the empty link database works fine, and a functional changeLog is created.

Any ideas what might be causing the problem in our old data model that caused problems during the diff call?

Here are the stacktrace exceptions:

Caused by: java.lang.NullPointerException
    at liquibase.diff.output.changelog.core.ChangedIndexChangeGenerator.fixChanged(ChangedIndexChangeGenerator.java:72)
    at liquibase.diff.output.changelog.ChangeGeneratorChain.fixChanged(ChangeGeneratorChain.java:118)
    at liquibase.diff.output.changelog.ChangeGeneratorFactory.fixChanged(ChangeGeneratorFactory.java:122)
    at liquibase.diff.output.changelog.DiffToChangeLog.generateChangeSets(DiffToChangeLog.java:167)
    at liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:125)
    at liquibase.integration.ant.DiffDatabaseToChangeLogTask.executeWithLiquibaseClassloader(DiffDatabaseToChangeLogTask.java:47)
    at liquibase.integration.ant.BaseLiquibaseTask.execute(BaseLiquibaseTask.java:82)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    ... 10 more

Your input is greatly appreciated!

Yours faithfully,

Stephen

+4

All Articles