[ http://jira.codehaus.org/browse/MSUREFIREREP-3?page=comments#action_70151 
] 
            
Hugo Palma commented on MSUREFIREREP-3:
---------------------------------------

Yep, found the problem, a typo in the pom.
Thanks.

> XML "time" field parse problem
> ------------------------------
>
>                 Key: MSUREFIREREP-3
>                 URL: http://jira.codehaus.org/browse/MSUREFIREREP-3
>             Project: Maven 2.x Surefire report Plugin
>          Issue Type: Bug
>            Reporter: Eduardo Rocha
>         Assigned To: Johnny R. Ruiz III
>         Attachments: TEST-br.com.mclaren.prototype.NumberTest.xml
>
>
> There is a parse error with the "time" field when reading values from XML, 
> when the current locale outputs a time value like "1,078" (which is my case 
> with locale pt_BR).
> [INFO] Generate "Maven Surefire Report" report.
> java.lang.NumberFormatException: For input string: "1,078"
>         at 
> sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
>         at java.lang.Float.parseFloat(Float.java:394)
>         at 
> org.codehaus.mojo.surefire.ReportTestSuite.startElement(ReportTestSuite.java:78)
>         at 
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)
>         at 
> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:798)
>         at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFrag
> mentScannerImpl.java:878)
>         at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XM
> LDocumentScannerImpl.java:1157)
>         at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispat
> ch(XMLDocumentFragmentScannerImpl.java:1794)
>         at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragment
> ScannerImpl.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:59)
>         at 
> org.codehaus.mojo.surefire.SurefireReportParser.parseXMLReportFiles(SurefireReportParser.java:44)
>         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:117)
>         at 
> org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo.java:842)
>         ...
> I don't know if this bug where supposed to be open in the original 
> maven-surefire-plugin, since MOJO just reads the XML and produces the HTML. 
> With maven 1, the XML is written like "1.078", independently of locale.

-- 
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

        

Reply via email to