liquibase.exception.RollbackFailedException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Not specifying the columnDataType attribute in a renameColumn element inside a rollback element causes an NPE. Adding the columnDataType fixes the issue. When the columnDataType is missing inside a changeset, an appropriate error message is displayed. Stack trace is included below Exception in thread "main" liquibase.exception.RollbackFailedException: java.lang.NullPointerException at liquibase.changelog.ChangeSet.rollback(ChangeSet.java:648) at liquibase.changelog.visitor.RollbackVisitor.visit(RollbackVisitor.java:35) at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:73) at liquibase.Liquibase.rollback(Liquibase.java:398) at liquibase.Liquibase.rollback(Liquibase.java:362) at liquibase.Liquibase.rollback(Liquibase.java:351) at liquibase.Liquibase.rollback(Liquibase.java:347) at io.dropwizard.migrations.DbRollbackCommand.run(DbRollbackCommand.java:66) at io.dropwizard.migrations.DbCommand.run(DbCommand.java:52) at io.dropwizard.migrations.AbstractLiquibaseCommand.run(AbstractLiquibaseCommand.java:63) at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:76) at io.dropwizard.cli.Cli.run(Cli.java:70) at io.dropwizard.Application.run(Application.java:73) at com.vivoom.platform.server.ServerApplication.main(ServerApplication.java:40) Caused by: java.lang.NullPointerException at liquibase.datatype.DataTypeFactory.fromDescription(DataTypeFactory.java:93) at liquibase.sqlgenerator.core.RenameColumnGenerator.generateSql(RenameColumnGenerator.java:42) at liquibase.sqlgenerator.core.RenameColumnGenerator.generateSql(RenameColumnGenerator.java:14) at liquibase.sqlgenerator.SqlGeneratorChain.generateSql(SqlGeneratorChain.java:30) at liquibase.sqlgenerator.SqlGeneratorFactory.generateSql(SqlGeneratorFactory.java:208) at liquibase.executor.AbstractExecutor.applyVisitors(AbstractExecutor.java:23) at liquibase.executor.LoggingExecutor.outputStatement(LoggingExecutor.java:104) at liquibase.executor.LoggingExecutor.execute(LoggingExecutor.java:74) at liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1227) at liquibase.database.AbstractJdbcDatabase.executeRollbackStatements(AbstractJdbcDatabase.java:1244) at liquibase.changelog.ChangeSet.rollback(ChangeSet.java:627) ... 13 more
    via by John Meyer,
  • Not specifying the columnDataType attribute in a renameColumn element inside a rollback element causes an NPE. Adding the columnDataType fixes the issue. When the columnDataType is missing inside a changeset, an appropriate error message is displayed. Stack trace is included below Exception in thread "main" liquibase.exception.RollbackFailedException: java.lang.NullPointerException at liquibase.changelog.ChangeSet.rollback(ChangeSet.java:648) at liquibase.changelog.visitor.RollbackVisitor.visit(RollbackVisitor.java:35) at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:73) at liquibase.Liquibase.rollback(Liquibase.java:398) at liquibase.Liquibase.rollback(Liquibase.java:362) at liquibase.Liquibase.rollback(Liquibase.java:351) at liquibase.Liquibase.rollback(Liquibase.java:347) at io.dropwizard.migrations.DbRollbackCommand.run(DbRollbackCommand.java:66) at io.dropwizard.migrations.DbCommand.run(DbCommand.java:52) at io.dropwizard.migrations.AbstractLiquibaseCommand.run(AbstractLiquibaseCommand.java:63) at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:76) at io.dropwizard.cli.Cli.run(Cli.java:70) at io.dropwizard.Application.run(Application.java:73) at com.vivoom.platform.server.ServerApplication.main(ServerApplication.java:40) Caused by: java.lang.NullPointerException at liquibase.datatype.DataTypeFactory.fromDescription(DataTypeFactory.java:93) at liquibase.sqlgenerator.core.RenameColumnGenerator.generateSql(RenameColumnGenerator.java:42) at liquibase.sqlgenerator.core.RenameColumnGenerator.generateSql(RenameColumnGenerator.java:14) at liquibase.sqlgenerator.SqlGeneratorChain.generateSql(SqlGeneratorChain.java:30) at liquibase.sqlgenerator.SqlGeneratorFactory.generateSql(SqlGeneratorFactory.java:208) at liquibase.executor.AbstractExecutor.applyVisitors(AbstractExecutor.java:23) at liquibase.executor.LoggingExecutor.outputStatement(LoggingExecutor.java:104) at liquibase.executor.LoggingExecutor.execute(LoggingExecutor.java:74) at liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1227) at liquibase.database.AbstractJdbcDatabase.executeRollbackStatements(AbstractJdbcDatabase.java:1244) at liquibase.changelog.ChangeSet.rollback(ChangeSet.java:627) ... 13 more
    via by John Meyer,
  • Run dropNotNullConstraint against SQL Server 2008 R2 without specifying a columnDataType and liquibase crashes with a nullPointer exception. Add the columnDataType and the problem is fixed. However, this attribute doesn't seem to be enforced by the schema (3.1) or the code. Liquibase rollbackCount Failed: java.lang.NullPointerException SEVERE 8/04/14 2:26 PM:liquibase: changelog/db.changelog-1.0-baseline-schema-workflow-002.xml::wf-002.141::rattri ointerException liquibase.exception.RollbackFailedException: java.lang.NullPointerException at liquibase.changelog.ChangeSet.rollback(ChangeSet.java:452) at liquibase.changelog.visitor.RollbackVisitor.visit(RollbackVisitor.java:32) at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:64) at liquibase.Liquibase.rollback(Liquibase.java:381) at liquibase.Liquibase.rollback(Liquibase.java:360) at liquibase.integration.commandline.Main.doMigration(Main.java:906) at liquibase.integration.commandline.Main.main(Main.java:133) Caused by: java.lang.NullPointerException at liquibase.datatype.DataTypeFactory.fromDescription(DataTypeFactory.java:88) at liquibase.sqlgenerator.core.SetNullableGenerator.generateSql(SetNullableGenerator.java:64) at liquibase.sqlgenerator.core.SetNullableGenerator.generateSql(SetNullableGenerator.java:21) at liquibase.sqlgenerator.SqlGeneratorChain.generateSql(SqlGeneratorChain.java:30) at liquibase.sqlgenerator.SqlGeneratorFactory.generateSql(SqlGeneratorFactory.java:198) at liquibase.executor.AbstractExecutor.applyVisitors(AbstractExecutor.java:22) at liquibase.executor.jvm.JdbcExecutor.access$500(JdbcExecutor.java:35) at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:284) at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:54) at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:106) at liquibase.changelog.ChangeSet.rollback(ChangeSet.java:427) ... 6 more
    via by Ross Attrill,
  • Run dropNotNullConstraint against SQL Server 2008 R2 without specifying a columnDataType and liquibase crashes with a nullPointer exception. Add the columnDataType and the problem is fixed. However, this attribute doesn't seem to be enforced by the schema (3.1) or the code. Liquibase rollbackCount Failed: java.lang.NullPointerException SEVERE 8/04/14 2:26 PM:liquibase: changelog/db.changelog-1.0-baseline-schema-workflow-002.xml::wf-002.141::rattri ointerException liquibase.exception.RollbackFailedException: java.lang.NullPointerException at liquibase.changelog.ChangeSet.rollback(ChangeSet.java:452) at liquibase.changelog.visitor.RollbackVisitor.visit(RollbackVisitor.java:32) at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:64) at liquibase.Liquibase.rollback(Liquibase.java:381) at liquibase.Liquibase.rollback(Liquibase.java:360) at liquibase.integration.commandline.Main.doMigration(Main.java:906) at liquibase.integration.commandline.Main.main(Main.java:133) Caused by: java.lang.NullPointerException at liquibase.datatype.DataTypeFactory.fromDescription(DataTypeFactory.java:88) at liquibase.sqlgenerator.core.SetNullableGenerator.generateSql(SetNullableGenerator.java:64) at liquibase.sqlgenerator.core.SetNullableGenerator.generateSql(SetNullableGenerator.java:21) at liquibase.sqlgenerator.SqlGeneratorChain.generateSql(SqlGeneratorChain.java:30) at liquibase.sqlgenerator.SqlGeneratorFactory.generateSql(SqlGeneratorFactory.java:198) at liquibase.executor.AbstractExecutor.applyVisitors(AbstractExecutor.java:22) at liquibase.executor.jvm.JdbcExecutor.access$500(JdbcExecutor.java:35) at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:284) at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:54) at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:106) at liquibase.changelog.ChangeSet.rollback(ChangeSet.java:427) ... 6 more
    via by Ross Attrill,
    • liquibase.exception.RollbackFailedException: java.lang.NullPointerException at liquibase.changelog.ChangeSet.rollback(ChangeSet.java:648) at liquibase.changelog.visitor.RollbackVisitor.visit(RollbackVisitor.java:35) at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:73) at liquibase.Liquibase.rollback(Liquibase.java:398) at liquibase.Liquibase.rollback(Liquibase.java:362) at liquibase.Liquibase.rollback(Liquibase.java:351) at liquibase.Liquibase.rollback(Liquibase.java:347) at io.dropwizard.migrations.DbRollbackCommand.run(DbRollbackCommand.java:66) at io.dropwizard.migrations.DbCommand.run(DbCommand.java:52) at io.dropwizard.migrations.AbstractLiquibaseCommand.run(AbstractLiquibaseCommand.java:63) at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:76) at io.dropwizard.cli.Cli.run(Cli.java:70) at io.dropwizard.Application.run(Application.java:73) at com.vivoom.platform.server.ServerApplication.main(ServerApplication.java:40) Caused by: java.lang.NullPointerException at liquibase.datatype.DataTypeFactory.fromDescription(DataTypeFactory.java:93) at liquibase.sqlgenerator.core.RenameColumnGenerator.generateSql(RenameColumnGenerator.java:42) at liquibase.sqlgenerator.core.RenameColumnGenerator.generateSql(RenameColumnGenerator.java:14) at liquibase.sqlgenerator.SqlGeneratorChain.generateSql(SqlGeneratorChain.java:30) at liquibase.sqlgenerator.SqlGeneratorFactory.generateSql(SqlGeneratorFactory.java:208) at liquibase.executor.AbstractExecutor.applyVisitors(AbstractExecutor.java:23) at liquibase.executor.LoggingExecutor.outputStatement(LoggingExecutor.java:104) at liquibase.executor.LoggingExecutor.execute(LoggingExecutor.java:74) at liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1227) at liquibase.database.AbstractJdbcDatabase.executeRollbackStatements(AbstractJdbcDatabase.java:1244) at liquibase.changelog.ChangeSet.rollback(ChangeSet.java:627) ... 13 more
    No Bugmate found.