QuickFIX/J

TAG_SPECIFIED_OUT_OF_REQUIRED_ORDER error while creating message from another FIX message and doValidation = false

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Default Default
  • Resolution: Unresolved
  • Affects Version/s: 1.4.0
  • Fix Version/s: None
  • Component/s: Engine
  • Labels:
    None

Description

This happens because parseBody function in Message.java does'nt take doValidation as an argument. The fix for this:
1. Change line 533 in Message.java to
             private void parseBody(DataDictionary dd) throws InvalidMessage
2. Add check at line 541:
       if(doValidation){
             if (isHeaderField(field.getField())) {
                    // An acceptance test requires the sequence number to
                    // be available even if the related field is out of order
                    setField(header, field);
                    throw new FieldException(SessionRejectReason.TAG_SPECIFIED_OUT_OF_REQUIRED_ORDER,
                            field.getTag());
                }
            }

Activity

Hide
Subodh Jain added a comment - 02/Oct/09 12:11 AM

Correction#1. Change line 533 in Message.java to
private void parseBody(DataDictionary dd, boolean doValidation) throws InvalidMessage {

Show
Subodh Jain added a comment - 02/Oct/09 12:11 AM Correction#1. Change line 533 in Message.java to private void parseBody(DataDictionary dd, boolean doValidation) throws InvalidMessage {
Hide
Rhys Yarranton added a comment - 12/May/10 12:53 AM

See also QFJ-520.

Show
Rhys Yarranton added a comment - 12/May/10 12:53 AM See also QFJ-520.

People

Vote (0)
Watch (0)

Dates

  • Created:
    02/Oct/09 12:07 AM
    Updated:
    12/May/10 12:53 AM