Thread: [Quickfix-developers] getting started - problems with example apps tradeclient and executor
Brought to you by:
orenmnero
From: fopguy <ma...@tr...> - 2008-03-18 22:41:46
|
Hi everyone, First, thanks in advance for all your help. I was introduced to quickfix this morning and I know i have a lot to catch up on. I tried running the example application of tradeclient and executor found in the default example directory, and it is telling me that they cannot create a session. I have modified the example configurations in such a way that I know 'tradeclient' is acting as the initiator, and 'executor' is the acceptor. They can hook up on the specified port, as I can see them sending logon messages to each other. However, logon does not finish correct, as things seem to break down when they try to synchronize sequence numbers. In a nutshell, I have something like this ./execute execute.cfg and then ./tradeclient tradeclient.cfg On the execute side, I see the following printouts (Im trying my best to not be overly verbose) <20080318-20:22:19, FIX.4.2:EXECUTOR->CLIENT1, event> (Created session) (Accepted connection from 127.0.0.1 on port 5001) (Received logon request) (Responding to logon request) (MsgSeqNum too high, expecting 1166 but received 1219) (Sent ResendRequest FROM: 1166 TO: 0) (Received SequenceReset FROM: 1166 TO: 1220) <20080318-20:22:42, FIX.4.2:EXECUTOR->CLIENT1, event> (Socket Error: Connection reset by peer.) <20080318-20:22:42, FIX.4.2:EXECUTOR->CLIENT1, event> (Disconnecting) I looked on the client side and it said pretty much the same thing. The critical part... <20080318-20:22:36, FIX.4.2:CLIENT1->EXECUTOR, event> (Received ResendRequest FROM: 1166 TO: 0) <20080318-20:22:36, FIX.4.2:CLIENT1->EXECUTOR, event> (Sent SequenceReset TO: 1220) Seems to me that tradeclient got executor's sequence number synchronization message, and ignored it. As a result, the session never gets created. This seems very strange to me since I have not changed any code in the example applications. I am also running the standard configurations found in the cfg directory. Does anybody have any idea what's going on? Any help would be much appreciated! As a side question, any introductory reading material that would help me get the example apps up and running would be also appreciated. thanks mark -- View this message in context: http://www.nabble.com/getting-started---problems-with-example-apps-tradeclient-and-executor-tp16132288p16132288.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |
From: Shane T. <str...@co...> - 2008-03-20 14:32:20
|
Mark, Add the following to both config files: ResetOnLogon=Y This will force a sequence reset on each logon for both sides, avoiding any sequencing issues for the sample apps. -- Shane Trotter Connamara Systems, LLC On 3/18/08, fopguy <ma...@tr...> wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > Hi everyone, > > First, thanks in advance for all your help. I was introduced to quickfix > this morning and I know i have a lot to catch up on. > > I tried running the example application of tradeclient and executor found in > the default example directory, and it is telling me that they cannot create > a session. > > I have modified the example configurations in such a way that I know > 'tradeclient' is acting as the initiator, and 'executor' is the acceptor. > They can hook up on the specified port, as I can see them sending logon > messages to each other. However, logon does not finish correct, as things > seem to break down when they try to synchronize sequence numbers. > > In a nutshell, I have something like this > > ./execute execute.cfg > > and then > > ./tradeclient tradeclient.cfg > > On the execute side, I see the following printouts (Im trying my best to not > be overly verbose) > > <20080318-20:22:19, FIX.4.2:EXECUTOR->CLIENT1, event> > (Created session) > > (Accepted connection from 127.0.0.1 on port 5001) > (Received logon request) > (Responding to logon request) > (MsgSeqNum too high, expecting 1166 but received 1219) > (Sent ResendRequest FROM: 1166 TO: 0) > (Received SequenceReset FROM: 1166 TO: 1220) > <20080318-20:22:42, FIX.4.2:EXECUTOR->CLIENT1, event> > (Socket Error: Connection reset by peer.) > <20080318-20:22:42, FIX.4.2:EXECUTOR->CLIENT1, event> > (Disconnecting) > > > I looked on the client side and it said pretty much the same thing. The > critical part... > > <20080318-20:22:36, FIX.4.2:CLIENT1->EXECUTOR, event> > (Received ResendRequest FROM: 1166 TO: 0) > > <20080318-20:22:36, FIX.4.2:CLIENT1->EXECUTOR, event> > (Sent SequenceReset TO: 1220) > > Seems to me that tradeclient got executor's sequence number synchronization > message, and ignored it. As a result, the session never gets created. > > This seems very strange to me since I have not changed any code in the > example applications. I am also running the standard configurations found in > the cfg directory. > > Does anybody have any idea what's going on? Any help would be much > appreciated! > > As a side question, any introductory reading material that would help me get > the example apps up and running would be also appreciated. > > thanks > > mark > > > -- > View this message in context: http://www.nabble.com/getting-started---problems-with-example-apps-tradeclient-and-executor-tp16132288p16132288.html > Sent from the QuickFIX - Dev mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |
From: mhassan <has...@gm...> - 2008-09-24 07:05:29
|
Could anyone pls. provide some sample executor and acceptor config files. it would really help a lot thanks m. hassan -- View this message in context: http://www.nabble.com/getting-started---problems-with-example-apps-tradeclient-and-executor-tp16132288p19643118.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |