• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

JUNITReport - Stack Overflow error

 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got solved the problem following the suggestions at http://xml.apache.org/xalan-j/faq.html#faq-N102CD.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic