[QFJ-477] TAG_SPECIFIED_OUT_OF_REQUIRED_ORDER error while creating message from another FIX message and doValidation = false Created: 02/Oct/09  Updated: 01/Aug/12  Resolved: 01/Aug/12

Status: Closed
Project: QuickFIX/J
Component/s: Engine
Affects Version/s: 1.4.0
Fix Version/s: 1.5.1

Type: Bug Priority: Default
Reporter: Subodh Jain Assignee: Unassigned
Resolution: Fixed Votes: 0
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()); }

}



 Comments   
Comment by Subodh Jain [ 02/Oct/09 ]

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

Comment by Rhys Yarranton [ 12/May/10 ]

See also QFJ-520.

Comment by Christoph John [ 01/Aug/12 ]

Looking at the code it looks like this is fixed since 1.5.1.

The FieldException in parseBody() is only thrown if doValidation==true.

Generated at Wed Nov 27 03:55:23 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.