Uploaded image for project: 'QuickFIX/J'
  1. QuickFIX/J
  2. QFJ-320

Negative TimeZoneOffset newIncorrectDataException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Default
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Engine
    • Labels:
      None

      Description

      When trying to retrieve a negative timezone, I get an exception quickfix.FieldMap.newIncorrectDataException(FieldMap.java:410).

      It seems that it is caused by the following code in IntConverter.java, it expects only digits.
      public static int convert(String value) throws FieldConvertError {
      try {
      for (int i = 0; i < value.length(); i++) {
      if (!Character.isDigit(value.charAt))

      { throw new NumberFormatException(); }

      return Integer.parseInt(value);
      ...

      The code I am using is as follows:

      TimezoneOffset timezoneOffset = new TimezoneOffset();
      try {
      noMDEntries.get(timezoneOffset);
      } catch(FieldNotFound e) {
      //field is optional
      }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              zana Zana
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: