You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Boris Boehlen (JIRA)" <ji...@codehaus.org> on 2005/11/02 09:37:47 UTC
[jira] Created: (MNG-1392) Surefire Report fails if LANG is not US under Linux
Surefire Report fails if LANG is not US under Linux
---------------------------------------------------
Key: MNG-1392
URL: http://jira.codehaus.org/browse/MNG-1392
Project: Maven 2
Type: Bug
Components: maven-surefire-plugin
Environment: Linux
Environment variable LANG=de_DE
Reporter: Boris Boehlen
Priority: Blocker
When the locale is de_DE Maven fails to generate the report for surefire.
With this locale the execution times of the unit test is written as "3,52" and not as "3.52". When the surefire-report is generated the following exception is thrown:
[INFO] Generate "Maven Surefire Report" report.
java.lang.NumberFormatException: For input string: "1,858"
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)
--
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
[jira] Closed: (MNG-1392) Surefire Report fails if LANG is not US under Linux
Posted by "Johnny R. Ruiz III (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1392?page=all ]
Johnny R. Ruiz III closed MNG-1392:
-----------------------------------
Assign To: Johnny R. Ruiz III
Resolution: Fixed
Fix Version: 2.0.1
Duplicate with MOJO-100
A patch is applied in SUREFIRE-9
> Surefire Report fails if LANG is not US under Linux
> ---------------------------------------------------
>
> Key: MNG-1392
> URL: http://jira.codehaus.org/browse/MNG-1392
> Project: Maven 2
> Type: Bug
> Components: maven-surefire-plugin
> Environment: Linux
> Environment variable LANG=de_DE
> Reporter: Boris Boehlen
> Assignee: Johnny R. Ruiz III
> Priority: Blocker
> Fix For: 2.0.1
>
>
> When the locale is de_DE Maven fails to generate the report for surefire.
> With this locale the execution times of the unit test is written as "3,52" and not as "3.52". When the surefire-report is generated the following exception is thrown:
> [INFO] Generate "Maven Surefire Report" report.
> java.lang.NumberFormatException: For input string: "1,858"
> 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)
--
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
[jira] Commenté: (MNG-1392) Surefire Report fails if LANG is not US under Linux
Posted by "Lilians Auvigne (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1392?page=comments#action_49810 ]
Lilians Auvigne commented on MNG-1392:
--------------------------------------
I posted a patch at http://jira.codehaus.org/browse/SUREFIRE-9
It's OK for my environment, but I do not know if this correction is correct for surefire philosophy
> Surefire Report fails if LANG is not US under Linux
> ---------------------------------------------------
>
> Key: MNG-1392
> URL: http://jira.codehaus.org/browse/MNG-1392
> Project: Maven 2
> Type: Bug
> Components: maven-surefire-plugin
> Environment: Linux
> Environment variable LANG=de_DE
> Reporter: Boris Boehlen
> Priority: Blocker
>
>
> When the locale is de_DE Maven fails to generate the report for surefire.
> With this locale the execution times of the unit test is written as "3,52" and not as "3.52". When the surefire-report is generated the following exception is thrown:
> [INFO] Generate "Maven Surefire Report" report.
> java.lang.NumberFormatException: For input string: "1,858"
> 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)
--
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