Junit Report Fatal Error Could Not Compile Stylesheet
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and fatal error! could not compile stylesheet cause: cannot convert data-type 'void' to 'reference'. policies of this site About Us Learn more about Stack Overflow the the first argument to the non-static java function company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags
Javax.xml.transform.transformerconfigurationexception Cannot Convert Data-type 'void' To 'real'
Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only
Unable To Find Ant File To Run
takes a minute: Sign up ant junit build error inside eclipse up vote 21 down vote favorite 4 I am hoping there are some people who have seen and have a solution for the problem that I am having right now with ant script. I am using an ant script to compile my java codes in eclipse but eclipse keeps giving ant download me these errors [junitreport] Processing E:\workspace\DataOrchestrationDevelopment\DataOrchestration\Logs\jsreports\junit\html\TESTS-TestSuites.xml to C:\Users\u0160235\AppData\Local\Temp\null1503375679 [junitreport] Loading stylesheet jar:file:/E:/software/apache/apache-ant-1.8.2/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 E:\workspace\DataOrchestrationDevelopment\DataOrchestration\Logs\jsreports\junit\html\TESTS-TestSuites.xml BUILD FAILED E:\workspace\DataOrchestrationDevelopment\DataOrchestration\ant\developerbuild.xml:124: The following error occurred while executing this line: E:\workspace\DataOrchestrationDevelopment\DataOrchestration\ant\QunitAntScript.xml:20: Errors while applying transformations: Fatal error during transformation My environment settings: Windows 7 Eclipse 3.6 RC2 32 bit JDK 1.6 update 32 32 bit Ant 1.7.2 Junit 4 (within eclipse): in my project jar folder I have junit-dep-4.8.2.jar One thing to mention that if I compile my codes outside eclipse using the same ant script, everything works just fine, but it doesn't work inside eclipse. I tried to google the errors above the stylesheet above, but that didn't help me much. My guess is somehow, within eclipse different version of junit is being used, but I might be wrong. java eclipse ant junit share|improve this question edited May 10 '12 at 16:50 Beau Grantham 2,86451836 ask
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is http://stackoverflow.com/questions/10536095/ant-junit-build-error-inside-eclipse a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Ant Build Error in Eclipse IDE for Java up vote 10 down vote favorite 1 I have been receiving the following error and have done a lot of research and tried http://stackoverflow.com/questions/11785698/ant-build-error-in-eclipse-ide-for-java all of the offered solutions to no avail. junitreport: [junitreport] Processing C:\workspace\test123\junit\TESTS-TestSuites.xml to C:\Users\Matt\AppData\Local\Temp\null1903337257 [junitreport] Loading stylesheet jar:file:/C:/Users/Matt/Documents/Selenium/eclipse/plugins/org.apache.ant_1.8.3.v20120321-1730/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 C:\workspace\test123\junit\TESTS-TestSuites.xml BUILD FAILED C:\Users\Matt\workspace\Test1\build.xml:122: Errors while applying transformations: Fatal error during transformation I found a solution at ant junit build error inside eclipse and saying that the issue was caused by a newer version of JDK and using 1.6_31 would solve it and I tried that following instructions I found online on how to change the version of Java eclipse is using. Every time I run the build ant it returns the same error regardless of which version of Java I am using. I have tried JRE7, jdk1.7.0_05, jdk1.6.0, jdk1.6.0_31 and others that I don't have installed anymore.
CommunityMarketplaceEventsPlanet EclipseNewsletterVideosParticipateReport a BugForumsMailing ListsWikiIRCHow to ContributeWorking GroupsAutomotiveInternet of ThingsLocationTechLong-Term SupportPolarSysScienceOpenMDM Toggle navigation Bugzilla – Bug384757 Ant build fails in junitreport using Java 6u32 or later Last modified: 2014-05-07 23:07:32 EDT https://bugs.eclipse.org/bugs/show_bug.cgi?id=384757 Home | New | Browse | Search | [?] | Reports | Requests | Help | Log In [x] | Forgot Password Login: http://automated-testing.info/t/how-generate-html-report-for-selenium-test-in-eclipse-with-junit/1840 [x] | Terms of Use | Copyright Agent First Last Prev Next This bug is not in your last search results. Bug384757 - fatal error Ant build fails in junitreport using Java 6u32 or later Summary: Ant build fails in junitreport using Java 6u32 or later Status: RESOLVED NOT_ECLIPSE Product: Platform Classification: Eclipse Component: Ant Version: 4.2 Hardware: All All Importance: P3 major (vote) TargetMilestone: --- Assigned To: Markus Keller QA Contact: could not compile URL: Whiteboard: Keywords: Depends on: Blocks: Show dependency tree Reported: 2012-07-10 13:24 EDT by Steven Darnell Modified: 2014-05-07 23:07 EDT (History) CC List: 11 users (show) bugs.eclipse.org daniel_megert david_williams galarie42 gecon27 javabrett konstantin.komissarchik lettaja markus_keller Michael_Rennie typrase See Also: Attachments Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description Steven Darnell 2012-07-10 13:24:02 EDT Build Identifier: Version: Indigo Service Release 1 Build id: 20110916-0149 When building a project with Junit tests with ant from the Eclipse IDE using Java 6 build 32 or later, the following error occurs: [junitreport] Processing /MYPATH/junit/html/TESTS-TestSuites.xml to /var/folders/Hh/HhhDpmqxFISJ84nX-yGYY++++TI/-Tmp-/null191644350 [junitreport] Loading stylesheet jar:file:/MYPATH/eclipse/plugins/org.apache.ant_1.8.2.v20110505-1300/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
But I get error Buildfile: E:\eclipse\WebDriver\build.xml build-subprojects: init: build-project: [echo] WebDriver: E:\eclipse\WebDriver\build.xml [javac] E:\eclipse\WebDriver\build.xml:45: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds build: Sector: [junit] Running Sector [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec [junit] Test Sector FAILED junitreport: [junitreport] Processing E:\eclipse\WebDriver\junit\TESTS-TestSuites.xml to E:\DOCUME~1 \CONSUL~1\LOCALS~1\Temp\null35256633 [junitreport] Loading stylesheet jar:file:/E:/eclipse/plugins/org.apache.ant_1.8.2.v20120109-1030/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 E:\eclipse\WebDriver\junit\TESTS-TestSuites.xml BUILD FAILED E:\eclipse\WebDriver\build.xml:193: Errors while applying transformations: Fatal error during transformation Total time: 2 seconds If needed I can provide build.xml. In folder junit I don't see any html files. How should I deal with it? build.xml (do not find how to attach it in another way)