簡體   English   中英

QuickFixN OnLogon NullReferenceException 在 QuickFix.Session.NextLogon

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM