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

NullPointerException in Message.parseGroup

    Details

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

      Description

      problem

      java.lang.NullPointerException
      at quickfix.Message.parseGroup(Message.java:600)
      at quickfix.Message.parseBody(Message.java:569)
      at quickfix.Message.parse(Message.java:480)
      at quickfix.MessageUtils.parse(MessageUtils.java:148)

      At that position in the code the result of extractField is NULL. This happens on parsing the message because the position counter is greater than the length of the message. Line 758 in Message.java:

      if (position >= messageData.length())

      { return null; }

      This is expected in some cases when parsing groups.
      However in this current problem it happened because there were problems with the message length and checksum which went undetected by the FixMessageDecoder.
      The FixMessageDecoder checks if the message ends with a checksum, i.e. tag 10=xxx. The message in question ended with that information but the SOH delimiter before tag 10 was missing.

        Attachments

          Activity

            People

            • Assignee:
              chrjohn Christoph John
              Reporter:
              chrjohn Christoph John
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: