ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26230] New: - junitreport task gets java.lang.StackOverflowError during XSL xform
Date Sun, 18 Jan 2004 15:49:10 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26230>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26230

junitreport task gets java.lang.StackOverflowError during XSL xform

           Summary: junitreport task gets java.lang.StackOverflowError
                    during XSL xform
           Product: Ant
           Version: 1.6.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: shash@badfw.org


Hi,

The subject line basically says it.  I am attaching a small set of TEST-*.xml
files and a tiny build.xml that demonstrates the problem.

OS: WinXP Home

$ uname -a
CYGWIN_NT-5.1 CHATTERCOM 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown unknown C
ygwin

$ java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)

$ ant -version
Apache Ant version 1.6.0 compiled on December 18 2003

$ ant -debug
Apache Ant version 1.6.0 compiled on December 18 2003
Buildfile: build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.4 in: c:\j2sdk1.4.2_03\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
Setting ro project property: ant.version -> Apache Ant version 1.6.0 compiled on
 December 18 2003
Setting ro project property: ant.file -> c:\test\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile c:\test\build.xml with URI = file:///C:/test/build.xml
Setting ro project property: ant.project.name -> test
Adding reference: test
Setting ro project property: ant.file.test -> c:\test\build.xml
Project base dir set to: C:\test
 +Target:
 +Target: junittestreport
