<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
{font-family:Century;
panose-1:2 4 6 4 5 5 5 2 3 4;}
@font-face
{font-family:Century;
panose-1:2 4 6 4 5 5 5 2 3 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"MS PMincho";}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:"\@MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Even if I don’t define Dictionary d it still gives me tha same error. No clue why..does it have to do with XML file?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-align:justify;line-height:12.0pt;text-autospace:none">
<span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#4F81BD">Thanks & Regards,<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:justify;line-height:12.0pt;text-autospace:none">
<span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#4F81BD">Ashutosh Mishra<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:justify;line-height:12.0pt;text-autospace:none">
<span style="font-family:"MS PMincho";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-align:justify;line-height:12.0pt;text-autospace:none">
<span style="font-family:"MS PMincho";color:black">*********************************************************************************<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:12.0pt;text-autospace:none"><span style="font-family:"MS PMincho";color:black">This communication (including any attachments) is intended only or the use of the individual whom it is addressed and may contain information
that is privileged, confidential or legally protected. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received
this communication in error, please notify us immediately by replying to the message. Please also delete the message and its attachments, if any, from your computer and destroy any hard copies you may have created. Thank you for your cooperation.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"MS PMincho";color:black">*********************************************************************************</span><span style="font-size:10.5pt;font-family:"Century","serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> quickfixn-bounces@lists.quickfixn.com [mailto:quickfixn-bounces@lists.quickfixn.com]
<b>On Behalf Of </b>Grant Birchmeier<br>
<b>Sent:</b> Tuesday, October 29, 2013 10:32 AM<br>
<b>To:</b> Mailing list for QuickFIX/n<br>
<b>Subject:</b> Re: {{Quickfixn}} FpML file<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="color:black">I don't understand wh</span><span style="color:#222222">y you are creating Dictionary "d". All that stuff should already be in TradeWebClientInitiator.cfg. You shouldn't need to modify "settings" after you create
it from the file.</span><span style="color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Tue, Oct 29, 2013 at 9:15 AM, Ashutosh Mishra <<a href="mailto:A.Mishra@ny.tr.mufg.jp" target="_blank">A.Mishra@ny.tr.mufg.jp</a>> wrote:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Now I am getting this error:</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Object reference not set to an instance of an object.<br>
at QuickFix.DataDictionary.DataDictionary.setVersionInfo(XmlDocument doc)<o:p></o:p></p>
<div>
<p class="MsoNormal"><br>
at QuickFix.DataDictionary.DataDictionary.Load(String path)<br>
at QuickFix.SessionFactory.createDataDictionary(SessionID sessionID, Dictiona<br>
ry settings, String settingsKey, String beginString)<br>
at QuickFix.SessionFactory.ProcessFixDataDictionary(SessionID sessionID, Dict<br>
ionary settings, DataDictionaryProvider provider)<br>
at QuickFix.SessionFactory.Create(SessionID sessionID, Dictionary settings)<br>
at QuickFix.AbstractInitiator..ctor(IApplication app, IMessageStoreFactory st<br>
oreFactory, SessionSettings settings, ILogFactory logFactory, IMessageFactory me<br>
ssageFactory)<br>
at QuickFix.Transport.SocketInitiator..ctor(IApplication application, IMessag<br>
eStoreFactory storeFactory, SessionSettings settings, ILogFactory logFactory)<br>
<o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">My Program.cs is as follows:<o:p></o:p></p>
<p><span style="font-family:Consolas;color:blue">try</span><o:p></o:p></p>
<p><span style="font-family:Consolas">{</span><o:p></o:p></p>
<p><span style="font-family:Consolas">QuickFix.<span style="color:#2B91AF">SessionSettings</span> settings =
<span style="color:blue">new</span> QuickFix.<span style="color:#2B91AF">SessionSettings</span>(<span style="color:#A31515">@"C:\Users\ashutosh_m\documents\visual studio 2010\Projects\MutbTradeweb_Application_Ver_1.0.1\MutbTradeweb_Application_Ver_1.0.1\TradeWebClientInitiator.cfg"</span>);</span><o:p></o:p></p>
<div>
<p><span style="font-family:Consolas;color:#2B91AF">TradeClientApp</span><span style="font-family:Consolas"> application =
<span style="color:blue">new</span> <span style="color:#2B91AF">TradeClientApp</span>();</span><o:p></o:p></p>
</div>
<p><span style="font-family:Consolas;color:#2B91AF">Dictionary</span><span style="font-family:Consolas"> d =
<span style="color:blue">new</span> <span style="color:#2B91AF">Dictionary</span>();</span><o:p></o:p></p>
<p><span style="font-family:Consolas">QuickFix.<span style="color:#2B91AF">SessionID</span> id1 =
<span style="color:blue">new</span> QuickFix.<span style="color:#2B91AF">SessionID</span>(<span style="color:#A31515">"FIX.4.4"</span>,
<span style="color:#A31515">"MITUFJTR"</span>, <span style="color:#A31515">"TRADEWEB"</span>,
<span style="color:#A31515">"SessionID"</span>);</span><o:p></o:p></p>
<p><span style="font-family:Consolas">d.SetString(<span style="color:#A31515">"ConnectionType"</span>,
<span style="color:#A31515">"initiator"</span>);</span><o:p></o:p></p>
<p><span style="font-family:Consolas">d.SetLong(<span style="color:#A31515">"SocketAcceptPort"</span>, 9000);</span><o:p></o:p></p>
<p><span style="font-family:Consolas">d.SetString(<span style="color:#A31515">"FileLogPath"</span>,
<span style="color:#A31515">"Log"</span>);</span><o:p></o:p></p>
<p><span style="font-family:Consolas">d.SetString(<span style="color:#A31515">"StartTime"</span>,
<span style="color:#A31515">"00:00:00"</span>);</span><o:p></o:p></p>
<p><span style="font-family:Consolas">d.SetString(<span style="color:#A31515">"EndTime"</span>,
<span style="color:#A31515">"00:00:00"</span>);</span><o:p></o:p></p>
<p><span style="font-family:Consolas">d.SetString(<span style="color:#A31515">"FileStorePath"</span>,
<span style="color:#A31515">@"c:fixfiles"</span>);</span><o:p></o:p></p>
<p><span style="font-family:Consolas">d.SetBool(<span style="color:#A31515">"UseDataDictionary"</span>,
<span style="color:blue">true</span>);</span><o:p></o:p></p>
<p><span style="font-family:Consolas">d.SetString(<span style="color:#A31515">"DataDictionary"</span>,
<span style="color:#A31515">@"FIX42.xml"</span>);</span><o:p></o:p></p>
<p><span style="font-family:Consolas">settings.Set(id1, d);</span><o:p></o:p></p>
<div>
<p><span style="font-family:Consolas">QuickFix.<span style="color:#2B91AF">IMessageStoreFactory</span> storeFactory =
<span style="color:blue">new</span> QuickFix.<span style="color:#2B91AF">FileStoreFactory</span>(settings);</span><o:p></o:p></p>
<p><span style="font-family:Consolas">QuickFix.<span style="color:#2B91AF">ILogFactory</span> logFactory =
<span style="color:blue">new</span> QuickFix.<span style="color:#2B91AF">ScreenLogFactory</span>(settings);</span><o:p></o:p></p>
<p><span style="font-family:Consolas">QuickFix.Transport.<span style="color:#2B91AF">SocketInitiator</span> initiator =
<span style="color:blue">new</span> QuickFix.Transport.<span style="color:#2B91AF">SocketInitiator</span>(application, storeFactory, settings, logFactory);</span><o:p></o:p></p>
</div>
<p><span style="font-family:Consolas">initiator.Start();</span><o:p></o:p></p>
<p><span style="font-family:Consolas">application.Run();</span><o:p></o:p></p>
<p><span style="font-family:Consolas;color:#2B91AF">Thread</span><span style="font-family:Consolas">.Sleep(3000);</span><o:p></o:p></p>
<p><span style="font-family:Consolas;color:#2B91AF">Console</span><span style="font-family:Consolas">.ReadLine();</span><o:p></o:p></p>
<p><span style="font-family:Consolas">initiator.Stop();</span><o:p></o:p></p>
<p><span style="font-family:Consolas">}</span><o:p></o:p></p>
<p><span style="font-family:Consolas;color:blue">catch</span><span style="font-family:Consolas"> (System.<span style="color:#2B91AF">Exception</span> e)</span><o:p></o:p></p>
<p><span style="font-family:Consolas">{</span><o:p></o:p></p>
<p><span style="font-family:Consolas;color:#2B91AF">Console</span><span style="font-family:Consolas">.WriteLine(e.Message);</span><o:p></o:p></p>
<p><span style="font-family:Consolas;color:#2B91AF">Console</span><span style="font-family:Consolas">.WriteLine(e.StackTrace);</span><o:p></o:p></p>
<p><span style="font-family:Consolas">}</span><o:p></o:p></p>
<p><span style="font-family:Consolas;color:#2B91AF">Environment</span><span style="font-family:Consolas">.Exit(1);</span><o:p></o:p></p>
<div>
<p><span style="font-family:Consolas">}</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#222222">-- </span><o:p></o:p></p>
</div>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><span style="background:white">Grant Birchmeier</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><b><span style="color:#3333FF;background:#FFCC00">Connamara Systems, LLC</span></b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><b>Made-To-Measure Trading Solutions.</b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Exactly what you need. No more. No less.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://connamara.com" target="_blank">http://connamara.com</a><o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>