使用Ant 1.9.3运行JUnit时出现StackOverflowError



每隔一段时间,当我用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()

显然这是一个已知的ant错误,并在1.9.4中修复。升级到1.9.7。为我解决了这个问题!

相关内容

  • 没有找到相关文章

最新更新