Thread: [Quickfix-users] error:no session defined for initiator
Brought to you by:
orenmnero
From: George M. C. <ge...@qu...> - 2005-04-12 13:17:48
|
I am trying to use the sample c# application code with a simple config file. I get the error "no session defined for initiator" in the constructor of my Intiator object. Here is my code and the config fiel contents: try { SessionSettings settings = new SessionSettings(_fileName); FixApplication application = new FixApplication(); FileStoreFactory storeFactory = new FileStoreFactory(settings); FileLogFactory logFactory = new FileLogFactory(settings); MessageFactory messageFactory = new DefaultMessageFactory(); ThreadedSocketInitiator init = new ThreadedSocketInitiator( application, storeFactory, settings, messageFactory ); } catch(ConfigError e) { log.Error( e ); } config file: [DEFAULT] ConnectionType=initator ReconnectInterval=30 HeartBtInt=30 SenderCompID=A [SESSION] BeginString=FIX.4.2 TargetCompID=B SocketConnectPort=9890 SocketConnectHost=192.168.1.8 DataDictionary=C:/tools/quickfix/quickfix-bin-vc7-1.9.4/quickfix/spec/FIX42.xml |
From: Guillermo A. A. <gar...@vi...> - 2005-04-13 14:00:15
|
CkhhdmUgeW91IGp1c3QgY29waWVkIHRoZSBjb250ZW50cyBvZiB5b3VyIGNvbmZpZyBmaWxlIGhl cmU/IElmIHRoYXQncyB0aGUKY2FzZSB5b3Ugc2hvdWxkIGxvb2sgY2FyZWZ1bGx5IHRvIHRoZSBD b25uZWN0aW9uVHlwZSBmaWVsZDogaXQgc2hvdWxkIGJlCiJpbml0aWF0b3IiIGluc3RlYWQgb2Yg ImluaXRhdG9yIi4KCkhvcGUgaXQgd2lsbCBoZWxwLgoKQ2hlZXJzLApHdWlsbGVybW8uCgotLS0t LU1lbnNhamUgb3JpZ2luYWwtLS0tLQpEZTogcXVpY2tmaXgtdXNlcnMtYWRtaW5AbGlzdHMuc291 cmNlZm9yZ2UubmV0ClttYWlsdG86cXVpY2tmaXgtdXNlcnMtYWRtaW5AbGlzdHMuc291cmNlZm9y Z2UubmV0XUVuIG5vbWJyZSBkZSBHZW9yZ2UKTS4gQ29sZXMKRW52aWFkbyBlbDogbWFydGVzLCAx MiB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BiaW5kIHRoaXMgZW50aXR5 LiAKCklmIHlvdSByZWNlaXZlIHRoaXMgbWVzc2FnZSBpbiBlcnJvciwgcGxlYXNlIGRlbGV0ZSBp dCB3aXRob3V0IHRyYW5zbWl0dGluZyBpdCB0byBhbnkgdGhpcmQgcGFydHkgb3Iga2VlcGluZyBp dCBpbiBhbnkgZm9ybSBhbmQgbm90aWZ5IHVzIGltbWVkaWF0ZWx5IGVpdGhlciBieSBwaG9uZSAo MzQgOTEgNTg5MjEyMykgb3IgdXNpbmcgdGhlIGUtIG1haWwgYWRkcmVzcyBvZiB0aGUgc2VuZGVy LiBUaGFuayBZb3UuCg== |
From: George M. C. <ge...@qu...> - 2005-04-13 14:02:34
|
I resolved the COM error by entering UseDataDictionary=3DN, now I am=20 trying to get the initiator to succesfully log on to the session. Is it=20 bad not to use the DataDictionary? Thanks for your help! Best, George Guillermo Arbeiza Alameda wrote: >Have you just copied the contents of your config file here? If that's th= e >case you should look carefully to the ConnectionType field: it should be >"initiator" instead of "initator". > >Hope it will help. > >Cheers, >Guillermo. > >-----Mensaje original----- >De: qui...@li... >[mailto:qui...@li...]En nombre de George >M. Coles >Enviado el: martes, 12 de abril de 2005 15:18 >Para: qui...@li... >Asunto: [Quickfix-users] error:no session defined for initiator > > >QuickFIX Documentation: >http://www.quickfixengine.org/quickfix/doc/html/index.html >QuickFIX FAQ: http://www.quickfixengine.org/wikifix/index.php?QuickFixFA= Q >QuickFIX Support: http://www.quickfixengine.org/services.html > >I am trying to use the sample c# application code with a simple config >file. I get the error "no session defined for initiator" in the >constructor of my Intiator object. Here is my code and the config fiel >contents: > >try > { > SessionSettings settings =3D new >SessionSettings(_fileName); > FixApplication application =3D new FixApplication(); > FileStoreFactory storeFactory =3D new >FileStoreFactory(settings); > FileLogFactory logFactory =3D new >FileLogFactory(settings); > MessageFactory messageFactory =3D new >DefaultMessageFactory(); > ThreadedSocketInitiator init =3D new >ThreadedSocketInitiator( application, storeFactory, settings, >messageFactory ); > } > catch(ConfigError e) > { > log.Error( e ); > } > >config file: >[DEFAULT] >ConnectionType=3Dinitator >ReconnectInterval=3D30 >HeartBtInt=3D30 >SenderCompID=3DA > >[SESSION] >BeginString=3DFIX.4.2 >TargetCompID=3DB >SocketConnectPort=3D9890 >SocketConnectHost=3D192.168.1.8 >DataDictionary=3DC:/tools/quickfix/quickfix-bin-vc7-1.9.4/quickfix/spec/= FIX42. >xml > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick >_______________________________________________ >Quickfix-users mailing list >Qui...@li... >https://lists.sourceforge.net/lists/listinfo/quickfix-users > > >*** > > > >****************************** AVISO LEGAL *****************************= * > >La informaci=F3n contenida en este mensaje es para uso exclusivo de su d= estinatario. No debe copiarse, transmitirse a terceros ni guardarse por e= stos =FAltimos, salvo autorizaci=F3n del remitente. > >Puede contener informaci=F3n confidencial o legalmente protegida cuyo r=E9= gimen legal de utilizaci=F3n no se ve afectado por el hecho de que haya s= ido enviada por correo electr=F3nico. > >Su env=EDo por error a una persona distinta de su destinatario real no i= mplica que se haya modificado tal destinatario ni supone renuncia a su ev= entual car=E1cter confidencial o al r=E9gimen legal que rija su utilizaci= =F3n. > >Cualquier opini=F3n expresada en este mensaje vincular=E1 exclusivamente= a la persona que lo haya remitido, excepto cuando el mensaje establezca = lo contrario y el remitente est=E9 autorizado para establecer que dichas = opiniones vincular=E1n a esta entidad.=20 > >En el supuesto de que este correo se recibiera por error, rogamos proced= an a borrarlo, sin reenviarlo a terceros ni conservarlo en cualquier sopo= rte y nos informen inmediatamente llamando al tel=E9fono 34 91 5892123 o = a la direcci=F3n de correo electr=F3nico remitente. Gracias. > >****************************** DISCLAIMER ****************************** > >The information contained in this message is for the exclusive use of th= e named person. It can not be copied, transmitted to third parties or sto= red by the latter, except if authorised by the sender. > >It may contain confidential or legally privileged information whose lega= l regime is not affected by the fact that this information has been sent = by e-mail.=20 > >Its erroneous transmission to a person other than the real named person = neither implies any modification of this named person nor a renunciation = of the eventual confidentiality or legal regime affecting the use of conc= erned message. >=20 >Any views expressed in this message are binding exclusively upon the ind= ividual sender, except where the message states otherwise and the sender = is authorised to bind this entity.=20 > >If you receive this message in error, please delete it without transmitt= ing it to any third party or keeping it in any form and notify us immedia= tely either by phone (34 91 5892123) or using the e- mail address of the = sender. Thank You. > > =20 > |
From: Oren M. <or...@qu...> - 2005-04-14 13:52:50
|
That COM problem is fixed in the repository. It has to do with which =20= threading model you are using vs. which one we are trying to use when =20= loading MSXML. Future versions will detect the correct model and load =20= appropriately. In any case it is ok to not use a DataDictionary as long as you do not =20= plan to use repeating groups. Otherwise it is absolutely necessary. =20= If you plan on just doing things like basic order routing with =20 NewOrderSingle, ExecutionReport etc, you will be just fine. --oren On Apr 13, 2005, at 9:02 AM, George M. Coles wrote: > QuickFIX Documentation: =20 > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX FAQ: =20 > http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ > QuickFIX Support: http://www.quickfixengine.org/services.html > > I resolved the COM error by entering UseDataDictionary=3DN, now I am =20= > trying to get the initiator to succesfully log on to the session. Is =20= > it bad not to use the DataDictionary? > > Thanks for your help! > > Best, > George > > Guillermo Arbeiza Alameda wrote: > >> Have you just copied the contents of your config file here? If that's = =20 >> the >> case you should look carefully to the ConnectionType field: it should = =20 >> be >> "initiator" instead of "initator". >> >> Hope it will help. >> >> Cheers, >> Guillermo. >> >> -----Mensaje original----- >> De: qui...@li... >> [mailto:qui...@li...]En nombre de = George >> M. Coles >> Enviado el: martes, 12 de abril de 2005 15:18 >> Para: qui...@li... >> Asunto: [Quickfix-users] error:no session defined for initiator >> >> >> QuickFIX Documentation: >> http://www.quickfixengine.org/quickfix/doc/html/index.html >> QuickFIX FAQ: =20 >> http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ >> QuickFIX Support: http://www.quickfixengine.org/services.html >> >> I am trying to use the sample c# application code with a simple = config >> file. I get the error "no session defined for initiator" in the >> constructor of my Intiator object. Here is my code and the config = fiel >> contents: >> >> try >> { >> SessionSettings settings =3D new >> SessionSettings(_fileName); >> FixApplication application =3D new = FixApplication(); >> FileStoreFactory storeFactory =3D new >> FileStoreFactory(settings); >> FileLogFactory logFactory =3D new >> FileLogFactory(settings); >> MessageFactory messageFactory =3D new >> DefaultMessageFactory(); >> ThreadedSocketInitiator init =3D new >> ThreadedSocketInitiator( application, storeFactory, settings, >> messageFactory ); >> } >> catch(ConfigError e) >> { >> log.Error( e ); >> } >> >> config file: >> [DEFAULT] >> ConnectionType=3Dinitator >> ReconnectInterval=3D30 >> HeartBtInt=3D30 >> SenderCompID=3DA >> >> [SESSION] >> BeginString=3DFIX.4.2 >> TargetCompID=3DB >> SocketConnectPort=3D9890 >> SocketConnectHost=3D192.168.1.8 >> DataDictionary=3DC:/tools/quickfix/quickfix-bin-vc7-1.9.4/quickfix/=20= >> spec/FIX42. >> xml >> >> >> >> ------------------------------------------------------- >> SF email is sponsored by - The IT Product Guide >> Read honest & candid reviews on hundreds of IT Products from real =20 >> users. >> Discover which products truly live up to the hype. Start reading now. >> http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick >> _______________________________________________ >> Quickfix-users mailing list >> Qui...@li... >> https://lists.sourceforge.net/lists/listinfo/quickfix-users >> >> >> *** >> >> >> >> ****************************** AVISO LEGAL =20 >> ****************************** >> >> La informaci=F3n contenida en este mensaje es para uso exclusivo de = su =20 >> destinatario. No debe copiarse, transmitirse a terceros ni guardarse =20= >> por estos =FAltimos, salvo autorizaci=F3n del remitente. >> >> Puede contener informaci=F3n confidencial o legalmente protegida cuyo = =20 >> r=E9gimen legal de utilizaci=F3n no se ve afectado por el hecho de = que =20 >> haya sido enviada por correo electr=F3nico. >> >> Su env=EDo por error a una persona distinta de su destinatario real = no =20 >> implica que se haya modificado tal destinatario ni supone renuncia a =20= >> su eventual car=E1cter confidencial o al r=E9gimen legal que rija su =20= >> utilizaci=F3n. >> >> Cualquier opini=F3n expresada en este mensaje vincular=E1 = exclusivamente =20 >> a la persona que lo haya remitido, excepto cuando el mensaje =20 >> establezca lo contrario y el remitente est=E9 autorizado para =20 >> establecer que dichas opiniones vincular=E1n a esta entidad. >> En el supuesto de que este correo se recibiera por error, rogamos =20 >> procedan a borrarlo, sin reenviarlo a terceros ni conservarlo en =20 >> cualquier soporte y nos informen inmediatamente llamando al tel=E9fono = =20 >> 34 91 5892123 o a la direcci=F3n de correo electr=F3nico remitente. =20= >> Gracias. >> >> ****************************** DISCLAIMER =20 >> ****************************** >> >> The information contained in this message is for the exclusive use of = =20 >> the named person. It can not be copied, transmitted to third parties =20= >> or stored by the latter, except if authorised by the sender. >> >> It may contain confidential or legally privileged information whose =20= >> legal regime is not affected by the fact that this information has =20= >> been sent by e-mail. >> Its erroneous transmission to a person other than the real named =20 >> person neither implies any modification of this named person nor a =20= >> renunciation of the eventual confidentiality or legal regime =20 >> affecting the use of concerned message. >> Any views expressed in this message are binding exclusively upon the =20= >> individual sender, except where the message states otherwise and the =20= >> sender is authorised to bind this entity. >> If you receive this message in error, please delete it without =20 >> transmitting it to any third party or keeping it in any form and =20 >> notify us immediately either by phone (34 91 5892123) or using the e- = =20 >> mail address of the sender. Thank You. >> >> > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real =20 > users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=3Dclick > _______________________________________________ > Quickfix-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-users > |
From: Brian E. <azz...@ya...> - 2005-04-29 19:25:14
|
Oren - What is the purpose of the "what" string in RejectLogon? I had hoped that this would be used to send a logout message with a Text field indicating the reason for the logon rejection - in this way, I could indicate to my clients that there was a bad username or such, but the "what" field is actually ignored by the Session::next() exception handler. I think it might be really useful to be able to generate a logout message with a Text field when the "what" field of the RejectLogon is not empty. The following patch would supply this functionality: Session.cpp -01181 catch ( RejectLogon& ) +01181 catch ( RejectLogon& e) 01182 { 01183 m_state.onEvent( "Logon rejected" ); + if (!e.what().empty()) + generateLogout(e.what()); 01184 disconnect(); 01185 } This way, users that did not want to generate logouts could simply leave out a reason ("what"), while users that wanted to add a logout just need to set a non-blank reason. // No logout throw FIX::RejectLogon(); // Logout with reason throw FIX::RejectLogon("Bad username or password."); What do you think? I attempted to work around the problem by calling generateLogout() prior to throwing the exception, but generateLogout() is a private method and I don't really want to modify the QuickFIX code; it makes upgrading a pain. - Brian Erst |
From: Oren M. <or...@qu...> - 2005-04-30 06:20:40
|
Yeah, this looks like a good idea. I'll look at incorporating it into CVS. --oren On Apr 29, 2005, at 2:25 PM, Brian Erst wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX FAQ: > http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ > QuickFIX Support: http://www.quickfixengine.org/services.html > > Oren - > > What is the purpose of the "what" string in RejectLogon? I had hoped > that this would be used to send a logout message with a Text field > indicating the reason for the logon rejection - in this way, I could > indicate to my clients that there was a bad username or such, but the > "what" field is actually ignored by the Session::next() exception > handler. > > I think it might be really useful to be able to generate a logout > message with a Text field when the "what" field of the RejectLogon is > not empty. The following patch would supply this functionality: > > Session.cpp > > -01181 catch ( RejectLogon& ) > +01181 catch ( RejectLogon& e) > 01182 { > 01183 m_state.onEvent( "Logon rejected" ); > + if (!e.what().empty()) > + generateLogout(e.what()); > 01184 disconnect(); > 01185 } > > This way, users that did not want to generate logouts could simply > leave out a reason ("what"), while users that wanted to add a logout > just need to set a non-blank reason. > > // No logout > throw FIX::RejectLogon(); > > // Logout with reason > throw FIX::RejectLogon("Bad username or password."); > > What do you think? I attempted to work around the problem by calling > generateLogout() prior to throwing the exception, but generateLogout() > is a private method and I don't really want to modify the QuickFIX > code; it makes upgrading a pain. > > - Brian Erst > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. > Get your fingers limbered up and give it your best shot. 4 great > events, 4 > opportunities to win big! Highest score wins.NEC IT Guy Games. Play to > win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 > _______________________________________________ > Quickfix-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-users > |