{{Quickfixn}} Cannot launch an initiator app

Mark Smith msmith at rpia.ca
Fri Feb 28 05:56:38 PST 2020


Hi,

I am trying to launch an initiator app and I keep getting the following error:

<event> Created session
<event> Connecting to xxxxxxxxxxx on port xxxxxxxxxxx
<event> Connection succeeded
<event> Session reset: ResetOnLogon
<event> Session reset: ResetSeqNumFlag
<outgoing> 8=FIXT.1.19=13535=A34=149=xxxxxxxxxxx52=20200228-13:46:46.26256=xxxxxxxxxxx98=0108=30141=Y553=xxxxxxxxxxx554=xxxxxxxxxxx1137=710=247
<event> Initiated logon request
<incoming> 8=FIXT.1.19=9235=A49=xxxxxxxxxxx56=xxxxxxxxxxx34=152=20200228-13:46:46.59198=0108=30141=Y1137=910=191
<event> Sequence numbers reset due to ResetSeqNumFlag=Y
<event> Received logon
<event> Session FIXT.1.1: xxxxxxxxxxx-> xxxxxxxxxxx disconnecting: System.ObjectDisposedException: Cannot access a closed file.
   at System.IO.FileStream.Seek(Int64 offset, SeekOrigin origin)
   at QuickFix.FileStore.setSeqNum()
   at QuickFix.FileStore.IncrNextTargetMsgSeqNum()
   at QuickFix.SessionState.IncrNextTargetMsgSeqNum()
   at QuickFix.Session.NextLogon(Message logon)
   at QuickFix.Session.Next(MessageBuilder msgBuilder)
   at QuickFix.Session.NextMessage(String msgStr)
   at QuickFix.SocketInitiatorThread.ProcessStream()
   at QuickFix.SocketInitiatorThread.Read()
<event> Session reset: ResetOnDisconnect

My config file looks like this:

[Default]
ReconnectInterval=30
ConnectionType=initiator
ResetOnLogon=Y
ResetOnLogout=Y
ResetOnDisconnect=Y

[Session]
BeginString=FIXT.1.1
DefaultApplVerID=FIX.5.0
UseDataDictionary=Y
TransportDataDictionary=C:\FixMessaging\FixSpec\FIXT11.xml
AppDataDictionary=C:\FixMessaging\FixSpec\FIX50SP2.xml
StartTime=12:00:00
EndTime=23:00:00
StartDay=monday
EndDay=friday
MaxLatency=240
SocketConnectHost=xxxxxxxxxxx
SocketConnectPort=xxxxxxxxxxx
HeartBtInt=30
SenderCompID=xxxxxxxxxxx
TargetCompID=xxxxxxxxxxx
SSLEnable=Y
SSLProtocols=Tls12
SSLValidateCertificates=N
LogonTimeout=30
LogoutTimeout=30
FileStorePath=C:\FixMessaging\Neptune\FileStore
FileLogPath=C:\FixMessaging\Neptune\Logs

And my code looks like this:

IApplication app = new InitiatorClientApp();
SessionSettings sessionSettings = new SessionSettings(Miscellaneous.Configuration["AppSettings:FIX_SESSION_PATH"]);
IMessageStoreFactory storeFactory = new FileStoreFactory(sessionSettings);
ILogFactory logFactory = new ScreenLogFactory(sessionSettings);
Initiator = new SocketInitiator(app, storeFactory, sessionSettings, logFactory);
using (Initiator)
Initiator.Start();

I cannot seem to find anyone with the same error online. Any help is greatly appreciated!

Thanks,
Mark


This message contains information that is privileged and confidential. Please notify the sender immediately if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.
If you no longer wish to receive future updates from RP Investment Advisors, you may withdraw your consent by clicking on UNSUBSCRIBE<mailto:unsubscribe at rpia.ca?Subject=UNSUBSCRIBE> and then Send or by replying to this email with "UNSUBSCRIBE" in the subject line or body of the e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20200228/0db570da/attachment.html>


More information about the Quickfixn mailing list