[ http://jira.codehaus.org/browse/MNG-1870?page=all ]
     
Gernot Eger closed MNG-1870:
----------------------------

    Resolution: Duplicate

duplicate of http://jira.codehaus.org/browse/MNP-1392

> surefire report plugin fails with german locale
> -----------------------------------------------
>
>          Key: MNG-1870
>          URL: http://jira.codehaus.org/browse/MNG-1870
>      Project: Maven 2
>         Type: Bug

>   Components: maven-surefire-plugin
>     Versions: 2.0, 2.0.1
>  Environment: Austrian (=German) Win2000
>     Reporter: Gernot Eger
>  Attachments: out.log, pom.xml, surefire-report.html
>
>
> When trying to create a surefire report, I get lines without class names and 
> timings. The build produces a stack trace that lets me assume the comma as 
> decimal  seperator is the problem:
> java.lang.NumberFormatException: For input string: "0,03"
>       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(XMLDocumentFragmentScannerImpl.java:878)
>       at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocumentScannerImpl.java:1157)
>       at 
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1794)
>       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:59)
>       at 
> org.codehaus.mojo.surefire.SurefireReportParser.parseXMLReportFiles(SurefireReportParser.java:42)
>       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:802)
>       at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301)
>       at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
> So this seems to be either a problem between surefire-plugin, that produces 
> locale-specific TEST-xxxx.xml files, and the surefire-report-plugin, that 
> can't read them.
> I can reproduce this with a POM based on the generated my-app project.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to