Setting project property: deploy.name -> default
Setting project property: keel.test.junit -> ./reports/junit
Build sequence for target `junittestreport' is [junittestreport]
Complete build sequence is [junittestreport, ]

junittestreport:
     [echo] Generating the Unit Test Report
   [delete] Deleting directory C:\test\reports\junit\default\html
   [delete] Deleting C:\test\reports\junit\default\html\allclasses-frame.html
   [delete] Deleting C:\test\reports\junit\default\html\index.html
   [delete] Deleting C:\test\reports\junit\default\html\org\keel\services\author
ization\defaultauth\tests\DefaultAuthTests.html
   [delete] Deleting C:\test\reports\junit\default\html\org\keel\services\author
ization\defaultauth\tests\package-frame.html
   [delete] Deleting C:\test\reports\junit\default\html\org\keel\services\author
ization\defaultauth\tests\package-summary.html
   [delete] Deleting directory C:\test\reports\junit\default\html\org\keel\servi
ces\authorization\defaultauth\tests
   [delete] Deleting directory C:\test\reports\junit\default\html\org\keel\servi
ces\authorization\defaultauth
   [delete] Deleting directory C:\test\reports\junit\default\html\org\keel\servi
ces\authorization
   [delete] Deleting directory C:\test\reports\junit\default\html\org\keel\servi
ces
   [delete] Deleting directory C:\test\reports\junit\default\html\org\keel
   [delete] Deleting directory C:\test\reports\junit\default\html\org
   [delete] Deleting C:\test\reports\junit\default\html\overview-frame.html
   [delete] Deleting C:\test\reports\junit\default\html\overview-summary.html
   [delete] Deleting C:\test\reports\junit\default\html\stylesheet.css
   [delete] Deleting directory C:\test\reports\junit\default\html
Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) fo
r type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Could not load a dependent class (org/apache/commons/net/SocketClient) for type
rexec
Could not load a dependent class (com/starbase/starteam/Item) for type stlist
Could not load a dependent class (org/apache/commons/net/SocketClient) for type
telnet
Could not load a dependent class (org/apache/commons/net/ftp/FTP) for type ftp
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
Could not load a dependent class (com/starbase/starteam/Item) for type stcheckin

Could not load a dependent class (com/starbase/starteam/Item) for type stcheckou
t
fileset: Setup scanner in dir C:\test\reports\junit\default with patternSet{ inc
ludes: [TEST-*.xml] excludes: [] }
[junitreport] Parsing file: 'C:\test\reports\junit\default\TEST-org.keel.service
s.authorization.defaultauth.tests.DefaultAuthTests.xml'
[junitreport] Parsing file: 'C:\test\reports\junit\default\TEST-org.keel.service
s.crypto.base64.CryptoBase64Tests.xml'
[junitreport] Parsing file: 'C:\test\reports\junit\default\TEST-org.keel.service
s.crypto.des.CryptoDESTests.xml'
[junitreport] Parsing file: 'C:\test\reports\junit\default\TEST-org.keel.service
s.event.defaultevent.EventDefaultTests.xml'
[junitreport] Parsing file: 'C:\test\reports\junit\default\TEST-org.keel.service
s.password.jpassgen.PasswordJpassgenTests.xml'
[junitreport] Parsing file: 'C:\test\reports\junit\default\TEST-org.keel.service
s.persist.defaultpersist.PersistDefaultAdvancedTests.xml'
[junitreport] Parsing file: 'C:\test\reports\junit\default\TEST-org.keel.service
s.persist.defaultpersist.PersistDefaultBasicTests.xml'
[junitreport] Using Xalan version: Xalan Java 2.4.1

BUILD FAILED
C:\test\build.xml:9: Errors while applying transformations: java.lang.StackOverf
lowError
        at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.tra
nsform(AggregateTransformer.java:186)
        at org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.exec
ute(XMLResultAggregator.java:173)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
        at org.apache.tools.ant.Task.perform(Task.java:401)
        at org.apache.tools.ant.Target.execute(Target.java:338)
        at org.apache.tools.ant.Target.performTasks(Target.java:365)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
        at org.apache.tools.ant.Main.runBuild(Main.java:669)
        at org.apache.tools.ant.Main.startAnt(Main.java:220)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
Caused by: javax.xml.transform.TransformerException: java.lang.StackOverflowErro
r
        at org.apache.xalan.extensions.ExtensionHandlerJavaClass.processElement(
ExtensionHandlerJavaClass.java:441)
        at org.apache.xalan.templates.ElemExtensionCall.execute(ElemExtensionCal
l.java:283)
        at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemFor
Each.java:441)
        at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:300)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java:2339)
        at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:435
)
        at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.
java:273)
        at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemFor
Each.java:441)
        at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:300)
        at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(
ElemApplyTemplates.java:425)
        at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTempla
tes.java:216)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java:2339)
        at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Tran
sformerImpl.java:2160)
        at org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
rImpl.java:1213)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp
l.java:668)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp
l.java:1129)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp
l.java:1107)
        at org.apache.tools.ant.taskdefs.optional.junit.Xalan2Executor.execute(X
alan2Executor.java:82)
        at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.tra
nsform(AggregateTransformer.java:184)
        ... 11 more
Caused by: java.lang.StackOverflowError
--- Nested Exception ---
; SystemID: file:///C:/test/junit-frames.xsl; Line#: 135; Column#: 74
javax.xml.transform.TransformerException: java.lang.StackOverflowError
        at org.apache.xalan.extensions.ExtensionHandlerJavaClass.processElement(
ExtensionHandlerJavaClass.java:441)
        at org.apache.xalan.templates.ElemExtensionCall.execute(ElemExtensionCal
l.java:283)
        at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemFor
Each.java:441)
        at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:300)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java:2339)
        at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:435
)
        at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.
java:273)
        at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemFor
Each.java:441)
        at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:300)
        at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(
ElemApplyTemplates.java:425)
        at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTempla
tes.java:216)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java:2339)
        at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Tran
sformerImpl.java:2160)
        at org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
rImpl.java:1213)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp
l.java:668)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp
l.java:1129)
        at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImp
l.java:1107)
        at org.apache.tools.ant.taskdefs.optional.junit.Xalan2Executor.execute(X
alan2Executor.java:82)
        at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.tra
nsform(AggregateTransformer.java:184)
        at org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.exec
ute(XMLResultAggregator.java:173)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
        at org.apache.tools.ant.Task.perform(Task.java:401)
        at org.apache.tools.ant.Target.execute(Target.java:338)
        at org.apache.tools.ant.Target.performTasks(Target.java:365)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
        at org.apache.tools.ant.Main.runBuild(Main.java:669)
        at org.apache.tools.ant.Main.startAnt(Main.java:220)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
Caused by: java.lang.StackOverflowError
---------
java.lang.StackOverflowError

Total time: 2 seconds

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message