On 04/08/10 16:38, Thomas Maschutznig wrote:
Hi,

I get a StackOverflowError when trying to parse a 50 lines, 3 nodes
deep XML file:

java.lang.StackOverflowError
        at 
com.sun.org.apache.xerces.internal.impl.dtd.models.CMStateSet.<init>(CMStateSet.java:85)
        at 
com.sun.org.apache.xerces.internal.impl.dtd.models.CMNode.lastPos(CMNode.java:107)
        at 
com.sun.org.apache.xerces.internal.impl.dtd.models.CMBinOp.calcLastPos(CMBinOp.java:156)
        at 
com.sun.org.apache.xerces.internal.impl.dtd.models.CMNode.lastPos(CMNode.java:108)

... 200 more identical lines of lastPos() and calcLastPos() ...

        at 
com.sun.org.apache.xerces.internal.impl.dtd.models.CMBinOp.calcLastPos(CMBinOp.java:156)

As Michael points out, you're not using the real Xerces but I have seen the real-deal Xerces require relatively deep stacks too. Either way you can up the stack depth of your application like this

java -Xss1m ...

Note stack size is separate from heap size. I didn't look any further into it as upping the stack did the trick.

Your favourite search engine will tell you more as ever.

Chris Simmons.

---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-users-h...@xerces.apache.org

Reply via email to