liquibase.exception.ChangeLogParseException: Error Reading Migration File: Invalid byte 2 of 2-byte UTF-8 sequence.

Apereo Issues | Dan McCallum | 4 years ago
  1. 0

    [SSP-894] UTF-8 encoding error trying to execute Liquibase migration script - JASIG Issue Tracker

    jasig.org | 1 year ago
    liquibase.exception.ChangeLogParseException: Error Reading Migration File: Invalid byte 2 of 2-byte UTF-8 sequence.
  2. 0

    Getting a UTF-8 encoding error trying to run the Liquibase changesets generated from my local Postgres db against another local postgres DB. Started trying to whittle down the schema file to figure out which table might be problematic but haven't gotten far enough in doing so, I guess. Need to switch to other tasks so opening this bug in case you have time to look at it, Tyler. I do understand that it might be something specific to my env. FWIW, if, in my IDE I open the generated XML file, delete the first changeset (disable FKs in MSSQL), save it, and try to run it again, it works fine. But if I just comment out the code for generating that changeset and re-generate the complete file, I get the same error. {noformat} Liquibase Update Failed: Invalid byte 2 of 2-byte UTF-8 sequence. SEVERE 3/26/13 1:26 PM:liquibase: Invalid byte 2 of 2-byte UTF-8 sequence. liquibase.exception.ChangeLogParseException: Error Reading Migration File: Invalid byte 2 of 2-byte UTF-8 sequence. at liquibase.parser.core.xml.XMLChangeLogSAXParser.parse(XMLChangeLogSAXParser.java:104) at liquibase.Liquibase.update(Liquibase.java:106) at liquibase.integration.commandline.Main.doMigration(Main.java:779) at liquibase.integration.commandline.Main.main(Main.java:133) Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence. at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684) at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:369) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanLiteral(XMLEntityScanner.java:1064) at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(XMLScanner.java:987) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanAttribute(XMLNSDocumentScannerImpl.java:460) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:277) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2756) 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:511) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) 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:119) 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.core.xml.XMLChangeLogSAXParser.parse(XMLChangeLogSAXParser.java:98) ... 3 more {noformat}

    Apereo Issues | 4 years ago | Dan McCallum
    liquibase.exception.ChangeLogParseException: Error Reading Migration File: Invalid byte 2 of 2-byte UTF-8 sequence.
  3. 0

    Getting a UTF-8 encoding error trying to run the Liquibase changesets generated from my local Postgres db against another local postgres DB. Started trying to whittle down the schema file to figure out which table might be problematic but haven't gotten far enough in doing so, I guess. Need to switch to other tasks so opening this bug in case you have time to look at it, Tyler. I do understand that it might be something specific to my env. FWIW, if, in my IDE I open the generated XML file, delete the first changeset (disable FKs in MSSQL), save it, and try to run it again, it works fine. But if I just comment out the code for generating that changeset and re-generate the complete file, I get the same error. {noformat} Liquibase Update Failed: Invalid byte 2 of 2-byte UTF-8 sequence. SEVERE 3/26/13 1:26 PM:liquibase: Invalid byte 2 of 2-byte UTF-8 sequence. liquibase.exception.ChangeLogParseException: Error Reading Migration File: Invalid byte 2 of 2-byte UTF-8 sequence. at liquibase.parser.core.xml.XMLChangeLogSAXParser.parse(XMLChangeLogSAXParser.java:104) at liquibase.Liquibase.update(Liquibase.java:106) at liquibase.integration.commandline.Main.doMigration(Main.java:779) at liquibase.integration.commandline.Main.main(Main.java:133) Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence. at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684) at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:369) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanLiteral(XMLEntityScanner.java:1064) at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(XMLScanner.java:987) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanAttribute(XMLNSDocumentScannerImpl.java:460) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:277) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2756) 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:511) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) 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:119) 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.core.xml.XMLChangeLogSAXParser.parse(XMLChangeLogSAXParser.java:98) ... 3 more {noformat}

    Apereo Issues | 4 years ago | Dan McCallum
    liquibase.exception.ChangeLogParseException: Error Reading Migration File: Invalid byte 2 of 2-byte UTF-8 sequence.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Invalid byte 2 of 2-byte UTF-8 sequence解决方案 - 风达的专栏 - 博客频道 - CSDN.NET

    csdn.net | 1 year ago
    com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence.
  6. 0

    Invalid byte 2 of 2-byte UTF-8 sequence解决方案 - balaamwe - 博客园

    cnblogs.com | 8 months ago
    com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence.

    6 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. com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException

      Invalid byte 2 of 2-byte UTF-8 sequence.

      at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte()
    2. Java RT
      SAXParserImpl$JAXPSAXParser.parse
      1. com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:684)
      2. com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:369)
      3. com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742)
      4. com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanLiteral(XMLEntityScanner.java:1064)
      5. com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(XMLScanner.java:987)
      6. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanAttribute(XMLNSDocumentScannerImpl.java:460)
      7. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:277)
      8. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2756)
      9. com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
      10. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
      11. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
      12. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
      13. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
      14. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
      15. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
      16. com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
      16 frames
    3. Liquibase Core
      Main.main
      1. liquibase.parser.core.xml.XMLChangeLogSAXParser.parse(XMLChangeLogSAXParser.java:98)
      2. liquibase.Liquibase.update(Liquibase.java:106)
      3. liquibase.integration.commandline.Main.doMigration(Main.java:779)
      4. liquibase.integration.commandline.Main.main(Main.java:133)
      4 frames