Reputation: 603
Currently I am working on Java Project where trying to use QuickFIX engine. But every time getting below message:
MsgSeqNum too low, expecting 3 but received 2
For some security reason, can't share the whole Java file and config, but code portion can be shared in customized way.
What I want from here is, if there is any Java sample using QuickFIX where above error point has been fixed.
NB: Apologies if the same question is there. Please help me to find that one also.
Upvotes: 2
Views: 2183
Reputation: 1608
You can manually set the sequence numbers using APIs:
Session.lookupSession(session_).setNextSenderMsgSeqNum(); Session.lookupSession(session_).setNextTargetMsgSeqNum();
You can also refer: How to set sequence numbers manually in QuickFixJ?
Upvotes: 1