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
- liquibase --changeLogFile=changelog.xml generateChangeLog
with the following liquibase.properties file
- driver: com.mysql.jdbc.Driver
- classpath: C:\\Program Files (x86)\\MySQL\\Connector J 5.1.30\\mysql-connector-java-5.1.30-bin.jar
- url: jdbc:mysql://localhost/adtest
- username: root
- password: ***********
- logFile: liquibase.txt
- logLevel:debug
The following is an excerpt from the log file
- INFO 8/25/14 1:40 PM: liquibase: changelog.xml does not exist, creating
- 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
- SEVERE 8/25/14 1:40 PM: liquibase: java.lang.NullPointerException
- liquibase.exception.LiquibaseException: liquibase.command.CommandExecutionException: java.lang.NullPointerException
- at liquibase.integration.commandline.CommandLineUtils.doGenerateChangeLog(CommandLineUtils.java:139)
- at liquibase.integration.commandline.Main.doMigration(Main.java:904)
- 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.doGenerateChangeLog(CommandLineUtils.java:137)
- ... 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:73)
- at liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:61)
- at liquibase.command.GenerateChangeLogCommand.run(GenerateChangeLogCommand.java:54)
- at liquibase.command.AbstractCommand.execute(AbstractCommand.java:8)
- ... 4 more