{{Quickfixn}} ConfigError occurred due to ReconnectInterval

Thomas Cayuela thomas.cayuela at alphanovae.com
Mon Mar 7 04:25:10 PST 2016


Hi,

The exception ConfigError occurred at the start of the initiator with the
message:
*Configuration failed: No value for key: ReconnectInterval*

Stacktrace:    *at QuickFix.Dictionary.GetString(String key)*

We have implemented the instantiation of the SocketInitiator as follows:

*var dictionnary = new Dictionary();*
*var settings = new SessionSettings();*

*[...]*

*// Session*
*dictionnary.SetString("ConnectionType", "initiator");*
*dictionnary.SetString("StartTime", "21:00:00");*
*dictionnary.SetString("EndTime", "21:00:00");*
*dictionnary.SetString("StartDay", "Sunday");*
*dictionnary.SetString("EndDay", "Friday");*

*// Validation*
*dictionnary.SetBool("UseDataDictionary", true);*
*dictionnary.SetString("DataDictionary", -----");*
*dictionnary.SetBool("ValidateFieldsOutOfOrder", false);*
*dictionnary.SetBool("ValidateUserDefinedFields", false);*
*dictionnary.SetBool("ValidateFieldsHaveValues", false);*

*// Miscellaneous*
*dictionnary.SetLong("HttpAcceptPort", ------);*

*// Initiator*
*dictionnary.SetLong("ReconnectInterval", 30);*
*dictionnary.SetLong("HeartBtInt", 180);*
*dictionnary.SetLong("LogoutTimeout", 86400);*
*[...]*

*settings.Set(id, dictionnary);*
*// </Connection settings>*

*IMessageStoreFactory storeFactory = new FileStoreFactory(settings);*
*ILogFactory logFactory = new FIXLoggerFactory("------");*
*m_Initiator = new SocketInitiator(application, storeFactory, settings,
logFactory);*

The exception is thrown internally in QuickFix.dll and caught internally.

Is it happening because we set the ReconnectInterval to default value?
Is it correct to set the SessionSettings programmatically?
Any ideas on how to correct this behavior?

Thanks,

Thomas Cayuela

-----

Alpha Novae Ltd

http://www.alphanovae <http://www.alphanovae.com/>.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20160307/04cf4d7b/attachment.htm>


More information about the Quickfixn mailing list