Mojo
  1. Mojo
  2. MOJO-674

NumberFormatException with getCoberturaDatafile method

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: dashboard
    • Labels:
      None
    • Environment:
      dashboard-maven-plugin-1.0-20070302.175758-5.jar
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Description

      submited by Jörg Hohwiller
      -------------------------------------

      I still got the same problem with dashboard-maven-plugin-1.0-20070302.175758-5.jar

      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] For input string: "2.2-SNAPSHOT"
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      java.lang.NumberFormatException: For input string: "2.2-SNAPSHOT"
      at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:12
      24)
      at java.lang.Double.parseDouble(Double.java:510)
      at org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getCobertura
      DataFile(DashBoardUtils.java:832)

        Activity

        Hide
        David Vicente added a comment -

        wrote by Jörg Hohwiller [09/Mar/07 01:03 AM]
        Thanks for your quick response...
        Why don't you use the version parser of maven-artifact?

        http://maven.apache.org/ref/2.0.4/maven-artifact/apidocs/org/apache/maven/artifact/versioning/DefaultArtifactVersion.html

        Show
        David Vicente added a comment - wrote by Jörg Hohwiller [09/Mar/07 01:03 AM] Thanks for your quick response... Why don't you use the version parser of maven-artifact? http://maven.apache.org/ref/2.0.4/maven-artifact/apidocs/org/apache/maven/artifact/versioning/DefaultArtifactVersion.html
        Hide
        David Vicente added a comment -

        i didn't know this class.

        It's a good idea and i will use it

        this issue will be fixed for the next release this evening 2007/03/09

        Show
        David Vicente added a comment - i didn't know this class. It's a good idea and i will use it this issue will be fixed for the next release this evening 2007/03/09
        Hide
        David Vicente added a comment -

        fixed in 1.0-SNAPSHOT released the 2007/03/09

        Show
        David Vicente added a comment - fixed in 1.0-SNAPSHOT released the 2007/03/09
        Hide
        Jörg Hohwiller added a comment -

        Tested with dashboard-maven-plugin-1.0-20070309.165413-6.jar
        Works - Issue fixed - Thanks.

        Show
        Jörg Hohwiller added a comment - Tested with dashboard-maven-plugin-1.0-20070309.165413-6.jar Works - Issue fixed - Thanks.

          People

          • Assignee:
            David Vicente
            Reporter:
            David Vicente
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved: