Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

org.xml.sax.SAXParseException: Invalid byte 2 of 3-byte UTF-8 sequence

I am encountering the above error in production environment whereas the process went fine in UAT.

I was wondering whether this error is related to jar file loading. We are using webmethods and the above error occurred for a java service.

like image 766
abhijith501 Avatar asked Oct 26 '12 16:10

abhijith501


1 Answers

The most likely scenario is that the file is ISO-8859-1 encoded and contains extended ASCII (characters between 0x80 and 0xff inclusive). The parser is expecting UTF-8 and one of the extended characters is being interpreted as the start of a 3-byte sequence, but is not followed by a byte that is valid in that position.

like image 75
Jim Garrison Avatar answered Nov 05 '22 09:11

Jim Garrison



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!