Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] Invalid byte 2 of 2-byte UTF-8 sequence exception while transforming

From: "Pankaj Bishnoi" <pankaj.bishnoi@----------->
To:
Date: 2/2/2007 9:17:00 AM
HI All
         I am using Xalan2.7.0 for transformation. I am getting a
"MalformedByteSequenceException:: Invalid byte 2 of 2-byte UTF-8 sequence"
exception while transforming a xml file. The encoding defined in input xml
is ISO-8859-1.  Complete stack trace is :::
javax.xml.transform.TransformerException:
org.apache.xerces.impl.io.MalformedByteSequenceException: Invalid byte 2 of
2-byte UTF-8 sequence.
            at
org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerImpl.java
:781)
            at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
755)
            at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1283)
            at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1261)
            at
com.adeptia.indigo.services.mapping.MappingTransformation$1.run(MappingTrans
formation.java:535)
            at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.xerces.impl.io.MalformedByteSequenceException: Invalid
byte 2 of 2-byte UTF-8 sequence.
            at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown
Source)
            at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
            at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
            at org.apache.xerces.impl.XMLEntityScanner.skipString(Unknown
Source)
            at
org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
            at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
            at
org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java:437)
            at org.apache.xalan.transformer.TransformerImpl.transform

What can be the possible cause for this exception ?

Thanks & Regards
Pankaj


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent