File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes JUNITReport - Stack Overflow error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "JUNITReport - Stack Overflow error" Watch "JUNITReport - Stack Overflow error" New topic

JUNITReport - Stack Overflow error

vishwa venkat
Ranch Hand

Joined: Nov 22, 2003
Posts: 185

I am trying to generate JUNIT Reports using Ant script as follows-

<junitreport todir="reports">
<fileset dir="reports">
<include name="TEST-*.xml" />
<report format="frames" todir="reports" />

I am keep getting the Stack Overflow error -
[junitreport] Using Xalan version: Xalan Java 2.7.0
[junitreport] jar:file:C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/eclipse/plugins/org.apache.ant_1.5.3/optional.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl; Line #134; Column #74; java.lang.StackOverflowError
[junitreport] Transform time: 1328ms

and I took junit-frames.xsl out of the jar and verified and I found the following at line #134

<xsl:for-each select="/testsuites/testsuite[@package = $name]">
<redirect:write file="{$output.dir}/{$package.dir}/{@name}.html">
<xsl:apply-templates select="." mode="class.details"/>

Something is happening recursively in this piece of code which is causing StackOverflow error.

I guess same question has been posted on this forum before.

Any body successful in generating these reports?

Please help me,

vishwa venkat
Ranch Hand

Joined: Nov 22, 2003
Posts: 185
I got solved the problem following the suggestions at
I agree. Here's the link:
subject: JUNITReport - Stack Overflow error
It's not a secret anymore!