Re: [Knobot-devel] stack overflow
Status: Beta
Brought to you by:
rebach
From: <re...@gm...> - 2007-03-26 10:23:36
|
hi david, since version 0.2.7 knobot comes with a custom build of xalan patched to avoid a memory-leak situation with the symptom you describe. Starting KnoBot the normal way, set's the endorsed-lib system property so that the shipped version of xalan is used. Since august 2005 however, a new version of xalan might have been released, so it might be worth checking it out. cheers, reto dbu wrote: > 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=20 > anything. i just wrote "bla bla " and copied it over and over... the=20 > 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 di= d=20 > not help) talking about "deeply recursive stylesheet" and now i wonder = > what xslt script the response wrapper actually calls? i mean, there=20 > should be no need for that much recursion in a simple text with no=20 > 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:=20 > http://development.osar.ch/newsletter-test > > > > ERROR [Thread-4082] (XSLTResponseWrapper.java:224) -=20 > java.lang.StackOverflowError > java.lang.StackOverflowError > at=20 > org.apache.xml.dtm.ref.ExpandedNameTable.getExpandedTypeID(ExpandedName= Table.java:185) > at=20 > org.apache.xml.dtm.ref.ExpandedNameTable.getExpandedTypeID(ExpandedName= Table.java:156) > at=20 > org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.processingInstruction(SAX2DTM.ja= va:2133) > at=20 > org.apache.xml.serializer.ToXMLSAXHandler.processingInstruction(ToXMLSA= XHandler.java:582) > at=20 > org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:255) > at=20 > org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tran= sformerImpl.java:2411) > at=20 > org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:126) > at=20 > org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tran= sformerImpl.java:2411) > at=20 > org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:392) > at=20 > org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.ja= va:246) > at=20 > org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tran= sformerImpl.java:2411) > at=20 > org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:126) > at=20 > org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tran= sformerImpl.java:2411) > at=20 > org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:392) > [repeated over and over] > > > -----------------------------------------------------------------------= -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share= your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Knobot-devel mailing list > Kno...@li... > https://lists.sourceforge.net/lists/listinfo/knobot-devel > =20 |