当我使用Ant 1.9.3和Java 1.8.0_91运行我的JUnit报告生成时,它会因StackOverflowError而失败而没有明显的原因。我花了很多时间试图找出导致这种情况的原因,但到目前为止还没有运气。
有关修复/解决方法的任何想法吗?
[junitreport] Processing /var/lib/jenkins/workspace/mytest/reports/TESTS-TestSuites.xml to /var/lib/jenkins/workspace/mytest/reports/junit-noframes.html
[junitreport] Loading stylesheet jar:file:/usr/share/ant/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-noframes.xsl
[junitreport] Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
[junitreport] Warning: org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
BUILD FAILED
/var/lib/jenkins/workspace/mytest/build.xml:357: java.lang.StackOverflowError
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream$Trie.get2(ToHTMLStream.java:2291)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.getElemDesc2(ToHTMLStream.java:633)
at com.sun.org.apache.xml.internal.serializer.ToHTMLStream.startElement(ToHTMLStream.java:795)
at com.sun.org.apache.xml.internal.serializer.ToStream.startElement(ToStream.java:1853)
at junit_noframes.br$dash$replace()
at junit_noframes.br$dash$replace()
at junit_noframes.br$dash$replace()
at junit_noframes.br$dash$replace()
at junit_noframes.br$dash$replace()
at junit_noframes.br$dash$replace()