• 1000 dataformat.yaml.JacksonYAMLParseException: java .io.CharConversionException: недопустимый начальный байт UTF-8 0x80 (в char # 158, байт # -1) в [Источник: (Файл); строка: 1, столбец: 1] на com.faster xml .jackson.dataformat.yaml.YAMLParser.nextToken (YAMLParser. java: 361) на com.faster xml .jackson.databind.ObjectMapper._initForReading ( ObjectMapper. java: 4620) при com.faster xml .jackson.databind.ObjectMapper._readMapAndClose (ObjectMapper. java: 4469) при com.faster xml .jackson.databind.ObjectMapper.readValue (ObjectMapper. java: 3299)
мой java код
ObjectMapper objectMapper = new ObjectMapper(new YAMLFactory());
XmlConverterProp prop = objectMapper.readValue(configFile, XmlConverterProp.class);
yml файл
dateFormat: "MM/dd/yyyy=Billing_Date"
lineItemRowNodeName: row
lineItemsNodeName: Mode_Items
removeValueChars: "Net_Amount=$,Unit_Price=Rs.,Item_Amount=€,Gross_Amount=$"
requiredHeaderTags: "cc_BatchDetails,Invoice_Number,Invoice_Date,PO_Number,Document_Type,Vendor_Name,Tax_Amount,Net_Amount,Invoice_Amount,Currency,Gross_Amount,cc_ProfileName,Remit_To_Address_1"
requiredLineTags: "Item_Code,Item_Description,Quantity,Unit_Price,Item_Amount"