This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JUNITReport - Stack Overflow error
 
Similar Threads
Empty Junit reports from ant
Question about JUnitReport task
Could not create JUNIT HTML reports?
reports in html format
Could not find a valid processor version implementation from net.sf.saxon.Transformer