Quantcast

OutOfMemoryError when using XMLEventReader

classic Classic list List threaded Threaded
16 messages Options
OutOfMemoryError when using XMLEventReader – I've got a fairly large xml document (200MB) and I'm trying to use XMLEventReader to parse it, but I keep getting Out Of Memory errors. Any sugge...
I just processed on 2.8.0 a 900MB XML file using basically the same code. Differences are: 1. my file is UTF-8 so I opened using fromFile(....
I've tracked it down and it seems to be an issue with the way CDATA is handled. If I add an element that has CDATA near the start of the file wi...
Ok, I can reproduce some variation of this here (different stack trace): object Main { def main(args: Array[String]): Unit = { im...
On Wed, Sep 01, 2010 at 07:29:23PM -0700, huynhjl wrote: > Ok, I can reproduce some variation of this here (different stack > trace): ...
Yes, that adds to the mystery. Here is the full stack trace: Exception in thread "XMLEventReader" java.lang.OutOfMemoryError: Java he...
On Wed, Sep 01, 2010 at 08:40:04PM -0700, huynhjl wrote: > Yes, that adds to the mystery. Here is the full stack trace: That's nice. You'r...
After quite a bit of digging, I think the CData issue is more specific to the use of Stream in MarkupParser.lookahead. I've attached a new patch a...
I was bitten by this or a similar bug today. I have a 700K XHTML file, but with no CDATA. When I read it with the Scala XhtmlParser, I run out o...
Can you try with a nightly build that is older than 9/17? I think the bug is fixed in trunk but hasn't been backported to 2.8.1. That said you...
And by older, I really mean more recent than 9/17.
I used Scala code runner version 2.8.1.r23348-b20101025023151 from the nightly builds. Is that what I should use for testing? I have a sample ...
Use scala-2.9.0.r23354-b20101026020110 for testing. I did a quick test with a bunch of <?docpage num="..."?> and was able to s...
On Tue, Oct 26, 2010 at 9:46 PM, huynhjl <jlh276-gh@...> wrote: > > Cay Horstmann wrote: >> >> I used Scala code runne...
I think I can alleviate the CDATA issue by changing the implementation of "def xCharData: NodeSeq" to be along the line of "def xCo...
On Fri, Aug 27, 2010 at 08:26:29AM -0700, jodeen wrote: > I've got a fairly large xml document (200MB) and I'm trying to use > XMLEventRe...
Loading...