2013-08-28 18 views
0

我已經使用'QuickFIX/n is v1.4.0'從'http://www.quickfixn.org/download'網站創建了Fix應用程序。 當我運行的應用程序,我隨機獲得序列的錯誤number.Sometimes的應用程序運行正常,有些時候我得到的序列號problem.The日誌詳情如下:quickfix/n錯誤:MsgSeqNum太高

20130828-10:28:30.468 : Created session 

20130828-10:28:31.328 :> FIX.4.4:Server->Client Socket Reader 7995840 accepting session >FIX.4.4:Server->Client from 192.168.1.*:7356 

20130828-10:28:31.328 :> FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:28:31.578 : Received logon 

20130828-10:28:31.625 :> Responding to logon request 

20130828-10:30:28.968 : Created session 

20130828-10:30:29.796 : FIX.4.4:Server->Client Socket Reader 36610825 accepting session FIX.4.4:Server->Client from 192.168.1.*:7364 

20130828-10:30:29.796 : FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:30.625 : Verify failed: MsgSeqNum too low,expecting 94 but received 44 

20130828-10:30:30.625 : Session FIX.4.4:Server->Client disconnecting: Verify failed: MsgSeqNum too low, expecting 94 but received 44 

20130828-10:30:31.375 :FIX.4.4:Server->Client Socket Reader 20554616 accepting session 
FIX.4.4:Server->Client from 192.168.1.*:7365 

20130828-10:30:31.375 :FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:31.468 : Verify failed: MsgSeqNum too low, expecting 94 but received 47 

20130828-10:30:31.468 : Session FIX.4.4:Server->Client disconnecting: Verify failed: MsgSeqNum too low, expecting 94 but received 47 

20130828-10:30:32.406 : FIX.4.4:Server->Client Socket Reader 15510466 accepting session FIX.4.4:Server->Client from > 192.168.1.*:7366 

20130828-10:30:32.406 : FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:32.484 : Verify failed: MsgSeqNum too low, expecting 94 but received 49 

20130828-10:30:32.484 : Session FIX.4.4:Server->Client disconnecting:Verify failed:MsgSeqNum too low, expecting 94 but received 49 

20130828-10:30:33.390 : FIX.4.4:Server->Client Socket Reader 23324256 
accepting session FIX.4.4:Server->Client from 192.168.1.*:7367 

20130828-10:30:33.390 : FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:33.656 : Verify failed: MsgSeqNum too low,expecting 94 but received 51 

20130828-10:30:33.656 : SessionFIX.4.4:Server->Client disconnecting: Verify failed:MsgSeqNum too low, expecting 94 but received 51 

20130828-10:30:34.421 :FIX.4.4:Server->Client Socket Reader 34250480 accepting session FIX.4.4:Server->Client from 192.168.1.*:7368 

20130828-10:30:34.421 :FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:34.515 : Verify failed: MsgSeqNum too low, expecting 94 but received 53 
20130828-10:30:34.515 : Session FIX.4.4:Server->Client disconnecting: Verify failed: MsgSeqNum too low, expecting 94 but received 53 

20130828-10:30:35.546 : FIX.4.4:Server->Client Socket Reader 58408916 accepting session FIX.4.4:Server->Client from 192.168.1.*:7369 

20130828-10:30:35.546 : FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:35.625 : Verify failed: MsgSeqNum too low, expecting 94 but received 55 

20130828-10:30:35.625 : Session FIX.4.4:Server->Client disconnecting:Verify failed: MsgSeqNum too low, expecting 94 but received 55 

20130828-10:30:36.640 : FIX.4.4:Server->Client Socket Reader 2348279 accepting session FIX.4.4:Server->Client from 192.168.1.*:7370 

20130828-10:30:36.640 : FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:36.734 : Verify failed: MsgSeqNum too low,expecting 94 but received 57 

20130828-10:30:36.734 : Session FIX.4.4:Server->Client disconnecting: Verify failed: MsgSeqNum too low, expecting 94 but received 57 

20130828-10:30:37.500 :FIX.4.4:Server->Client Socket Reader 61669314 accepting session 
FIX.4.4:Server->Client from 192.168.1.*:7371 

20130828-10:30:37.500 :FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:37.609 : Verify failed: MsgSeqNum too low, expecting 94 but received 59 

20130828-10:30:37.609 : Session FIX.4.4:Server->Client disconnecting: Verify failed: MsgSeqNum too low, expecting 94 but received 59 

20130828-10:30:38.531 : FIX.4.4:Server->Client Socket Reader 36865354 accepting session FIX.4.4:Server->Client from 192.168.1.*:7372 

20130828-10:30:38.531 : FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:38.640 : Verify failed: MsgSeqNum too low, expecting 94 but received 61 

20130828-10:30:38.640 : Session FIX.4.4:Server->Client disconnecting:Verify failed: MsgSeqNum too low, expecting 94 but received 61 

20130828-10:30:39.515 : FIX.4.4:Server->Client Socket Reader 3196068 accepting session FIX.4.4:Server->Client from 192.168.1.*:7373 

20130828-10:30:39.515 : FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:39.781 : Verify failed: MsgSeqNum too low,expecting 94 but received 63 

20130828-10:30:39.781 : Session FIX.4.4:Server->Client disconnecting: Verify failed: MsgSeqNum too low, expecting 94 but received 63 

20130828-10:30:40.625 :FIX.4.4:Server->Client Socket Reader 4186222 accepting session 
FIX.4.4:Server->Client from 192.168.1.*:7374 

20130828-10:30:40.625 :FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:40.718 : Verify failed: MsgSeqNum too low, expecting 94 but received 65 

20130828-10:30:40.718 : Session FIX.4.4:Server->Client disconnecting: Verify failed: MsgSeqNum too low, expecting 94 but received 65 

20130828-10:30:41.515 : FIX.4.4:Server->Client Socket Reader 764807 accepting session FIX.4.4:Server->Client from 192.168.1.*:7375 

20130828-10:30:41.515 : FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:41.796 : Verify failed: MsgSeqNum too low, expecting 94 but received 67 

20130828-10:30:41.796 : Session FIX.4.4:Server->Client disconnecting:Verify failed: MsgSeqNum too low, expecting 94 but received 67 

20130828-10:30:42.546 : FIX.4.4:Server->Client Socket Reader 10479095 accepting session FIX.4.4:Server->Client from 192.168.1.*:7376 

20130828-10:30:42.546 : FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:42.640 : Verify failed: MsgSeqNum too low,expecting 94 but received 69 

20130828-10:30:42.640 : Session FIX.4.4:Server->Client disconnecting: Verify failed: MsgSeqNum too low, expecting 94 but received 69 

20130828-10:30:43.515 :FIX.4.4:Server->Client Socket Reader 4684807 accepting session 
FIX.4.4:Server->Client from 192.168.1.*:7377 

20130828-10:30:43.515 :FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:43.750 : Verify failed: MsgSeqNum too low, expecting 94 but received 71 
20130828-10:30:43.750 : Session FIX.4.4:Server->Client disconnecting: Verify failed: MsgSeqNum too low, expecting 94 but received 71 

20130828-10:30:44.562 : FIX.4.4:Server->Client SocketReader 41662089 accepting session FIX.4.4:Server->Client from 192.168.1.*:7378 

20130828-10:30:44.562 : FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:44.656 : Verify failed: MsgSeqNum too low, expecting 94 but received 73 

20130828-10:30:44.656 : Session FIX.4.4:Server->Client disconnecting:Verify failed: MsgSeqNum too low, expecting 94 but received 73 

20130828-10:30:45.687 : FIX.4.4:Server->Client Socket Reader 46338128 accepting session FIX.4.4:Server->Client from 192.168.1.*:7379 

20130828-10:30:45.687 : FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:45.812 : Verify failed: MsgSeqNum too low,expecting 94 but received 75 

20130828-10:30:45.812 : Session FIX.4.4:Server->Client disconnecting: Verify failed: MsgSeqNum toolow, expecting 94 but received 75 

20130828-10:30:46.593 :FIX.4.4:Server->Client Socket Reader 28975576 accepting session 
FIX.4.4:Server->Client from 192.168.1.*:7380 

20130828-10:30:46.593 : FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:46.656 : Verify failed: MsgSeqNum too low, expecting 94 but received 77 
20130828-10:30:46.656 : Session FIX.4.4:Server->Client disconnecting: Verify failed: MsgSeqNum too low, expecting 94 but received 77 

20130828-10:30:47.859 : FIX.4.4:Server->Client Socket Reader 11942173 accepting session FIX.4.4:Server->Client from 192.168.1.*:7381 

20130828-10:30:47.859 : FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:47.953 : Verify failed: MsgSeqNum too low, expecting 94 but received 79 

20130828-10:30:47.953 : Session FIX.4.4:Server->Client disconnecting:Verify failed: MsgSeqNum too low, expecting 94 but received 79 

20130828-10:30:48.593 : FIX.4.4:Server->Client Socket Reader 40054951 accepting session FIX.4.4:Server->Client from 192.168.1.*:7382 

20130828-10:30:48.593 : FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 20130828-10:30:48.703 : Verify failed: MsgSeqNum too low,expecting 94 but received 81 

20130828-10:30:48.703 : Session FIX.4.4:Server->Client disconnecting: Verify failed: MsgSeqNum toolow, expecting 94 but received 81 

20130828-10:30:49.734 :FIX.4.4:Server->Client Socket Reader 9985467 accepting session FIX.4.4:Server->Client from 192.168.1.*:7383 

20130828-10:30:49.734 :FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:49.937 : Verify failed: MsgSeqNum too low, expecting 94 but received 83 

20130828-10:30:49.937 : Session FIX.4.4:Server->Client disconnecting: Verify failed: MsgSeqNum too low, expecting 94 but received 83 

20130828-10:30:50.703 : FIX.4.4:Server->Client Socket Reader 19425995 accepting session FIX.4.4:Server->Client from 192.168.1.*:7384 

20130828-10:30:50.703 : FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:51.062 : Verify failed: MsgSeqNum too low, expecting 94 but received 85 

20130828-10:30:51.062 : Session FIX.4.4:Server->Client disconnecting: Verify failed: MsgSeqNum too low, expecting 94 but received 85 

20130828-10:30:51.687 : FIX.4.4:Server->Client Socket Reader 34478086 accepting session FIX.4.4:Server->Client from 192.168.1.*:7385 

20130828-10:30:51.687 : FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:51.781 : Verify failed: MsgSeqNum too low,expecting 94 but received 87 

20130828-10:30:51.781 : Session FIX.4.4:Server->Client disconnecting: Verify failed: MsgSeqNum too low, expecting 94 but received 87 

20130828-10:30:52.765 :FIX.4.4:Server->Client Socket Reader 42506536 accepting session 
FIX.4.4:Server->Client from 192.168.1.*:7386 

20130828-10:30:52.765 :FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:52.859 : Verify failed: MsgSeqNum too low, expecting 94 but received 89 

20130828-10:30:52.859 : Session FIX.4.4:Server->Client disconnecting: Verify failed: MsgSeqNum too low, expecting 94 but received 89 

20130828-10:30:53.906 : FIX.4.4:Server->Client Socket Reader 26676330 accepting session FIX.4.4:Server->Client from 192.168.1.*:7387 

20130828-10:30:53.906 : FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:53.984 : Verify failed: MsgSeqNum too low, expecting 94 but received 91 

20130828-10:30:53.984 : Session FIX.4.4:Server->Client disconnecting:Verify failed: MsgSeqNum too low, expecting 94 but received 91 

