faban
  1. faban
  2. FABAN-18

fhb will not run unless kbps is specified

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Labels:
      None

      Description

      If you attempt to run fhb with a simple template (e.g., the one in the documentation), it will not run. Because the template does not specify a kbps, you get this exception:

      SEVERE: Master terminated with errors.
      java.lang.NumberFormatException: For input string: ""
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
      at java.lang.Integer.parseInt(Integer.java:470)
      at java.lang.Integer.parseInt(Integer.java:499)
      at com.sun.faban.driver.engine.RunInfo$ConfigurationReader$RunInfoDefinition.getKbps(RunInfo.java:489)
      at com.sun.faban.driver.engine.RunInfo$ConfigurationReader.createDefinition(RunInfo.java:875)
      at com.sun.faban.driver.engine.RunInfo$ConfigurationReader.<init>(RunInfo.java:378)

      This is because the RunInfoDefinition has been instantiated with a default kbps string of "". The class tests to see if the string is null, and rejects that; but it needs also to reject an empty string. Line 505 of RunInfo needs to be:

      if (kbps != null && !kbps.equals("")) {

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            sheetalpatil
            Reporter:
            Scott Oaks
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: