RE: [Quickfix-users] Standard Header - order of tags.
Brought to you by:
orenmnero
From: Steve B. <sb...@sm...> - 2006-02-20 16:09:17
|
Hi Lars, =20 The order doesn't matter. If I'm reading your outgoing message correctly, there is a heartbeat interval field (108) in the header even though it's not a header field and it precedes tags 49 and 56 which are header fields. All header fields must precede the body fields. That's why the message is rejected. It appears you're setting the heartbeat interval on message.getHeader() instead of message body. =20 Steve =20 ________________________________ From: qui...@li... [mailto:qui...@li...] On Behalf Of lar...@su... Sent: Monday, February 20, 2006 2:42 PM To: qui...@li... Subject: [Quickfix-users] Standard Header - order of tags. When I was testing the quickfix-engine that if I send a message (this time a logon) where the sender and target id tags don't follow one another in order quickfix sends a reject message as well as getting a connection error.=20 20060220-10:13:02: Created session 20060220-10:13:02: connection established: net.gleamynode.netty2.Session@1e04cbf 20060220-10:13:02: Initiated logon request 20060220-10:13:02: error while receiving message quickfix.SessionException: Tried to send a reject while not logged on: Tag specified out of required order (field 49) at quickfix.Session.generateReject(Session.java:775) =20 I know that is got a Tried to send a rject while not logged on but that's beside the point since it say that tag 49 is out of required order but the FIX protocol only says that 8, 9 and 35 must be the first, second and third position of the message, then there isn't any order specified. What is also strange is that it sends an logon replay before the rejection message as well as terminate the connection. =20 =20 =20 Incoming log =3D 8=3DFIX.4.09=3D9235=3DA34=3D149=3DBenchmark_Initiator_052=3D20060220-10:2= 1:5656=3DBenc hmark_Acceptor_098=3D0108=3D3010=3D000 =20 Outgoing log 8=3DFIX.4.09=3D9235=3DA98=3D0108=3D3049=3DBenchmark_Acceptor_056=3DBenchm= ark_Initiator _052=3D20060220-10:21:5634=3D110=3D000 =20 =20 Lars |