commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessio Pace <alessio.p...@gmail.com>
Subject [Digester] xpp throws an ArrayIndexOutOfBoundsException with very long text nodes
Date Fri, 10 Feb 2006 16:13:37 GMT
Hi,

I am using commons-digester-1.7 with xpp-1.1.3.4.0 (compile from xpp
repository) and with an input XML that is like:

<root>
    <foo>
        <bar><![CDATA[ "VERY VERY LONG CONTENT" ]]></bar>
    </foo>
    ...
</root>

I get this stack trace when it is the point of parsing the <bar> element

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
    at java.lang.System.arraycopy(Native Method)
    at org.gjt.xpp.impl.tokenizer.Tokenizer.next(Tokenizer.java:1274)
    at org.gjt.xpp.impl.pullparser.PullParser.next(PullParser.java:392)
    at org.gjt.xpp.sax2.Driver.parseSubTree(Driver.java:415)
    at org.gjt.xpp.sax2.Driver.parse(Driver.java:310)
    at org.apache.commons.digester.Digester.parse(Digester.java:1685)


Other infos:
I tried also with xpp-1.1.3.4-RC8 (the lastest on ibiblio maven2 repository)
with the same results.


Is it something related *only* to xpp (the
org.gjt.xpp.impl.tokenizer.Tokenizer  class) or is it something related also
to Digester?

Thanks in advance for any suggestion,

--
Alessio Pace.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message