20130828-10:30:54.796 : FIX.4.4:Server->Client Socket Reader 13812657 accepting session FIX.4.4:Server->Client from 192.168.1.*:7388 

20130828-10:30:54.796 : FIX.4.4:Server->Client Acceptor heartbeat setto 0 seconds 

20130828-10:30:54.859 : Verify failed: MsgSeqNum too low,expecting 94 but received 93 

20130828-10:30:54.859 : Session FIX.4.4:Server->Client disconnecting: Verify failed: MsgSeqNum too low, expecting 94 but received 93 

20130828-10:30:55.812 :FIX.4.4:Server->Client Socket Reader 61488610 accepting session FIX.4.4:Server->Client from 192.168.1.*:7389 

20130828-10:30:55.812 :FIX.4.4:Server->Client Acceptor heartbeat set to 0 seconds 

20130828-10:30:55.812 : Received logon 

20130828-10:30:55.843 :Responding to logon request 

20130828-10:30:55.843 : MsgSeqNum too high, expecting 94 but received 95 

20130828-10:30:55.843 : Sent ResendRequest FROM: 94 TO: 0 

20130828-10:30:55.875 : Got resend request from 49 to 0 

20130828-10:30:55.906 : Sent SequenceReset TO: 91 

20130828-10:30:55.906 : ResendRequest for messages FROM: 94 TO: 0 has been satisfied. 

20130828-10:30:55.906 : Received SequenceReset FROM:94 TO: 97 

20130828-10:31:24.421 : Session FIX.4.4:Server->Client disconnecting: Socket exception (192.168.1.*:7389): An existing connection was forcibly closed by the remote host 

當我請配置以下設置文件,它的工作原理罰款。設置如下:

ResetOnLogon=Y 
ResetOnLogout=Y 
ResetOnDisconnect=Y 

我希望它爲繼的配置設置工作是銼的設置如下:

ResetOnLogon=N 
ResetOnLogout=N 
ResetOnDisconnect=N 

請寄給我建議和設置來運行這個應用程序沒有錯誤。

謝謝和Reguards, Vishwesh Raval。

+0

請學習如何格式化本網站上的文字。這不是很困難,你的問題會更容易理解。 –

+0

嗨,我編輯了text.hope它現在將更容易理解日誌。感謝您的建議。 –

+0

您必須知道遠程服務器何時重置序列號,並相應地編寫配置文件。 – stexcec

回答

0

您的序列號不同步。你粘貼的輸出說得很清楚。

我建議你做一些關於FIX協議的閱讀。你的問題沒有重點的性質表明你對此不太瞭解。 QuickFIX/n將會更容易使用,並詢問您是否花時間瞭解協議實際工作的方式。這是一個非常簡單的協議。

+0

我編輯過這些文字,並將我的問題更清楚。請將它引用。謝謝您的建議。 –

+0

謝謝。我的建議仍然是一樣的。雙方之間的序列號不同步。如果你想重置seq號碼,你必須同時重置雙方,所以他們都從零開始。如果您重置一方而不重設另一方,則它們將不同步。 –

+0

謝謝you.i得到了解決方案。我只是在配置文件中添加了「SendRedundantResendRequests = N」,它解決了我的問題。 –

1

錯誤消息

MsgSeqNum太低,希望XX卻收到YY

是與你的客戶機和遠程服務器之間的政策。 某些服務器在每次登錄時都需要重置,而其他服務器則只需每天一次或每週一次。 如果你只是學習的協議寫一個示例應用程序,嘗試在您的配置文件中加入這一行:

ResetOnLogon=Y 

但是,首先,嘗試花一些時間來學習的協議。

+0

我編輯了這個問題,並把它更清楚。請參考它並幫助我。感謝您的建議。 –

+0

這對Intercontinental Exchange(又名ICE)來說是完全有效的。他們要求您在每次會話重置時提高標誌ResetSeqNum。 '.cfg中的'ResetOnLogon = Y'提出了你自己的想法。 – mwilczynski