可能重复:
Error! The first argument to the non-static Java function 'replace' is not a valid object reference
使用JUNIT-REPORT时出现以下错误。
[junitreport] Processing /Users/subhashlengare/Documents/workspace/PlatformData/build/test-report/TESTS-TestSuites.xml to /var/folders/qd/3r754f6x0cj34fjzz1n8xzk00000gn/T/null1260329582
[junitreport] Loading stylesheet jar:file:/Users/subhashlengare/installtions/apache-ant-1.8.4/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] : Error! The first argument to the non-static Java function 'replace' is not a valid object reference.
[junitreport] : Error! Cannot convert data-type 'void' to 'reference'.
[junitreport] : Fatal Error! Could not compile stylesheet
[junitreport] Failed to process /Users/subhashlengare/Documents/workspace/PlatformData/build/test-report/TESTS-TestSuites.xml
我正在使用以下环境
有人知道解决方案吗?