GeeCON Prague 2014*
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
Author

JUNITReport - Stack Overflow error

vishwa venkat
Ranch Hand

Joined: Nov 22, 2003
Posts: 185
Hi

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

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


I am keep getting the Stack Overflow error -
test-report:
[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"/>
</redirect:write>
</xsl:for-each>

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,

Thanks,
-Visu
vishwa venkat
Ranch Hand

Joined: Nov 22, 2003
Posts: 185
I got solved the problem following the suggestions at http://xml.apache.org/xalan-j/faq.html#faq-N102CD.
 
GeeCON Prague 2014
 
subject: JUNITReport - Stack Overflow error