• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JUNITReport - Stack Overflow error

 
vishwa venkat
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got solved the problem following the suggestions at http://xml.apache.org/xalan-j/faq.html#faq-N102CD.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic