Liquibase gives a NullPointerException at liquibase.database.typeconversion.core.AbstractTypeConverter.getDataType (AbstractTypeConverter.java:55). I try to execute a diffDatabase where there are changes in datatypes from columns in the db (and new tables and relations).
The 2.0RC1 generateChangeLog ant task works perfectly with the same hibernate files, generating all datatypes.
The 1.9.4 diffDatabaseToChangeLog ant task works “perfectly” with the same hibernate files, generating changes without taking into account of datatype changes.
-
[diffDatabaseToChangeLog] INFO 5/11/09 10:33:liquibase: Could not set remarks reporting on OracleDatabase: liquibase.database.JdbcConnection.setRemarksReporting(boolean)
[diffDatabaseToChangeLog] seen table CLIENTES
[diffDatabaseToChangeLog] seen table CREDITOS
[diffDatabaseToChangeLog] seen table CUENTAS
[diffDatabaseToChangeLog] seen table CuentasClientes
[diffDatabaseToChangeLog] seen table MOVIMIENTOS_CUENTAS
[diffDatabaseToChangeLog] seen table POLIZAS
[diffDatabaseToChangeLog] seen table TAREAS_EN_CURSO
[diffDatabaseToChangeLog] seen table TIPOS_CREDITOS
[diffDatabaseToChangeLog] seen table TIPOS_POLIZAS
[diffDatabaseToChangeLog] seen table TIPO_CUENTAS
[diffDatabaseToChangeLog] seen table TIPO_MOVIMIENTOS
[diffDatabaseToChangeLog] seen table TIPO_PERMISOS
BUILD FAILED
\ant\build.xml:815: java.lang.NullPointerException
Caused by: java.lang.NullPointerException
at liquibase.database.typeconversion.core.AbstractTypeConverter.getDataType(AbstractTypeConverter.java:55)
at liquibase.diff.DiffResult.addMissingColumnChanges(DiffResult.java:740)
at liquibase.diff.DiffResult.printChangeLog(DiffResult.java:419)
at liquibase.diff.DiffResult.printChangeLog(DiffResult.java:345)
at liquibase.integration.ant.DiffDatabaseToChangeLogTask.outputDiff(DiffDatabaseToChangeLogTask.java:12)
at liquibase.integration.ant.DiffDatabaseTask.execute(DiffDatabaseTask.java:91)
... 57 more