[QFJ-66] Cannot receive incoming header DATA field Created: 06/Sep/06  Updated: 12/Apr/07  Resolved: 10/Sep/06

Status: Closed
Project: QuickFIX/J
Component/s: Engine
Affects Version/s: 1.0.3
Fix Version/s: 1.1.0

Type: Bug Priority: Default
Reporter: André Malenfant Assignee: Steve Bate
Resolution: Fixed Votes: 0
Labels: None


 Description   

When a DATA field is received, the quickfix looks for the corresponding LENGTH field in the received fields list BUT if the LENGTH and DATA fields are part of the header, they are not found. The extractField method from the Message class should check if the LENGTH fields is a header field and search for it in the corresponding list. (Not sure what to do with the group fields though)

ex:
try {
if (group == null) {
if (isHeaderField(lengthField))

{ fieldLength = header.getInt(lengthField); }

else

{ fieldLength = getInt(lengthField); }

} else

{ fieldLength = group.getInt(lengthField); }

} catch (FieldNotFound e1)

{ throw new InvalidMessage(e1.getMessage()); }
Generated at Sat May 18 09:56:45 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.