[英]Adding fields to trailler alters checksum position - quickfix C# - #quickfixn
[英]QuickFixN OnLogon NullReferenceException at QuickFix.Session.NextLogon
我不知道這里出了什么問題。 管理員和登錄消息代碼看起來沒問題,消息看起來沒問題,數據字典看起來沒問題。
20211122-12:29:48.018 : Initiated logon request
20211122-12:29:48.129 : Sequence numbers reset due to ResetSeqNumFlag=Y
20211122-12:29:48.129 : Received logon
20211122-12:29:48.129 : Session FIX.4.4:FIX ENGINE.TEST/FIX.API->360T_RFQ_TEST disconnecting: System.NullReferenceException: Object reference not set to an instance of an object.
at IsFixService.IsFixService.OnLogon(SessionID s)
at QuickFix.Session.NextLogon(Message logon)
at QuickFix.Session.Next(MessageBuilder msgBuilder)
at QuickFix.SocketInitiatorThread.ProcessStream()
at QuickFix.SocketInitiatorThread.Read()
消息是
8=FIX.4.49=11935=A34=149=FIX ENGINE.TEST50=FIX.API52=20211122-12:29:48.01756=360T_RFQ_TEST98=0108=30141=Y554=pwd10=050
8=FIX.4.49=10235=A34=149=360T_RFQ_TEST52=20211122-12:29:48.06556=FIX ENGINE.TEST57=FIX.API98=0108=30141=Y10=160
我很困惑為什么會有一個NextLogon
因為只有 1 個登錄。
好的,我對 QuickFixN OnLogon
覆蓋方法和消息破解程序OnMessage(QuickFix.FIX44.Logon msg, SessionID s)
方法感到困惑。
OnMessage
方法運行良好。 我的onLogon
方法有一個NullReferenceException
試圖使用未初始化的登錄監視緩存。 這是一個錯誤。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.