You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by RobE <re...@thunderhead.com> on 2006/11/27 13:06:31 UTC
StackOverflowError when attempting XSL transformation
I have been getting a StackOverflowError when trying to perform an XSL
transformation using Xalan 2.7.0 with a styleshhet I had written. I have
simplified the the XSL and the problem seems to be related to an xpath
expression used in an if, but I can't see anything wrong with it.
Attached is a sample xml and simplified xsl that give the error.
http://www.nabble.com/file/4289/test.xml test.xml
http://www.nabble.com/file/4290/test.xsl test.xsl
The error message I get from Xalan is
(Location of error unknown)XSLT Error (java.lang.StackOverflowError): null
Exception in thread "main" java.lang.RuntimeException
at org.apache.xalan.xslt.Process.doExit(Process.java:1153)
at org.apache.xalan.xslt.Process.main(Process.java:1126)
If I do the transformation within XMLSpy it does not report any errors so it
seems to be something to do with Xalan. Can anyone shed any light on this
problem?
Thanks
Rob
--
View this message in context: http://www.nabble.com/StackOverflowError-when-attempting-XSL-transformation-tf2711418.html#a7558996
Sent from the Xalan - J - Users mailing list archive at Nabble.com.
Re: StackOverflowError when attempting XSL transformation
Posted by Henry Zongaro <zo...@ca.ibm.com>.
Hi, Rob.
RobE <re...@thunderhead.com> wrote on 2006-11-27 07:06:31 AM:
> I have been getting a StackOverflowError when trying to perform an XSL
> transformation using Xalan 2.7.0 with a styleshhet I had written. I have
> simplified the the XSL and the problem seems to be related to an xpath
> expression used in an if, but I can't see anything wrong with it.
> Attached is a sample xml and simplified xsl that give the error.
>
> http://www.nabble.com/file/4289/test.xml test.xml
> http://www.nabble.com/file/4290/test.xsl test.xsl
>
> The error message I get from Xalan is
> (Location of error unknown)XSLT Error (java.lang.StackOverflowError):
null
> Exception in thread "main" java.lang.RuntimeException
> at org.apache.xalan.xslt.Process.doExit(Process.java:1153)
> at org.apache.xalan.xslt.Process.main(Process.java:1126)
I don't think anybody ever responded to you. I am able to reproduce the
problem. It looks like a bug in the XPath expression parser. Could I ask
you to open a bug report in Jira?
Thanks,
Henry
------------------------------------------------------------------
Henry Zongaro XSLT Processors Development
IBM SWS Toronto Lab T/L 969-6044; Phone +1 905 413-6044
mailto:zongaro@ca.ibm.com