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

Cannot read Bodylength inside toApp(), toAdmin()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Default
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows, C#

      Description

      I am using following code inside toApp() and toAdmin()
      message.getHeader().getInt(BodyLength.FIELD)

      But I am getting FieldNotfound exception. I can see the BodyLength tag set in the message, but still it cannot be found at the runtime.

      Same code works fine in fromApp() and fromAdmin().

      Also following code works fine - msg.getHeader().getField(new BeginString()).getValue();

      Its Bodylength tag which gives error.

      Can you provide the resolution please.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sanghmitra Sanghmitra
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: