[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Invalid byte 2 of 2-byte UTF-8 sequence exception whil

Subject: Invalid byte 2 of 2-byte UTF-8 sequence exception while transforming
From: "Pankaj Bishnoi" <pankaj.bishnoi@xxxxxxxxxxx>
Date: Fri, 2 Feb 2007 14:47:38 +0530
 Invalid byte 2 of 2-byte UTF-8 sequence exception whil
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.