You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Brian Minchau (JIRA)" <xa...@xml.apache.org> on 2005/05/04 06:27:06 UTC
[jira] Commented: (XALANJ-1873) StackOverflowError occurs when recursive call of template is performed many times.
[ http://issues.apache.org/jira/browse/XALANJ-1873?page=comments#action_64437 ]
Brian Minchau commented on XALANJ-1873:
---------------------------------------
I don't think there is anything that can be done on this issue. Returning this as "won't fix", it is a limitation in the design, per the Xalan-J issue meeting on May 3, 2005.
> StackOverflowError occurs when recursive call of template is performed many times.
> ----------------------------------------------------------------------------------
>
> Key: XALANJ-1873
> URL: http://issues.apache.org/jira/browse/XALANJ-1873
> Project: XalanJ2
> Type: Bug
> Components: transformation, Xalan-interpretive
> Versions: 2.5
> Environment: Operating System: Windows XP
> Platform: PC
> Reporter: Kazutoshi Ono
> Assignee: Xalan Developers Mailing List
> Priority: Critical
> Attachments: StackOverflowErrorTest.java, StackOverflowErrorTest.java, stackoverflow.xsl
>
> [Summary]
> StackOverflowError occurs when recursive call of template is performed many
> times.
> [Version]
> I tested this bug using the following versions.
> Xalan
> - XalanJ2 2.5.1
> - XalanJ2 2.6.0
> - Xalan included in JRE 1.4.1_03
> OS/JVM
> - Windows XP Professional Version 2002 Service Pack1
> - Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_03-b02)
> [How to reproduce this bug]
> (1) Please download the following attached files into same folder.
> a. StackOverflowErrorTest.java
> b. stackoverflow.xsl
> (This xslt is from "XSLT Bible" written by Michael Kay)
> (2) Please compile StackOverflowErrorTest.java and execute
> StackOverflowErrorTest.StackOverflowError occurs.
> [Memo]
> (1) This bug doesn't occur when "bookCount" is small.
> example:
> line12: int bookCount = 10; // -> Succeed
> line12: int bookCount = 100; // -> Succeed
> line12: int bookCount = 1000; // -> StackOverflowError
> (2) I tried to set recursion limit using
> org.apache.xalan.transformer.TransformerImpl#setRecursionLimit(int).
> The result was:
> transformerImpl.setRecursionLimit(-1); // -> StackOverflowError
> transformerImpl.setRecursionLimit(100000); // -> StackOverflowError
> transformerImpl.setRecursionLimit(1000000); // -> StackOverflowError
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org