liquibase.exception.LiquibaseException: liquibase.command.CommandExecutionException: java.lang.NullPointerException

JIRA | Henning Hoefer | 1 year ago
  1. 0

    When I create a conditional Index in PostgreSQL, Liquibase cannot generate a Changelog anymore. Database: {code:sql} CREATE TABLE events (active BOOLEAN); CREATE INDEX active_events ON events (active) WHERE active; {code} Command line: {noformat} C:\TEMP\liquibug>liquibase --changeLogFile=output.xml --logLevel=info generateChangelog INFO 09.06.15 19:04: liquibase: output.xml does not exist, creating Unexpected error running Liquibase: java.lang.NullPointerException SEVERE 09.06.15 19:04: liquibase: java.lang.NullPointerException liquibase.exception.LiquibaseException: liquibase.command.CommandExecutionException: java.lang.NullPointerException at liquibase.integration.commandline.CommandLineUtils.doGenerateChangeLog(CommandLineUtils.java:155) at liquibase.integration.commandline.Main.doMigration(Main.java:951) at liquibase.integration.commandline.Main.run(Main.java:175) at liquibase.integration.commandline.Main.main(Main.java:94) Caused by: liquibase.command.CommandExecutionException: java.lang.NullPointerException at liquibase.command.AbstractCommand.execute(AbstractCommand.java:13) at liquibase.integration.commandline.CommandLineUtils.doGenerateChangeLog(CommandLineUtils.java:153) ... 3 more Caused by: java.lang.NullPointerException at liquibase.datatype.DataTypeFactory.from(DataTypeFactory.java:206) at liquibase.diff.output.changelog.core.MissingTableChangeGenerator.fixMissing(MissingTableChangeGenerator.java:69) at liquibase.diff.output.changelog.ChangeGeneratorChain.fixMissing(ChangeGeneratorChain.java:48) at liquibase.diff.output.changelog.ChangeGeneratorFactory.fixMissing(ChangeGeneratorFactory.java:99) at liquibase.diff.output.changelog.DiffToChangeLog.generateChangeSets(DiffToChangeLog.java:145) at liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:125) at liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:76) at liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:64) at liquibase.command.GenerateChangeLogCommand.run(GenerateChangeLogCommand.java:54) at liquibase.command.AbstractCommand.execute(AbstractCommand.java:8) ... 4 more For more information, use the --logLevel flag C:\TEMP\liquibug> {noformat}

    JIRA | 1 year ago | Henning Hoefer
    liquibase.exception.LiquibaseException: liquibase.command.CommandExecutionException: java.lang.NullPointerException
  2. 0

    When I create a conditional Index in PostgreSQL, Liquibase cannot generate a Changelog anymore. Database: {code:sql} CREATE TABLE events (active BOOLEAN); CREATE INDEX active_events ON events (active) WHERE active; {code} Command line: {noformat} C:\TEMP\liquibug>liquibase --changeLogFile=output.xml --logLevel=info generateChangelog INFO 09.06.15 19:04: liquibase: output.xml does not exist, creating Unexpected error running Liquibase: java.lang.NullPointerException SEVERE 09.06.15 19:04: liquibase: java.lang.NullPointerException liquibase.exception.LiquibaseException: liquibase.command.CommandExecutionException: java.lang.NullPointerException at liquibase.integration.commandline.CommandLineUtils.doGenerateChangeLog(CommandLineUtils.java:155) at liquibase.integration.commandline.Main.doMigration(Main.java:951) at liquibase.integration.commandline.Main.run(Main.java:175) at liquibase.integration.commandline.Main.main(Main.java:94) Caused by: liquibase.command.CommandExecutionException: java.lang.NullPointerException at liquibase.command.AbstractCommand.execute(AbstractCommand.java:13) at liquibase.integration.commandline.CommandLineUtils.doGenerateChangeLog(CommandLineUtils.java:153) ... 3 more Caused by: java.lang.NullPointerException at liquibase.datatype.DataTypeFactory.from(DataTypeFactory.java:206) at liquibase.diff.output.changelog.core.MissingTableChangeGenerator.fixMissing(MissingTableChangeGenerator.java:69) at liquibase.diff.output.changelog.ChangeGeneratorChain.fixMissing(ChangeGeneratorChain.java:48) at liquibase.diff.output.changelog.ChangeGeneratorFactory.fixMissing(ChangeGeneratorFactory.java:99) at liquibase.diff.output.changelog.DiffToChangeLog.generateChangeSets(DiffToChangeLog.java:145) at liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:125) at liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:76) at liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:64) at liquibase.command.GenerateChangeLogCommand.run(GenerateChangeLogCommand.java:54) at liquibase.command.AbstractCommand.execute(AbstractCommand.java:8) ... 4 more For more information, use the --logLevel flag C:\TEMP\liquibug> {noformat}

    JIRA | 1 year ago | Henning Hoefer
    liquibase.exception.LiquibaseException: liquibase.command.CommandExecutionException: java.lang.NullPointerException
  3. 0

    Extension fails to load hibernate driver and breaks if I manually specify it

    GitHub | 2 years ago | Jazzepi
    liquibase.exception.LiquibaseException: liquibase.command.CommandExecutionException: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Liquibase Hibernate Plugin Does Not Work

    Stack Overflow | 2 years ago | Jazzepi
    liquibase.exception.LiquibaseException: liquibase.command.CommandExecutionException: java.lang.NullPointerException
  6. 0

    Using diffChangeLog on the following two PostgreSQL databases: -- source CREATE SCHEMA test; CREATE TABLE test."PARENT" (id integer PRIMARY KEY); CREATE TABLE child (id integer, parent integer REFERENCES test."PARENT"(id)); -- target CREATE SCHEMA test; CREATE TABLE test."PARENT" (id integer PRIMARY KEY); gives me this NullPointerException: liquibase.exception.LiquibaseException: liquibase.command.CommandExecutionException: java.lang.NullPointerException at liquibase.integration.commandline.CommandLineUtils.doDiffToChangeLog(CommandLineUtils.java:107) at liquibase.integration.commandline.Main.doMigration(Main.java:889) at liquibase.integration.commandline.Main.run(Main.java:170) at liquibase.integration.commandline.Main.main(Main.java:89) Caused by: liquibase.command.CommandExecutionException: java.lang.NullPointerException at liquibase.command.AbstractCommand.execute(AbstractCommand.java:13) at liquibase.integration.commandline.CommandLineUtils.doDiffToChangeLog(CommandLineUtils.java:105) ... 3 more Caused by: java.lang.NullPointerException at liquibase.diff.output.changelog.core.MissingForeignKeyChangeGenerator.fixMissing(MissingForeignKeyChangeGenerator.java:43) at liquibase.diff.output.changelog.ChangeGeneratorChain.fixMissing(ChangeGeneratorChain.java:44) at liquibase.diff.output.changelog.ChangeGeneratorFactory.fixMissing(ChangeGeneratorFactory.java:99) at liquibase.diff.output.changelog.DiffToChangeLog.generateChangeSets(DiffToChangeLog.java:147) at liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:127) at liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:65) at liquibase.command.DiffToChangeLogCommand.run(DiffToChangeLogCommand.java:59) at liquibase.command.AbstractCommand.execute(AbstractCommand.java:8) ... 4 more This does not occur when the referenced table is named all lowercase. Here is an extract from the diff command. Note the "null": Missing Column(s): child.id child.parent Missing Foreign Key(s): child_parent_fkey(child.parent -> null.id) Missing Table(s): child

    JIRA | 2 years ago | Jan Strube
    liquibase.exception.LiquibaseException: liquibase.command.CommandExecutionException: java.lang.NullPointerException

    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.from()
    2. Liquibase Core
      Main.main
      1. liquibase.datatype.DataTypeFactory.from(DataTypeFactory.java:206)
      2. liquibase.diff.output.changelog.core.MissingTableChangeGenerator.fixMissing(MissingTableChangeGenerator.java:69)
      3. liquibase.diff.output.changelog.ChangeGeneratorChain.fixMissing(ChangeGeneratorChain.java:48)
      4. liquibase.diff.output.changelog.ChangeGeneratorFactory.fixMissing(ChangeGeneratorFactory.java:99)
      5. liquibase.diff.output.changelog.DiffToChangeLog.generateChangeSets(DiffToChangeLog.java:145)
      6. liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:125)
      7. liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:76)
      8. liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:64)
      9. liquibase.command.GenerateChangeLogCommand.run(GenerateChangeLogCommand.java:54)
      10. liquibase.command.AbstractCommand.execute(AbstractCommand.java:8)
      11. liquibase.integration.commandline.CommandLineUtils.doGenerateChangeLog(CommandLineUtils.java:153)
      12. liquibase.integration.commandline.Main.doMigration(Main.java:951)
      13. liquibase.integration.commandline.Main.run(Main.java:175)
      14. liquibase.integration.commandline.Main.main(Main.java:94)
      14 frames