maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leung Man-Chi (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MSUREFIRE-34) surefire-report-plugin 2.1 is having Failure to parse Surefire 1.5 xml file
Date Tue, 03 Jan 2006 08:11:12 GMT
    [ http://jira.codehaus.org/browse/MSUREFIRE-34?page=comments#action_54730 ] 

Leung Man-Chi commented on MSUREFIRE-34:
----------------------------------------

yes, I could compile and install after doing a clean checkout.  1.5.2-SNAPSHOT
however, I am still facing the same XML parsing problem when I do "mvn site"
I believe it is due to other plugins and dependencies that are still pointing to the old 1.5.1
or 1.5

I listed download what I have done in the followings:
$ svn co http://svn.apache.org/repos/asf/maven/surefire/trunk surefire
$ cd surefire 
$ mvn install  (btw, I only did install for surefire, not surefire-booter)

I modified the following pom.xml :
/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.1.1/maven-surefire-plugin-2.1.1.pom
/.m2/repository/org/apache/maven/surefire/surefire-booter/1.5/surefire-booter-1.5.pom
changed  from  <artifactId>surefire</artifactId>   <version>1.5</version>
to <artifactId>surefire</artifactId>   <version>1.5.2</version>

when I run "mvn site" from my project site again, I encountered the same old error:
[INFO] Generate "Maven Surefire Report" report.
java.lang.Exception: Failure to parse file at: /Users/manchi/Java/workspace-maven2/my-app/target/surefire-reports/TEST-com.clarkware.junitperf.ExampleLoadTest.xml
        at org.codehaus.mojo.surefire.ReportTestSuite.<init>(ReportTestSuite.java:68)
        at org.codehaus.mojo.surefire.SurefireReportParser.parseXMLReportFiles(SurefireReportParser.java:49)
        at org.codehaus.mojo.surefire.SurefireReportGenerator.doGenerateReport(SurefireReportGenerator.java:44)
        at org.codehaus.mojo.surefire.SurefireReportMojo.executeReport(SurefireReportMojo.java:77)
        at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
        at org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo.java:802)
        at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.xml.sax.SAXParseException: Element type "property" must be followed by either
attribute specifications, ">" or "/>".
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:845)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:311)
        at org.codehaus.mojo.surefire.ReportTestSuite.<init>(ReportTestSuite.java:64)
        ... 24 more


this is my current .m2/repository:
./org/apache/maven/plugins/maven-surefire-plugin
./org/apache/maven/plugins/maven-surefire-plugin/2.1.1/maven-surefire-plugin-2.1.1.jar
./org/apache/maven/plugins/maven-surefire-plugin/2.1.1/maven-surefire-plugin-2.1.1.jar.sha1
./org/apache/maven/plugins/maven-surefire-plugin/2.1.1/maven-surefire-plugin-2.1.1.pom
./org/apache/maven/plugins/maven-surefire-plugin/2.1.1/maven-surefire-plugin-2.1.1.pom.sha1
./org/apache/maven/surefire
./org/apache/maven/surefire/surefire
./org/apache/maven/surefire/surefire/1.5/surefire-1.5.jar
./org/apache/maven/surefire/surefire/1.5/surefire-1.5.pom
./org/apache/maven/surefire/surefire/1.5.1/surefire-1.5.1.jar
./org/apache/maven/surefire/surefire/1.5.1/surefire-1.5.1.pom
./org/apache/maven/surefire/surefire/1.5.2/surefire-1.5.2.jar
./org/apache/maven/surefire/surefire/1.5.2/surefire-1.5.2.pom
./org/apache/maven/surefire/surefire-booter
./org/apache/maven/surefire/surefire-booter/1.5/surefire-booter-1.5.jar
./org/apache/maven/surefire/surefire-booter/1.5/surefire-booter-1.5.jar.sha1
./org/apache/maven/surefire/surefire-booter/1.5/surefire-booter-1.5.pom
./org/apache/maven/surefire/surefire-booter/1.5/surefire-booter-1.5.pom.sha1
./org/apache/maven/surefire/surefire-root
./org/apache/maven/surefire/surefire-root/1.1/surefire-root-1.1.pom
./org/apache/maven/surefire/surefire-root/1.1/surefire-root-1.1.pom.sha1
./org/codehaus/mojo/surefire-report-maven-plugin
./org/codehaus/mojo/surefire-report-maven-plugin/2.0-beta-2-SNAPSHOT/surefire-report-maven-plugin-2.0-beta-2-SNAPSHOT.jar
./org/codehaus/mojo/surefire-report-maven-plugin/2.0-beta-2-SNAPSHOT/surefire-report-maven-plugin-2.0-beta-2-SNAPSHOT.pom

> surefire-report-plugin 2.1  is having Failure to parse Surefire 1.5 xml file
> ----------------------------------------------------------------------------
>
>          Key: MSUREFIRE-34
>          URL: http://jira.codehaus.org/browse/MSUREFIRE-34
>      Project: Maven 2.x Surefire Plugin
>         Type: Bug

>  Environment: surefire 1.5 default plugin that bundled with maven 2 release. 
> surefire-report  verson 2.0-beta-2-SNAPSHOT that I checkout from mojo svn
>     Reporter: Leung Man-Chi
>     Assignee: Carlos Sanchez
>  Attachments: TEST-com.mycompany.app.AppTest.xml
>
>
> I used surefire-report plugin to parse surefire generated xml file but encountered the
following exception.
> I checked out surefire-report jira, and got a reply that it is due to the invalid xml
format in surefire generated TEST-
> com.mycompany.app.AppTest.xml file.
> ------------------------------------
> I tried the following attempt:
> ------------------------------------- 
> since surefire-plugin that bundles with m2 release is version 1.5, in fact, I tried to
checkout the latest 2.1 from 
>  http://svn.apache.org/repos/asf/maven/components/tags/maven-surefire-plugin-2.1. I did
a mvn compile and install to my local .m2 repository, trying to run it again. 
> However, M2 , by default only depends surefire 1.5 version, NOT running ver 2.1  . may
I know how to make m2 to run  surefire 2.1 instead? pls help
> -------------------
> ERROR MSG:
> -------------------
> [INFO] Generate "Maven Surefire Report" report.
> java.lang.Exception: Failure to parse file at: ~/myproject/my-app/target/surefire-reports/TEST-com.mycompany.app.AppTest.xml
>         at org.codehaus.mojo.surefire.ReportTestSuite.<init>(ReportTestSuite.java:68)
>         at org.codehaus.mojo.surefire.SurefireReportParser.parseXMLReportFiles(SurefireReportParser.java:49)
>         at org.codehaus.mojo.surefire.SurefireReportGenerator.doGenerateReport(SurefireReportGenerator.java:44)
>         at org.codehaus.mojo.surefire.SurefireReportMojo.executeReport(SurefireReportMojo.java:77)
>         at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
>         at org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo.java:802)
>         at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.xml.sax.SAXParseException: Whitespace required before attributes.
>         at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3376)
>         at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3364)
>         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1556)
>         at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
>         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
>         at org.apache.crimson.parser.Parser2.content(Parser2.java:1963)
>         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
>         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
>         at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
>         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
>         at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
>         at javax.xml.parsers.SAXParser.parse(SAXParser.java:281)
>         at org.codehaus.mojo.surefire.ReportTestSuite.<init>(ReportTestSuite.java:64)
>         ... 24 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


Mime
View raw message