[Knobot-devel] stack overflow
Status: Beta
Brought to you by:
rebach
From: dbu <db...@us...> - 2007-03-26 10:02:19
|
hello everybody, with really long documents, i get a stack overflow like the one below. it does not matter whether there are special characters in it or anything. i just wrote "bla bla " and copied it over and over... the text is now 138'750 times bla with 1'143 newlines :-) please do not tell me this is exagerated. we had a document to publish with 45'000 characters, which was enough to run into the error. any idea why this should result into a stack overflow? i found http://xml.apache.org/xalan-j/faq.html#faq-N102CD (increasing -Xss1m did not help) talking about "deeply recursive stylesheet" and now i wonder what xslt script the response wrapper actually calls? i mean, there should be no need for that much recursion in a simple text with no nested elements. or is there no recursive stylesheet, and this is a bug of xalan? kind regards,david @reto: the page where i played is: http://development.osar.ch/newsletter-test ERROR [Thread-4082] (XSLTResponseWrapper.java:224) - java.lang.StackOverflowError java.lang.StackOverflowError at org.apache.xml.dtm.ref.ExpandedNameTable.getExpandedTypeID(ExpandedNameTable.java:185) at org.apache.xml.dtm.ref.ExpandedNameTable.getExpandedTypeID(ExpandedNameTable.java:156) at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.processingInstruction(SAX2DTM.java:2133) at org.apache.xml.serializer.ToXMLSAXHandler.processingInstruction(ToXMLSAXHandler.java:582) at org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:255) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:126) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:392) at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:246) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:126) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411) at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:392) [repeated over and over] |