[英]QuickFixN OnLogon NullReferenceException at QuickFix.Session.NextLogon
I can't tell what's wrong here.我不知道这里出了什么问题。 Admin and logon message code looks ok, the messages look ok, and data dictionary looks ok.
管理员和登录消息代码看起来没问题,消息看起来没问题,数据字典看起来没问题。
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()
The messages are消息是
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
I am confused why there would be a NextLogon
at all because there is only 1 logon.我很困惑为什么会有一个
NextLogon
因为只有 1 个登录。
Ok I was confused between QuickFixN OnLogon
override method, and the message cracker OnMessage(QuickFix.FIX44.Logon msg, SessionID s)
method.好的,我对 QuickFixN
OnLogon
覆盖方法和消息破解程序OnMessage(QuickFix.FIX44.Logon msg, SessionID s)
方法感到困惑。
The OnMessage
method was working fine. OnMessage
方法运行良好。 My onLogon
method had a NullReferenceException
trying to use an uninitalised logon monitoring cache.我的
onLogon
方法有一个NullReferenceException
试图使用未初始化的登录监视缓存。 It was a bug.这是一个错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.