[jira] [Commented] (XALANJ-2526) StackOverflowError at at org.apache.xml.serializer.ToStream.characters(ToStream.java:1624)

"Joe Kesselman (Jira)" <[email protected]>
Newsgroups gmane.text.xml.xalan.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/XALANJ-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18014462#comment-18014462 ] 

Joe Kesselman commented on XALANJ-2526:
---------------------------------------

Killing the cache: One question is, how much performance would that cost us?

What's confusing me at first glance is that this is being reported as a _stack_ overflow error. I would have expected excess caching to cause _heap_ overflow.

> StackOverflowError at at org.apache.xml.serializer.ToStream.characters(ToStream.java:1624)
> ------------------------------------------------------------------------------------------
>
>                 Key: XALANJ-2526
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2526
>             Project: XalanJ2
>          Issue Type: Bug
>      Security Level: No security risk; visible to anyone(Ordinary problems in Xalan projects.  Anybody can view the issue.) 
>    Affects Versions: 2.7.1
>         Environment: Linux, Java 1.6.0_21, Xalan 2.7.1
>            Reporter: ajoe04
>            Priority: Blocker
>         Attachments: XALANJ-2526_patch.txt, oom_xalan.txt
>
>
> Using the Anttask Junit-Report with an xslt to generate the Junitreport I'm getting this error from the JDK xml parser:
> -----------------------------------------------------------------------------------------------------------
> This is the stacktrace from the JDK Xalan, but below is the output of the "normal" Xalan 2.7.1
> -----------------------------------------------------------------------------------------------------------
> Caused by: java.lang.StackOverflowError
>         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at org.apache.tools.ant.Target.execute(Target.java:390)
>         at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:211)
>         ... 22 more
> Caused by: java.lang.StackOverflowError
>         at com.sun.org.apache.xml.internal.serializer.ToStream.characters(ToStream.java:1457)
>         at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.characters(ToHTMLStream.java:1529)
>         at com.sun.org.apache.xml.internal.serializer.ToStream.characters(ToStream.java:1613)
>         at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.characters(AbstractTranslet.java:618)
>         at junit_frames.br$dash$replace()
>         at junit_frames.br$dash$replace()



--
This message was sent by Atlassian Jira
(v8.20.10#820010)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.