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

JIRA | Dmitry Gil | 2 years ago
  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 | 2 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 | 2 years ago | Dmitry Gil
    java.lang.RuntimeException: Property 'relativeToChangelogFile' not found on object type liquibase.change.core.LoadDataChange
  3. 0

    A couple of Portal 8.1 -&gt; 10.3 upgrage problems

    Oracle Community | 7 years ago | 746185
    java.lang.RuntimeException: Could not find property or field "authenticationFormBean" on object of type "class xxx.AuthenticationPFController"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Transferred from Sourceforge: artifact_id: 2376645 submitted_by: ghynx assigned_to: nvoxland priority: 5 resolution: None open_date: 1228214144 aftifact_type: Bugs category: None artifact_group_id: None category: None status: Closed history: close_date01230933737nvoxland assigned_to1001230933737nvoxland status_id11230933737nvoxland messages: close_date01230933737nvoxland assigned_to1001230933737nvoxland status_id11230933737nvoxland Using a <sql> tag with a "tableName" (<sql tableName="mytable">) raise the following error ------------------------------------- java.lang.RuntimeException: Property not found: tableName at liquibase.util.ObjectUtil.setProperty(ObjectUtil.java:38) at liquibase.parser.xml.XMLChangeLogHandler.setProperty(XMLChangeLogHandler.java:251) at liquibase.parser.xml.XMLChangeLogHandler.startElement(XMLChangeLogHandler.java:158) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:688) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2740) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at liquibase.parser.xml.XMLChangeLogParser.parse(XMLChangeLogParser.java:70) at liquibase.parser.ChangeLogParser.parse(ChangeLogParser.java:24) at liquibase.Liquibase.update(Liquibase.java:107) at liquibase.commandline.Main.doMigration(Main.java:637) at liquibase.commandline.Main.main(Main.java:90) Migration Failed: Property not found: tableName -------------------------------- Think it must be a problem with the schema, i can't see why we need a tablename here .... suggest to change schema to disallow usage of tablename in <sql> tag . regards

    JIRA | 8 years ago | ghynx
    java.lang.RuntimeException: Property not found: tableName
  6. 0

    Transferred from Sourceforge: artifact_id: 2376645 submitted_by: ghynx assigned_to: nvoxland priority: 5 resolution: None open_date: 1228214144 aftifact_type: Bugs category: None artifact_group_id: None category: None status: Closed history: close_date01230933737nvoxland assigned_to1001230933737nvoxland status_id11230933737nvoxland messages: close_date01230933737nvoxland assigned_to1001230933737nvoxland status_id11230933737nvoxland Using a <sql> tag with a "tableName" (<sql tableName="mytable">) raise the following error ------------------------------------- java.lang.RuntimeException: Property not found: tableName at liquibase.util.ObjectUtil.setProperty(ObjectUtil.java:38) at liquibase.parser.xml.XMLChangeLogHandler.setProperty(XMLChangeLogHandler.java:251) at liquibase.parser.xml.XMLChangeLogHandler.startElement(XMLChangeLogHandler.java:158) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:688) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2740) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at liquibase.parser.xml.XMLChangeLogParser.parse(XMLChangeLogParser.java:70) at liquibase.parser.ChangeLogParser.parse(ChangeLogParser.java:24) at liquibase.Liquibase.update(Liquibase.java:107) at liquibase.commandline.Main.doMigration(Main.java:637) at liquibase.commandline.Main.main(Main.java:90) Migration Failed: Property not found: tableName -------------------------------- Think it must be a problem with the schema, i can't see why we need a tablename here .... suggest to change schema to disallow usage of tablename in <sql> tag . regards

    JIRA | 8 years ago | ghynx
    java.lang.RuntimeException: Property not found: tableName

    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.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