Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

NullPointerException when running generateChangeLog using MySQL and Liquibase 3.2.2

$
0
0
I am trying to generate a changeLog using an already existing database so I can begin using Liquibase from this point forward. When running the command 
  1. liquibase --changeLogFile=changelog.xml generateChangeLog
with the following liquibase.properties file
  1. driver: com.mysql.jdbc.Driver
  2. classpath: C:\\Program Files (x86)\\MySQL\\Connector J 5.1.30\\mysql-connector-java-5.1.30-bin.jar
  3. url: jdbc:mysql://localhost/adtest
  4. username: root
  5. password: ***********
  6. logFile: liquibase.txt
  7. logLevel:debug
I get "Unexpected error running Liquibase: java.lang.NullPointerException
The following is an excerpt from the log file
  1. INFO 8/25/14 1:40 PM: liquibase: changelog.xml does not exist, creating
  2. DEBUG 8/25/14 1:40 PM: liquibase: MissingObjectChangeGenerator type order:     liquibase.structure.core.Catalog    liquibase.structure.core.Schema    liquibase.structure.core.Sequence    liquibase.structure.core.StoredProcedure    liquibase.structure.core.Table    liquibase.structure.core.Column    liquibase.structure.core.PrimaryKey    liquibase.structure.core.UniqueConstraint    liquibase.structure.core.ForeignKey    liquibase.structure.core.Index    liquibase.structure.core.View
  3. SEVERE 8/25/14 1:40 PM: liquibase: java.lang.NullPointerException
  4. liquibase.exception.LiquibaseException: liquibase.command.CommandExecutionException: java.lang.NullPointerException
  5. at liquibase.integration.commandline.CommandLineUtils.doGenerateChangeLog(CommandLineUtils.java:139)
  6. at liquibase.integration.commandline.Main.doMigration(Main.java:904)
  7. at liquibase.integration.commandline.Main.run(Main.java:170)
  8. at liquibase.integration.commandline.Main.main(Main.java:89)
  9. Caused by: liquibase.command.CommandExecutionException: java.lang.NullPointerException
  10. at liquibase.command.AbstractCommand.execute(AbstractCommand.java:13)
  11. at liquibase.integration.commandline.CommandLineUtils.doGenerateChangeLog(CommandLineUtils.java:137)
  12. ... 3 more
  13. Caused by: java.lang.NullPointerException
  14. at liquibase.diff.output.changelog.core.MissingForeignKeyChangeGenerator.fixMissing(MissingForeignKeyChangeGenerator.java:43)
  15. at liquibase.diff.output.changelog.ChangeGeneratorChain.fixMissing(ChangeGeneratorChain.java:44)
  16. at liquibase.diff.output.changelog.ChangeGeneratorFactory.fixMissing(ChangeGeneratorFactory.java:99)
  17. at liquibase.diff.output.changelog.DiffToChangeLog.generateChangeSets(DiffToChangeLog.java:147)
  18. at liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:127)
  19. at liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:73)
  20. at liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:61)
  21. at liquibase.command.GenerateChangeLogCommand.run(GenerateChangeLogCommand.java:54)
  22. at liquibase.command.AbstractCommand.execute(AbstractCommand.java:8)
  23. ... 4 more
Any help would be greatly appreciated

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>