{{Quickfixn}} How to catch transport-layer exception

Grant Birchmeier gbirchmeier at connamara.com
Fri Nov 20 07:56:12 PST 2015


Is this error being caused by messages that contain Chinese characters?

On Fri, Nov 20, 2015 at 1:16 AM, 陈荣澍 <chenrongshu at yxinvestment.com> wrote:

> Everytime there is a transport-layer exception, QF will kick out the
> current session and re-init a logon request like below. Is there a way to
> catch this kind of exception to avoid re-initializing the current session?
>
> 20151120-07:00:38.656 : Connection succeeded
> 20151120-07:00:38.675 : Session reset: ResetOnLogon
> 20151120-07:00:38.696 : Session reset: ResetSeqNumFlag
> 20151120-07:00:38.698 : Initiated logon request
> 20151120-07:00:38.970 : Sequence numbers reset due to ResetSeqNumFlag=Y
> 20151120-07:00:40.899 : Received logon
>
> 20151120-07:00:48.843 : Invalid message: Expected BodyLength=295, Received BodyLength=255
>
> 20151120-07:00:48.868 : Session FIX.4.2:client->Q_SERVER disconnecting: QuickFix.InvalidMessage: Invalid message: Expected BodyLength=295, Received BodyLength=255
>    在 QuickFix.Session.Next(MessageBuilder msgBuilder)
>    在 QuickFix.Session.NextMessage(String msgStr)
>    在 QuickFix.Session.Next(String msgStr)
>    在 QuickFix.SocketInitiatorThread.ProcessStream()
>    在 QuickFix.SocketInitiatorThread.Read()
> 20151120-07:00:48.903 : Connecting to 10.253.251.93 on port 3383
> 20151120-07:00:48.909 : Connection succeeded
> 20151120-07:00:48.921 : Session reset: ResetOnLogon
> 20151120-07:00:48.929 : Session reset: ResetSeqNumFlag
> 20151120-07:00:48.930 : Initiated logon request
> 20151120-07:00:49.400 : Sequence numbers reset due to ResetSeqNumFlag=Y
>
> Justin Chen
> Thanks
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>


-- 
Grant Birchmeier
*Connamara Systems, LLC*
*Made-To-Measure Trading Solutions.*
Exactly what you need. No more. No less.
http://connamara.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20151120/7ea451bc/attachment-0002.htm>


More information about the Quickfixn mailing list