[ 
https://issues.apache.org/jira/browse/OFBIZ-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630750#action_12630750
 ] 

BJ Freeman commented on OFBIZ-1957:
-----------------------------------

this is the error log from the same I did on my local copy
using Windows machine with just EN enabled.


An error occurred saving the data, rolling back transaction (true)
Exception: java.io.CharConversionException
Message: Invalid UTF-8 Encoding
---- stack trace ---------------------------------------------------------------
java.io.CharConversionException: Invalid UTF-8 Encoding
javolution.io.UTF8StreamReader.read2(Unknown Source)
javolution.io.UTF8StreamReader.read2(Unknown Source)
javolution.io.UTF8StreamReader.read(Unknown Source)
javolution.xml.stream.XMLStreamReaderImpl.setInput(Unknown Source)
javolution.xml.stream.XMLStreamReaderImpl.setInput(Unknown Source)
javolution.xml.stream.XMLStreamReaderImpl.setInput(Unknown Source)
javolution.xml.sax.XMLReaderImpl.parse(Unknown Source)
org.ofbiz.entity.util.EntitySaxReader.parse(EntitySaxReader.java:258)


interesting thing is I used
<?xml version="1.0" encoding="ISO-8859-1"?>
<entity-engine-xml>
<ElectronicText dataResourceId="ERRORE">
<textData>perchè dà errore?</textData>
</ElectronicText>
<entity-engine-xml>
and still got an 
Message: Invalid UTF-8 Encoding

So javolution.xml can only has an UTF8StreamReader
and it probably is not reading the right number of bytes
so I think this should be in the javolution forum. 


> Error parsing entity xml file: java.io.CharConversionException: Invalid UTF-8 
> Encoding
> --------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1957
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1957
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: SVN trunk rev.694324
>            Reporter: Bruno Busco
>
> While using webtools XML data import feature to import a file containing this:
> <?xml version="1.0" encoding="UTF-8"?>
> <entity-engine-xml>
>   <ElectronicText dataResourceId="ERRORE">
>       <textData>perchè dà errore?</textData>
>   </ElectronicText>
> <entity-engine-xml>
> the following error if given:
> ERROR: Error parsing entity xml file: java.io.CharConversionException: 
> Invalid UTF-8 Encoding
> The same happens if the import textbox is used
> I have found this subject recurring many time in the mailing lists archive 
> but never with a conclusion (AFAIK).
> May be a related issue that could help to fix this is: OFBIZ-1083 where a 
> similar problem was fixed for emails.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to