liquibase.exception.RollbackFailedException: java.lang.NullPointerException

JIRA | John Meyer | 1 year ago
  1. 0

    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

    JIRA | 1 year ago | John Meyer
    liquibase.exception.RollbackFailedException: java.lang.NullPointerException
  2. 0

    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

    JIRA | 1 year ago | John Meyer
    liquibase.exception.RollbackFailedException: java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at liquibase.datatype.DataTypeFactory.fromDescription()
    2. Liquibase Core
      Liquibase.rollback
      1. liquibase.datatype.DataTypeFactory.fromDescription(DataTypeFactory.java:93)
      2. liquibase.sqlgenerator.core.RenameColumnGenerator.generateSql(RenameColumnGenerator.java:42)
      3. liquibase.sqlgenerator.core.RenameColumnGenerator.generateSql(RenameColumnGenerator.java:14)
      4. liquibase.sqlgenerator.SqlGeneratorChain.generateSql(SqlGeneratorChain.java:30)
      5. liquibase.sqlgenerator.SqlGeneratorFactory.generateSql(SqlGeneratorFactory.java:208)
      6. liquibase.executor.AbstractExecutor.applyVisitors(AbstractExecutor.java:23)
      7. liquibase.executor.LoggingExecutor.outputStatement(LoggingExecutor.java:104)
      8. liquibase.executor.LoggingExecutor.execute(LoggingExecutor.java:74)
      9. liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1227)
      10. liquibase.database.AbstractJdbcDatabase.executeRollbackStatements(AbstractJdbcDatabase.java:1244)
      11. liquibase.changelog.ChangeSet.rollback(ChangeSet.java:627)
      12. liquibase.changelog.visitor.RollbackVisitor.visit(RollbackVisitor.java:35)
      13. liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:73)
      14. liquibase.Liquibase.rollback(Liquibase.java:398)
      15. liquibase.Liquibase.rollback(Liquibase.java:362)
      16. liquibase.Liquibase.rollback(Liquibase.java:351)
      17. liquibase.Liquibase.rollback(Liquibase.java:347)
      17 frames
    3. Dropwizard Migrations
      AbstractLiquibaseCommand.run
      1. io.dropwizard.migrations.DbRollbackCommand.run(DbRollbackCommand.java:66)
      2. io.dropwizard.migrations.DbCommand.run(DbCommand.java:52)
      3. io.dropwizard.migrations.AbstractLiquibaseCommand.run(AbstractLiquibaseCommand.java:63)
      3 frames
    4. Dropwizard
      Application.run
      1. io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:76)
      2. io.dropwizard.cli.Cli.run(Cli.java:70)
      3. io.dropwizard.Application.run(Application.java:73)
      3 frames
    5. com.vivoom.platform
      ServerApplication.main
      1. com.vivoom.platform.server.ServerApplication.main(ServerApplication.java:40)
      1 frame