[Quickfix-developers] SessionNotFound
Brought to you by:
orenmnero
From: Vincent P. <vpr...@ph...> - 2008-05-19 22:12:04
|
My call to sendToTarget(const Order&) is returning a SessionNotFound exception. I modeled my code after the quickfix example code - tradeclient and ordermatch. Here's my initiator code: QFClient app; FIX::SessionSettings cfg("client.cfg"); FIX::FileStoreFactory sf(cfg); FIX::ScreenLogFactory lf(cfg); FIX::SocketInitiator fixSock(app, sf, cfg, lf); fixSock.start(); FIX44::NewOrderSingle o( ..., ..., ... ); ... // add NewOrderSingle fields FIX::Session::sendToTarget(o); // get SessionNotFound exception I use the single parameter variant of sendToTarget, which is the same as the sample code. For some reason, the sample code works and mine doesn't ( SessionNotFound exception ). I can't see anything different in the sample code, so I need help figuring out what's wrong. I've attached the configs loaded by SessionSettings after my sig. Thanks!! -- Vincent Here's the .cfg for the acceptor's SessionSettings object: [DEFAULT] 2 ConnectionType=acceptor 3 SocketAcceptPort=5001 4 SocketReuseAddress=Y 5 StartTime=00:00:00 6 EndTime=00:00:00 7 8 [SESSION] 9 BeginString=FIX.4.4 10 SenderCompID=MP 11 TargetCompID=CLIENT 12 FileStorePath=store 13 DataDictionary=spec/FIX44.xml Here's the .cfg for the initiator's SessionSettings object: [DEFAULT] 2 ConnectionType=initiator 3 HeartBtInt=30 4 ReconnectInterval=1 5 FileStorePath=store 6 FileLogPath=log 7 StartTime=00:00:00 8 EndTime=00:00:00 9 UseDataDictionary=N 10 SocketConnectHost=localhost 11 12 [SESSION] 13 BeginString=FIX.4.4 14 SenderCompID=CLIENT 15 TargetCompID=MP 16 SocketConnectPort=5001 17 |