liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException

JIRA | David Siegal | 3 months ago
  1. 0

    I am running liquibase update from the command line without specifying a classpath. My master changelog file uses includeAll with relativeToChangelogFile="true". The result is a NullPointerException at FileSystemResourceAccessor.convertToPath(). Here are the details: {noformat} $ tree . ├── liquibase │   ├── lib │   │   ├── mysql-connector-java-5.0.8-bin.jar │   │   └── snakeyaml-1.13.jar │   ├── liquibase │   ├── liquibase.bat │   ├── liquibase.jar │   ├── liquibase.properties └── resources ├── changelogs │   ├── db.changelog-10.121.0.xml │   ├── db.changelog-10.121.1.yaml │   └── db.changelog-10.122.0.xml ├── db.changelog-master.xml $ cat liquibase.properties url=jdbc:mysql://127.0.0.1:3306/test username=foo password=bar driver=com.mysql.jdbc.Driver changeLogFile=/Users/dsiegal/Sandbox/tbbportal/liferay/db-change-management/resources/db.changelog-master.xml logLevel=debug $ cat /Users/dsiegal/Sandbox/tbbportal/liferay/db-change-management/resources/db.changelog-master.xml <?xml version="1.0" encoding="UTF-8"?> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd"> <includeAll path="changelogs" errorIfMissingOrEmpty="true" relativeToChangelogFile="true"/> </databaseChangeLog> $ ./liquibase update DEBUG 8/25/16 3:15 PM: liquibase: Connected to foo@localhost@jdbc:mysql://127.0.0.1:3306/test DEBUG 8/25/16 3:15 PM: liquibase: Setting auto commit to false from true DEBUG 8/25/16 3:15 PM: liquibase: Executing QUERY database command: select count(*) from test.DATABASECHANGELOGLOCK DEBUG 8/25/16 3:15 PM: liquibase: Executing QUERY database command: select count(*) from test.DATABASECHANGELOGLOCK DEBUG 8/25/16 3:15 PM: liquibase: Executing QUERY database command: SELECT LOCKED FROM test.DATABASECHANGELOGLOCK WHERE ID=1 DEBUG 8/25/16 3:15 PM: liquibase: Lock Database DEBUG 8/25/16 3:15 PM: liquibase: Executing UPDATE database command: UPDATE test.DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '10.253.93.241 (10.253.93.241)', LOCKGRANTED = '2016-08-25 15:15:31.756' WHERE ID = 1 AND LOCKED = 0 INFO 8/25/16 3:15 PM: liquibase: Successfully acquired change log lock DEBUG 8/25/16 3:15 PM: liquibase: Resolving XML entity name='null', publicId='null', baseURI='null', systemId='http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd' DEBUG 8/25/16 3:15 PM: liquibase: Opening jar:file:/Users/dsiegal/Sandbox/tbbportal/liferay/db-change-management/liquibase/liquibase.jar!/liquibase/parser/core/xml/dbchangelog-3.5.xsd as liquibase/parser/core/xml/dbchangelog-3.5.xsd DEBUG 8/25/16 3:15 PM: liquibase: includeAll for changelogs/ DEBUG 8/25/16 3:15 PM: liquibase: Using file opener for includeAll: liquibase.resource.CompositeResourceAccessor(liquibase.resource.FileSystemResourceAccessor(/Users/dsiegal/Sandbox/tbbportal/liferay/db-change-management/liquibase/.),liquibase.integration.commandline.CommandLineResourceAccessor()) DEBUG 8/25/16 3:15 PM: liquibase: Release Database Lock DEBUG 8/25/16 3:15 PM: liquibase: Executing UPDATE database command: UPDATE test.DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1 INFO 8/25/16 3:15 PM: liquibase: Successfully released change log lock Unexpected error running Liquibase: Unknown Reason SEVERE 8/25/16 3:15 PM: liquibase: Unknown Reason liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:27) at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:229) at liquibase.Liquibase.update(Liquibase.java:202) at liquibase.Liquibase.update(Liquibase.java:192) at liquibase.integration.commandline.Main.doMigration(Main.java:1126) at liquibase.integration.commandline.Main.run(Main.java:184) at liquibase.integration.commandline.Main.main(Main.java:103) Caused by: liquibase.exception.SetupException at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:445) at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:349) at liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:282) at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:25) ... 6 more Caused by: java.lang.NullPointerException at liquibase.resource.FileSystemResourceAccessor.convertToPath(FileSystemResourceAccessor.java:99) at liquibase.resource.AbstractResourceAccessor.getContents(AbstractResourceAccessor.java:90) at liquibase.resource.FileSystemResourceAccessor.list(FileSystemResourceAccessor.java:86) at liquibase.resource.CompositeResourceAccessor.list(CompositeResourceAccessor.java:40) at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:422) ... 9 more {noformat}

    JIRA | 3 months ago | David Siegal
    liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException
  2. 0

    Comment on CORE-2698 found: After upgrading Liquibase to 3.5.1 I'm getting Setup Exception: $ liquibase --contexts="test" update INFO 12.05.16 14:35: liquibase: Successfully acquired change log lock INFO 12.05.16 14:35: liquibase: Successfully released change log lock Unexpected error running Liquibase: liquibase.exception.SetupException SEVERE 12.05.16 14:35: liquibase: liquibase.exception.SetupException liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException: liquibase.exception.SetupException at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:27) at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:229) at liquibase.Liquibase.update(Liquibase.java:202) at liquibase.Liquibase.update(Liquibase.java:192) at liquibase.integration.commandline.Main.doMigration(Main.java:1126) at liquibase.integration.commandline.Main.run(Main.java:184) at liquibase.integration.commandline.Main.main(Main.java:103) Caused by: liquibase.exception.SetupException: liquibase.exception.SetupException at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:322) at liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:282) at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:25) ... 6 more Caused by: liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:27) at liquibase.changelog.DatabaseChangeLog.include(DatabaseChangeLog.java:475) at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:320) ... 8 more Caused by: liquibase.exception.SetupException at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:445) at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:349) at liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:282) at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:25) ... 10 more Caused by: java.lang.NullPointerException at liquibase.resource.FileSystemResourceAccessor.convertToPath(FileSystemResourceAccessor.java:99) at liquibase.resource.AbstractResourceAccessor.getContents(AbstractResourceAccessor.java:90) at liquibase.resource.FileSystemResourceAccessor.list(FileSystemResourceAccessor.java:86) at liquibase.resource.CompositeResourceAccessor.list(CompositeResourceAccessor.java:40) at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:422) ... 13 more For more information, use the --logLevel flag Old version (3.5.0) works good with the same files.

    JIRA | 7 months ago | Nathan Voxland
    liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException: liquibase.exception.SetupException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Comment on CORE-2698 found: After upgrading Liquibase to 3.5.1 I'm getting Setup Exception: $ liquibase --contexts="test" update INFO 12.05.16 14:35: liquibase: Successfully acquired change log lock INFO 12.05.16 14:35: liquibase: Successfully released change log lock Unexpected error running Liquibase: liquibase.exception.SetupException SEVERE 12.05.16 14:35: liquibase: liquibase.exception.SetupException liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException: liquibase.exception.SetupException at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:27) at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:229) at liquibase.Liquibase.update(Liquibase.java:202) at liquibase.Liquibase.update(Liquibase.java:192) at liquibase.integration.commandline.Main.doMigration(Main.java:1126) at liquibase.integration.commandline.Main.run(Main.java:184) at liquibase.integration.commandline.Main.main(Main.java:103) Caused by: liquibase.exception.SetupException: liquibase.exception.SetupException at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:322) at liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:282) at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:25) ... 6 more Caused by: liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:27) at liquibase.changelog.DatabaseChangeLog.include(DatabaseChangeLog.java:475) at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:320) ... 8 more Caused by: liquibase.exception.SetupException at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:445) at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:349) at liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:282) at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:25) ... 10 more Caused by: java.lang.NullPointerException at liquibase.resource.FileSystemResourceAccessor.convertToPath(FileSystemResourceAccessor.java:99) at liquibase.resource.AbstractResourceAccessor.getContents(AbstractResourceAccessor.java:90) at liquibase.resource.FileSystemResourceAccessor.list(FileSystemResourceAccessor.java:86) at liquibase.resource.CompositeResourceAccessor.list(CompositeResourceAccessor.java:40) at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:422) ... 13 more For more information, use the --logLevel flag Old version (3.5.0) works good with the same files.

    JIRA | 7 months ago | Nathan Voxland
    liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException: liquibase.exception.SetupException

    2 unregistered visitors
    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.resource.FileSystemResourceAccessor.convertToPath()
    2. Liquibase Core
      Main.main
      1. liquibase.resource.FileSystemResourceAccessor.convertToPath(FileSystemResourceAccessor.java:99)
      2. liquibase.resource.AbstractResourceAccessor.getContents(AbstractResourceAccessor.java:90)
      3. liquibase.resource.FileSystemResourceAccessor.list(FileSystemResourceAccessor.java:86)
      4. liquibase.resource.CompositeResourceAccessor.list(CompositeResourceAccessor.java:40)
      5. liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:422)
      6. liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:349)
      7. liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:282)
      8. liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:25)
      9. liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:229)
      10. liquibase.Liquibase.update(Liquibase.java:202)
      11. liquibase.Liquibase.update(Liquibase.java:192)
      12. liquibase.integration.commandline.Main.doMigration(Main.java:1126)
      13. liquibase.integration.commandline.Main.run(Main.java:184)
      14. liquibase.integration.commandline.Main.main(Main.java:103)
      14 frames