[
http://jira.codehaus.org/browse/SUREFIRE-270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brett Porter moved MSUREFIREREP-3 to SUREFIRE-270:
--------------------------------------------------
Complexity: (was: Novice)
Key: SUREFIRE-270 (was: MSUREFIREREP-3)
Project: Maven Surefire (was: Maven 2.x Surefire report Plugin)
> XML "time" field parse problem
> ------------------------------
>
> Key: SUREFIRE-270
> URL: http://jira.codehaus.org/browse/SUREFIRE-270
> Project: Maven Surefire
> 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