liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException

JIRA | Igor Dobritskiy | 2 years ago
  1. 0

    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.

    JIRA | 2 years ago | Igor Dobritskiy
    liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException
  2. 0

    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.

    JIRA | 2 years ago | Igor Dobritskiy
    liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException
  3. 0

    Liquibase Error

    Stack Overflow | 2 years ago | Ajeet Singh
    liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException: liquibase.exception.SetupException: liquibase.exception.SetupException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    $ 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

    JIRA | 3 months ago | Corey
    liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException
  6. 0

    interop: NPE in java Set.addAll()

    GitHub | 2 years ago | jpragey
    java.lang.NullPointerException

    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 java.util.AbstractCollection.addAll()
    2. Java RT
      AbstractCollection.addAll
      1. java.util.AbstractCollection.addAll(AbstractCollection.java:341)
      1 frame
    3. Liquibase Core
      Main.main
      1. liquibase.integration.commandline.CommandLineResourceAccessor.list(CommandLineResourceAccessor.java:39)
      2. liquibase.resource.CompositeResourceAccessor.list(CompositeResourceAccessor.java:40)
      3. liquibase.changelog.DatabaseChangeLog.includeAll(DatabaseChangeLog.java:316)
      4. liquibase.changelog.DatabaseChangeLog.handleChildNode(DatabaseChangeLog.java:264)
      5. liquibase.changelog.DatabaseChangeLog.load(DatabaseChangeLog.java:211)
      6. liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:25)
      7. liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:215)
      8. liquibase.Liquibase.update(Liquibase.java:192)
      9. liquibase.integration.commandline.Main.doMigration(Main.java:1044)
      10. liquibase.integration.commandline.Main.run(Main.java:175)
      11. liquibase.integration.commandline.Main.main(Main.java:94)
      11 frames