Thread: Re: [Quickfix-developers] Logon exception
Brought to you by:
orenmnero
From: Sharma H. <sha...@ho...> - 2004-07-08 17:21:33
|
>From: Joerg Thoennes <Joe...@ma...> >To: Sharma Himanshu <sha...@ho...> >CC: qui...@li... >Subject: Re: [Quickfix-developers] Logon exception >Date: Thu, 08 Jul 2004 19:13:22 +0200 > >>I have been trying to connect a quickfix client(initiator) to a FIX >>engine. >> >>During startup process, the client application crashes. >> >>On checking the log files, I find that 2 logon messages were sent and a >>text message in XXX.events file indicated "Logon state is not valid for >>message". >> >>Why does this happen? Is there a proper solution for this? > >Please tell us more: > >1. QuickFIX version version 1.7.1 with Callstack enabled. >2. Operating system Solaris with Sun C++ compiler (no gcc) >3. API (C++, Java, .NET) C++ >4. Logfiles, ie XXX.incoming, XXX.outgoing, XXX.events Do not have on me now, but this is what I recollect (hope it makes some sense) *.events log file - Connection successfull after which the error message is posted. *.outgoing log file - shows two logon messages being sent, with Begin string = FIX.4.0, HeartBtInt = 60, Encryption = 0 *.incoming log file - Text - "Msg Sequence number too low" >5. cfg file [DEFAULT] ConnectionType=initiator HeartBtInt=60 FileStorePath=store FileLogPath=logs StartTime=06:00:00 EndTime=06:00:00 UseDataDictionary=N SocketConnectHost=myhost SocketConnectPort=5001 [SESSION] BeginString=FIX.4.0 SenderCompID=CLIENT1 TargetCompID=BROKER1 > >Otherwise it is difficult even to guess. > >Cheers, Jörg > >-- >Joerg Thoennes > http://macd.com >Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH >Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen _________________________________________________________________ Get Citibank Home Loan ! http://go.msnserver.com/IN/52043.asp At an unbelievably low interest rate. |
From: Dave L. <dav...@gl...> - 2004-07-09 09:19:42
|
I notice that you have the following in the cfg file: StartTime=3D06:00:00 EndTime=3D06:00:00 Try changing the EndTime. Kind regards Dave -- Dave Linaker http://macd.com Tel.: +44 20 7872 5802 Macdonald Associates Ltd Fax : +44 20 7753 2848 6 Cecil Aldin Drive, Reading RG31 6YP, UK ---------- Original Message ---------------------------------- From: "Sharma Himanshu" <sha...@ho...> Date: Thu, 08 Jul 2004 17:21:20 +0000 >QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/in= dex.html >QuickFIX FAQ: http://www.quickfixengine.org/quickfix/doc/html/FAQ.html >QuickFIX Support: http://www.quickfixengine.org/services.html > > > > >>From: Joerg Thoennes <Joe...@ma...> >>To: Sharma Himanshu <sha...@ho...> >>CC: qui...@li... >>Subject: Re: [Quickfix-developers] Logon exception >>Date: Thu, 08 Jul 2004 19:13:22 +0200 >> >>>I have been trying to connect a quickfix client(initiator) to a FIX >>>engine. >>> >>>During startup process, the client application crashes. >>> >>>On checking the log files, I find that 2 logon messages were sent and a = >>>text message in XXX.events file indicated "Logon state is not valid for = >>>message". >>> >>>Why does this happen? Is there a proper solution for this? >> >>Please tell us more: >> >>1. QuickFIX version >version 1.7.1 with Callstack enabled. >>2. Operating system >Solaris with Sun C++ compiler (no gcc) >>3. API (C++, Java, .NET) >C++ >>4. Logfiles, ie XXX.incoming, XXX.outgoing, XXX.events >Do not have on me now, but this is what I recollect (hope it makes some >sense) > >*.events log file - Connection successfull after which the error message i= s >posted. >*.outgoing log file - shows two logon messages being sent, with Begin stri= ng >=3D FIX.4.0, HeartBtInt =3D 60, Encryption =3D 0 >*.incoming log file - Text - "Msg Sequence number too low" > >>5. cfg file >[DEFAULT] >ConnectionType=3Dinitiator >HeartBtInt=3D60 >FileStorePath=3Dstore >FileLogPath=3Dlogs >StartTime=3D06:00:00 >EndTime=3D06:00:00 >UseDataDictionary=3DN >SocketConnectHost=3Dmyhost >SocketConnectPort=3D5001 > >[SESSION] >BeginString=3DFIX.4.0 >SenderCompID=3DCLIENT1 >TargetCompID=3DBROKER1 > >> >>Otherwise it is difficult even to guess. >> >>Cheers, J=F6rg >> >>-- >>Joerg Thoennes >> http://macd.com >>Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH >>Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen > >_________________________________________________________________ >Get Citibank Home Loan ! http://go.msnserver.com/IN/52043.asp At an >unbelievably low interest rate. > > > >------------------------------------------------------- >This SF.Net email sponsored by Black Hat Briefings & Training. >Attend Black Hat Briefings & Training, Las Vegas July 24-29 - >digital self defense, top technical experts, no vendor pitches, >unmatched networking opportunities. Visit www.blackhat.com >_______________________________________________ >Quickfix-developers mailing list >Qui...@li... >https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |
From: Sharma H. <sha...@ho...> - 2004-07-12 19:14:38
|
I have tried that, but it did not make difference :-( However, looking closer to the exception thrown, I found that QF library was trying to send a Reject Message because of exception during logon process. Source of 1st exception: File: DataDictionary.cpp Code: validate(...) { ... if ( m_checkFieldsOutOfOrder && !message.hasValidStructure(field) ) throw TagOutOfOrder(field); ... } The tag (field) identified was 52(SendingTime). Because of which the second exception thrown was "Logon state is not valid for message" (Session.cpp). This is correct since the logon was not successfull. I tiried running the same client with the executor application. It worked. I then commented the above snippet (rebuild qf lib) and ran my client again with original fix engine. This time it worked. Question: What is the purpose of this code, since by default m_checkFieldsOutOfOrder = true? Also is it defined in FIX Protocol that if the counter party does not send the tags in a specified order (FIX 4.0 in this case) the other side should reject the message. Regards, Himanshu >From: "Dave Linaker" <dav...@gl...> >Reply-To: <dav...@gl...> >To: <Joe...@ma...>, "Sharma Himanshu" ><sha...@ho...> >CC: <qui...@li...> >Subject: Re: [Quickfix-developers] Logon exception >Date: Fri, 9 Jul 2004 11:24:32 +0200 > >QuickFIX Documentation: >http://www.quickfixengine.org/quickfix/doc/html/index.html >QuickFIX FAQ: http://www.quickfixengine.org/quickfix/doc/html/FAQ.html >QuickFIX Support: http://www.quickfixengine.org/services.html > > >I notice that you have the following in the cfg file: > >StartTime=06:00:00 >EndTime=06:00:00 > >Try changing the EndTime. > >Kind regards > >Dave > >-- > >Dave Linaker http://macd.com >Tel.: +44 20 7872 5802 Macdonald Associates Ltd >Fax : +44 20 7753 2848 6 Cecil Aldin Drive, Reading RG31 6YP, UK > > >---------- Original Message ---------------------------------- >From: "Sharma Himanshu" <sha...@ho...> >Date: Thu, 08 Jul 2004 17:21:20 +0000 > > >QuickFIX Documentation: >http://www.quickfixengine.org/quickfix/doc/html/index.html > >QuickFIX FAQ: http://www.quickfixengine.org/quickfix/doc/html/FAQ.html > >QuickFIX Support: http://www.quickfixengine.org/services.html > > > > > > > > > >>From: Joerg Thoennes <Joe...@ma...> > >>To: Sharma Himanshu <sha...@ho...> > >>CC: qui...@li... > >>Subject: Re: [Quickfix-developers] Logon exception > >>Date: Thu, 08 Jul 2004 19:13:22 +0200 > >> > >>>I have been trying to connect a quickfix client(initiator) to a FIX > >>>engine. > >>> > >>>During startup process, the client application crashes. > >>> > >>>On checking the log files, I find that 2 logon messages were sent and a > >>>text message in XXX.events file indicated "Logon state is not valid for > >>>message". > >>> > >>>Why does this happen? Is there a proper solution for this? > >> > >>Please tell us more: > >> > >>1. QuickFIX version > >version 1.7.1 with Callstack enabled. > >>2. Operating system > >Solaris with Sun C++ compiler (no gcc) > >>3. API (C++, Java, .NET) > >C++ > >>4. Logfiles, ie XXX.incoming, XXX.outgoing, XXX.events > >Do not have on me now, but this is what I recollect (hope it makes some > >sense) > > > >*.events log file - Connection successfull after which the error message >is > >posted. > >*.outgoing log file - shows two logon messages being sent, with Begin >string > >= FIX.4.0, HeartBtInt = 60, Encryption = 0 > >*.incoming log file - Text - "Msg Sequence number too low" > > > >>5. cfg file > >[DEFAULT] > >ConnectionType=initiator > >HeartBtInt=60 > >FileStorePath=store > >FileLogPath=logs > >StartTime=06:00:00 > >EndTime=06:00:00 > >UseDataDictionary=N > >SocketConnectHost=myhost > >SocketConnectPort=5001 > > > >[SESSION] > >BeginString=FIX.4.0 > >SenderCompID=CLIENT1 > >TargetCompID=BROKER1 > > > >> > >>Otherwise it is difficult even to guess. > >> > >>Cheers, Jörg > >> > >>-- > >>Joerg Thoennes > >> http://macd.com > >>Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH > >>Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen > > > >_________________________________________________________________ > >Get Citibank Home Loan ! http://go.msnserver.com/IN/52043.asp At an > >unbelievably low interest rate. > > > > > > > >------------------------------------------------------- > >This SF.Net email sponsored by Black Hat Briefings & Training. > >Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > >digital self defense, top technical experts, no vendor pitches, > >unmatched networking opportunities. Visit www.blackhat.com > >_______________________________________________ > >Quickfix-developers mailing list > >Qui...@li... > >https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > > > > >------------------------------------------------------- >This SF.Net email sponsored by Black Hat Briefings & Training. >Attend Black Hat Briefings & Training, Las Vegas July 24-29 - >digital self defense, top technical experts, no vendor pitches, >unmatched networking opportunities. Visit www.blackhat.com >_______________________________________________ >Quickfix-developers mailing list >Qui...@li... >https://lists.sourceforge.net/lists/listinfo/quickfix-developers _________________________________________________________________ Drive away out of trouble. http://go.msnserver.com/IN/52042.asp Get a loan against your existing car. |
From: Joerg T. <Joe...@ma...> - 2004-07-08 17:30:44
|
>> 4. Logfiles, ie XXX.incoming, XXX.outgoing, XXX.events > > Do not have on me now, but this is what I recollect (hope it makes some > sense) > > *.events log file - Connection successfull after which the error message > is posted. > *.outgoing log file - shows two logon messages being sent, with Begin > string = FIX.4.0, HeartBtInt = 60, Encryption = 0 > *.incoming log file - Text - "Msg Sequence number too low" Can you reproduce that behaviour? In this way, you could get some logfiles. Cheers, Jörg -- Joerg Thoennes http://macd.com Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen |