On Fri, 25 Aug 2006 06:58:49 -0400
[EMAIL PROTECTED] wrote:
> Hi Prad,
>
> prad <[EMAIL PROTECTED]> wrote on 08/24/2006 03:18:52 AM:
>
> > Thank U very much....every thing is workin fine...But for few files
> after
> > serializing if i try to create svgdom using SAXSVGDocumentFactory's
> > createSVGDoucment() method it giving some
> java.io.UTFDataFomatException...
>
> I don't have a clue what would be causing this. Does anyone
> else have any ideas.
My guess is that the file is not actually UTF8. Probably contains an invalid
character. Possibly one of the high-bit non-standard windows characters or
something.
>
> > The exception was ...
> > java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence.
> > at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown
> Source)
>
> I have to wonder a little at this exception because AFAIK
> there is no invalid byte 1 of a 1-byte UTF-8 sequence
> (a 1 byte UTF-8 sequence is any byte with the high bit clear,
> but in this case all of 0x00-0x7F I thought were valid).
If I remember correctly, most of the bytes between 0x00 and 0x1f are not valid
in XML (except cr, lf, and tab, of course).
Possibly a formfeed? I can see that accidentally ending up in a "text" file
and making the XML parser unhappy.
>
> > 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.skipChar(Unknown
> Source)
>
> I wonder a little that this happend in xerces while loading
> an entity. I wonder if it's a bug... You might try updating the
> Xerces you are using....
G. Wade
--
I've been living on the edge too long, where the winds of limbo roar.
-- "Veteran of Psychic Wars", Blue Oyster Cult
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]