java.lang.RuntimeException: Property 'relativeToChangelogFile' not found on object type liquibase.change.core.LoadDataChange

JIRA | Dmitry Gil | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    In spite of the fact that https://liquibase.jira.com/browse/CORE-549 claims that the new property relativeToChangelogFile is available for LoadData data change, a database update fails with the error: {code} java.lang.RuntimeException: Property 'relativeToChangelogFile' not found on object type liquibase.change.core.LoadDataChange at liquibase.util.ObjectUtil.setProperty(ObjectUtil.java:71) at liquibase.parser.core.xml.XMLChangeLogSAXHandler.setProperty(XMLChangeLogSAXHandler.java:590) at liquibase.parser.core.xml.XMLChangeLogSAXHandler.setAllProperties(XMLChangeLogSAXHandler.java:517) at liquibase.parser.core.xml.XMLChangeLogSAXHandler.startElement(XMLChangeLogSAXHandler.java:405) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at liquibase.parser.core.xml.XMLChangeLogSAXParser.parse(XMLChangeLogSAXParser.java:101) at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:216) at liquibase.Liquibase.listUnrunChangeSets(Liquibase.java:776) at liquibase.Liquibase.reportStatus(Liquibase.java:797) at liquibase.Liquibase.reportStatus(Liquibase.java:790) at liquibase.integration.commandline.Main.doMigration(Main.java:840) at liquibase.integration.commandline.Main.main(Main.java:133) Liquibase status Failed: Invalid Migration File: Property 'relativeToChangelogFile' not found on object type liquibase.change.core.LoadDataChange {code} The changelog is the following: {code} <?xml version="1.0" encoding="UTF-8" standalone="no"?> <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.3.xsd"> <changeSet author="dgil" id="123" runOnChange="true"> <loadData file="CodeType.csv" tableName="CodeType_Tmp" relativeToChangelogFile="true"/> </changeSet> </databaseChangeLog> {code}

    JIRA | 3 years ago | Dmitry Gil
    java.lang.RuntimeException: Property 'relativeToChangelogFile' not found on object type liquibase.change.core.LoadDataChange
  2. 0

    In spite of the fact that https://liquibase.jira.com/browse/CORE-549 claims that the new property relativeToChangelogFile is available for LoadData data change, a database update fails with the error: {code} java.lang.RuntimeException: Property 'relativeToChangelogFile' not found on object type liquibase.change.core.LoadDataChange at liquibase.util.ObjectUtil.setProperty(ObjectUtil.java:71) at liquibase.parser.core.xml.XMLChangeLogSAXHandler.setProperty(XMLChangeLogSAXHandler.java:590) at liquibase.parser.core.xml.XMLChangeLogSAXHandler.setAllProperties(XMLChangeLogSAXHandler.java:517) at liquibase.parser.core.xml.XMLChangeLogSAXHandler.startElement(XMLChangeLogSAXHandler.java:405) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at liquibase.parser.core.xml.XMLChangeLogSAXParser.parse(XMLChangeLogSAXParser.java:101) at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:216) at liquibase.Liquibase.listUnrunChangeSets(Liquibase.java:776) at liquibase.Liquibase.reportStatus(Liquibase.java:797) at liquibase.Liquibase.reportStatus(Liquibase.java:790) at liquibase.integration.commandline.Main.doMigration(Main.java:840) at liquibase.integration.commandline.Main.main(Main.java:133) Liquibase status Failed: Invalid Migration File: Property 'relativeToChangelogFile' not found on object type liquibase.change.core.LoadDataChange {code} The changelog is the following: {code} <?xml version="1.0" encoding="UTF-8" standalone="no"?> <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.3.xsd"> <changeSet author="dgil" id="123" runOnChange="true"> <loadData file="CodeType.csv" tableName="CodeType_Tmp" relativeToChangelogFile="true"/> </changeSet> </databaseChangeLog> {code}

    JIRA | 3 years ago | Dmitry Gil
    java.lang.RuntimeException: Property 'relativeToChangelogFile' not found on object type liquibase.change.core.LoadDataChange

    Root Cause Analysis

    1. java.lang.RuntimeException

      Property 'relativeToChangelogFile' not found on object type liquibase.change.core.LoadDataChange

      at liquibase.util.ObjectUtil.setProperty()
    2. Liquibase Core
      XMLChangeLogSAXHandler.startElement
      1. liquibase.util.ObjectUtil.setProperty(ObjectUtil.java:71)
      2. liquibase.parser.core.xml.XMLChangeLogSAXHandler.setProperty(XMLChangeLogSAXHandler.java:590)
      3. liquibase.parser.core.xml.XMLChangeLogSAXHandler.setAllProperties(XMLChangeLogSAXHandler.java:517)
      4. liquibase.parser.core.xml.XMLChangeLogSAXHandler.startElement(XMLChangeLogSAXHandler.java:405)
      4 frames
    3. Java RT
      SAXParserImpl$JAXPSAXParser.parse
      1. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
      2. com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
      3. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
      4. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
      5. com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
      6. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
      7. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      8. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
      9. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
      10. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
      11. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
      12. com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      12 frames
    4. Liquibase Core
      Main.main
      1. liquibase.parser.core.xml.XMLChangeLogSAXParser.parse(XMLChangeLogSAXParser.java:101)
      2. liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:216)
      3. liquibase.Liquibase.listUnrunChangeSets(Liquibase.java:776)
      4. liquibase.Liquibase.reportStatus(Liquibase.java:797)
      5. liquibase.Liquibase.reportStatus(Liquibase.java:790)
      6. liquibase.integration.commandline.Main.doMigration(Main.java:840)
      7. liquibase.integration.commandline.Main.main(Main.java:133)
      7 frames