liquibase.exception.ChangeLogParseException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Am I doing something wrong or there is a bug somewhere in liquibase? When I'm using includeAll in master changelog xml file liquibase produce an error Unexpected error running Liquibase: Unknown Reason. {code:java} java -jar /www/build-tools/liquibase.jar --changeLogFile=/www/fulldb.xml --username=root --password=root --url=jdbc:mysql://192.168.200.1:3306/test --driver=com.mysql.jdbc.Driver --classpath=/www/build-tools/lib/mysql-connector-java-5.0.8-bin.jar --logLevel=debug update {code} I'm getting the following error {code:java} DEBUG 3/20/15 1:56 PM: liquibase: Connected to root@test.loc@jdbc:mysql://192.168.200.1:3306/test DEBUG 3/20/15 1:56 PM: liquibase: Setting auto commit to false from true DEBUG 3/20/15 1:56 PM: liquibase: Computed checksum for 1426859801026 as 38b6abd8d7002dd80cd63fc73595547f DEBUG 3/20/15 1:56 PM: liquibase: Executing QUERY database command: select count(*) from test.DATABASECHANGELOGLOCK DEBUG 3/20/15 1:56 PM: liquibase: Executing QUERY database command: SELECT LOCKED FROM test.DATABASECHANGELOGLOCK WHERE ID=1 DEBUG 3/20/15 1:56 PM: liquibase: Lock Database DEBUG 3/20/15 1:56 PM: liquibase: Executing UPDATE database command: UPDATE test.DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = 'precise32 (192.168.200.1)', LOCKGRANTED = '2015-03-20 13:56:41.096' WHERE ID = 1 AND LOCKED = 0 INFO 3/20/15 1:56 PM: liquibase: Successfully acquired change log lock DEBUG 3/20/15 1:56 PM: liquibase: Resolving XML entity name='null', publicId='null', baseURI='null', systemId='http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd' DEBUG 3/20/15 1:56 PM: liquibase: Found namespace details class liquibase.parser.core.xml.StandardNamespaceDetails for http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd DEBUG 3/20/15 1:56 PM: liquibase: Local path for http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd is liquibase/parser/core/xml/dbchangelog-3.3.xsd DEBUG 3/20/15 1:56 PM: liquibase: Successfully loaded XSD from liquibase/parser/core/xml/dbchangelog-3.3.xsd DEBUG 3/20/15 1:56 PM: liquibase: includeAll for /www/db/ DEBUG 3/20/15 1:56 PM: liquibase: Using file opener for includeAll: liquibase.resource.CompositeResourceAccessor(liquibase.resource.FileSystemResourceAccessor(/home/vagrant/.),liquibase.integration.commandline.CommandLineResourceAccessor(file:/www/build-tools/lib/mysql-connector-java-5.0.8-bin.jar)) DEBUG 3/20/15 1:56 PM: liquibase: Release Database Lock DEBUG 3/20/15 1:56 PM: liquibase: Executing UPDATE database command: UPDATE test.DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1 INFO 3/20/15 1:56 PM: liquibase: Successfully released change log lock Unexpected error running Liquibase: Unknown Reason SEVERE 3/20/15 1:56 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:215) at liquibase.Liquibase.update(Liquibase.java:192) at liquibase.integration.commandline.Main.doMigration(Main.java:1044) at liquibase.integration.commandline.Main.run(Main.java:175) at liquibase.integration.commandline.Main.main(Main.java:94) Caused by: liquibase.exception.SetupException at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:334) at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:264) at liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:211) at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:25) ... 5 more Caused by: java.lang.NullPointerException at java.util.AbstractCollection.addAll(AbstractCollection.java:341) at liquibase.integration.commandline.CommandLineResourceAccessor.list(CommandLineResourceAccessor.java:39) at liquibase.resource.CompositeResourceAccessor.list(CompositeResourceAccessor.java:40) at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:316) ... 8 more {code} See fulldb.xml and changelog xml files in attachments. When I use regular <include> with bunch of files everything is okay.
    via by Igor Dobritskiy,
  • Am I doing something wrong or there is a bug somewhere in liquibase? When I'm using includeAll in master changelog xml file liquibase produce an error Unexpected error running Liquibase: Unknown Reason. {code:java} java -jar /www/build-tools/liquibase.jar --changeLogFile=/www/fulldb.xml --username=root --password=root --url=jdbc:mysql://192.168.200.1:3306/test --driver=com.mysql.jdbc.Driver --classpath=/www/build-tools/lib/mysql-connector-java-5.0.8-bin.jar --logLevel=debug update {code} I'm getting the following error {code:java} DEBUG 3/20/15 1:56 PM: liquibase: Connected to root@test.loc@jdbc:mysql://192.168.200.1:3306/test DEBUG 3/20/15 1:56 PM: liquibase: Setting auto commit to false from true DEBUG 3/20/15 1:56 PM: liquibase: Computed checksum for 1426859801026 as 38b6abd8d7002dd80cd63fc73595547f DEBUG 3/20/15 1:56 PM: liquibase: Executing QUERY database command: select count(*) from test.DATABASECHANGELOGLOCK DEBUG 3/20/15 1:56 PM: liquibase: Executing QUERY database command: SELECT LOCKED FROM test.DATABASECHANGELOGLOCK WHERE ID=1 DEBUG 3/20/15 1:56 PM: liquibase: Lock Database DEBUG 3/20/15 1:56 PM: liquibase: Executing UPDATE database command: UPDATE test.DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = 'precise32 (192.168.200.1)', LOCKGRANTED = '2015-03-20 13:56:41.096' WHERE ID = 1 AND LOCKED = 0 INFO 3/20/15 1:56 PM: liquibase: Successfully acquired change log lock DEBUG 3/20/15 1:56 PM: liquibase: Resolving XML entity name='null', publicId='null', baseURI='null', systemId='http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd' DEBUG 3/20/15 1:56 PM: liquibase: Found namespace details class liquibase.parser.core.xml.StandardNamespaceDetails for http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd DEBUG 3/20/15 1:56 PM: liquibase: Local path for http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd is liquibase/parser/core/xml/dbchangelog-3.3.xsd DEBUG 3/20/15 1:56 PM: liquibase: Successfully loaded XSD from liquibase/parser/core/xml/dbchangelog-3.3.xsd DEBUG 3/20/15 1:56 PM: liquibase: includeAll for /www/db/ DEBUG 3/20/15 1:56 PM: liquibase: Using file opener for includeAll: liquibase.resource.CompositeResourceAccessor(liquibase.resource.FileSystemResourceAccessor(/home/vagrant/.),liquibase.integration.commandline.CommandLineResourceAccessor(file:/www/build-tools/lib/mysql-connector-java-5.0.8-bin.jar)) DEBUG 3/20/15 1:56 PM: liquibase: Release Database Lock DEBUG 3/20/15 1:56 PM: liquibase: Executing UPDATE database command: UPDATE test.DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1 INFO 3/20/15 1:56 PM: liquibase: Successfully released change log lock Unexpected error running Liquibase: Unknown Reason SEVERE 3/20/15 1:56 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:215) at liquibase.Liquibase.update(Liquibase.java:192) at liquibase.integration.commandline.Main.doMigration(Main.java:1044) at liquibase.integration.commandline.Main.run(Main.java:175) at liquibase.integration.commandline.Main.main(Main.java:94) Caused by: liquibase.exception.SetupException at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:334) at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:264) at liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:211) at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:25) ... 5 more Caused by: java.lang.NullPointerException at java.util.AbstractCollection.addAll(AbstractCollection.java:341) at liquibase.integration.commandline.CommandLineResourceAccessor.list(CommandLineResourceAccessor.java:39) at liquibase.resource.CompositeResourceAccessor.list(CompositeResourceAccessor.java:40) at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:316) ... 8 more {code} See fulldb.xml and changelog xml files in attachments. When I use regular <include> with bunch of files everything is okay.
    via by Igor Dobritskiy,
  • Liquibase Error
    via Stack Overflow by Ajeet Singh
    ,
  • $ cat /opt/liquibase/conf/liquibase.properties driver: com.mysql.jdbc.Driver classpath: /opt/liquibase/lib/mysql-connector-java-5.1.39-bin.jar url: jdbc:mysql://localhost:9527/lqbase?useUnicode=true&characterEncoding=UTF-8 username: <username> password: <password> {color:red}changeLogFile: /opt/liquibase/conf/changelog.xml{color} logLevel: info $ cat /opt/liquibase/conf/changelog.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"> {color:red} <includeAll path="/opt/db_migration/"/>{color} </databaseChangeLog> \# Some errors occur while updating DB $ /opt/liquibase/liquibase --defaultsFile=/opt/liquibase/conf/liquibase.properties update INFO 9/22/16 5:19 PM: liquibase: Successfully acquired change log lock INFO 9/22/16 5:19 PM: liquibase: Successfully released change log lock Unexpected error running Liquibase: Unknown Reason SEVERE 9/22/16 5:19 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:1130) at liquibase.integration.commandline.Main.run(Main.java:188) at liquibase.integration.commandline.Main.main(Main.java:103) Caused by: liquibase.exception.SetupException at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:448) at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:352) 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 java.util.AbstractCollection.addAll(AbstractCollection.java:343) at liquibase.integration.commandline.CommandLineResourceAccessor.list(CommandLineResourceAccessor.java:44) at liquibase.resource.CompositeResourceAccessor.list(CompositeResourceAccessor.java:40) at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:425) ... 9 more
    via by Corey,
  • GitHub comment 6#75961981
    via GitHub by iimog
    ,
  • Tranquility and cardinality metrics
    via by Darrin Thompson,
  • NullPointerException
    via GitHub by msf0r
    ,
    • liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:27) at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:215) at liquibase.Liquibase.update(Liquibase.java:192) at liquibase.integration.commandline.Main.doMigration(Main.java:1044) at liquibase.integration.commandline.Main.run(Main.java:175) at liquibase.integration.commandline.Main.main(Main.java:94) Caused by: liquibase.exception.SetupException at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:334) at liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:264) at liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:211) at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:25) ... 5 more Caused by: java.lang.NullPointerException at java.util.AbstractCollection.addAll(AbstractCollection.java:341) at liquibase.integration.commandline.CommandLineResourceAccessor.list(CommandLineResourceAccessor.java:39) at liquibase.resource.CompositeResourceAccessor.list(CompositeResourceAccessor.java:40) at liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:316) ... 8 more

    Users with the same issue

    Unknown visitor
    Unknown visitor2 times, last one,
    andyglickandyglick
    1 times, last one,
    tvrmsmithtvrmsmith
    10 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,