<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><!-- Template generated by Exclaimer Template Editor on 11:48:45 Monday, 19 November 2012 -->
<STYLE type=text/css>P.cd987f72-e700-448b-b4e1-7fb38b81e891 {
        MARGIN: 0cm 0cm 0pt
}
LI.cd987f72-e700-448b-b4e1-7fb38b81e891 {
        MARGIN: 0cm 0cm 0pt
}
DIV.cd987f72-e700-448b-b4e1-7fb38b81e891 {
        MARGIN: 0cm 0cm 0pt
}
TABLE.cd987f72-e700-448b-b4e1-7fb38b81e891Table {
        MARGIN: 0cm 0cm 0pt
}
DIV.Section1 {
        page: Section1
}
</STYLE>

<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:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Lucida Console";
        panose-1:2 11 6 9 4 5 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.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">
<P>
<div class="WordSection1">
<p class="MsoNormal"><span style=font-size:12.0pt>Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style=font-size:12.0pt><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style=font-size:12.0pt>I thought this worked for me at some point, but, I now seem to have lost my ability to get any debuggable DRL error contexts via the
<b>&#8211;Ddrools.dump.d</b>ir property.<o:p></o:p></span></p>
<p class="MsoNormal"><span style=font-size:12.0pt><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style=font-size:12.0pt>Here is my command line, that simply borrows from the DROOLs sample package&#8217;s &nbsp;Cheese.xls SpreadsheetCompiler example , to produce a .DRL from an (.XLS, .DRT) input pair:<o:p></o:p></span></p>
<p class="MsoNormal"><span style=font-size:12.0pt><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Lucida Console&quot;;color:#1F497D">java com.ms.fast.triclear.eligibility.rules.GenerateDRLfromEligibilityRulesRepoViaDRT \<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Lucida Console&quot;;color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<b>-Ddrools.dump.dir=./DroolsDumpDir</b> \<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Lucida Console&quot;;color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;../main/packages/com/ms/fast/triclear/eligibility/rules/IRD_PRODUCT_RULES_FEED_TO_DRT_Template-BASIS.xls \<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Lucida Console&quot;;color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ../main/packages/com/ms/fast/triclear/eligibility/rules/IRD_PRODUCT_RULES_TEMPLATE-BASIS.drt&nbsp;&nbsp; \&nbsp;&nbsp;
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Lucida Console&quot;;color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2&gt;&amp;1 | grep -v Picked | \
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Lucida Console&quot;;color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tee ../main/packages/com/ms/fast/triclear/eligibility/rules/IRD_PRODUCT_RULES=RENDERED.drl&nbsp;
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Lucida Console&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style=font-size:12.0pt>This command line produces the following errors:<o:p></o:p></span></p>
<p class="MsoNormal"><span style=font-size:12.0pt><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Lucida Console&quot;;color:#C00000">Error compiling resources:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Lucida Console&quot;;color:#C00000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ERR 102] Line 923:0 mismatched input ''<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Lucida Console&quot;;color:#C00000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ERR 101] Line 8:60 no viable alternative at input '&quot;LCH US&quot;' in rule &quot;IRD_PRODUCT_RULE_24&quot;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Lucida Console&quot;;color:#C00000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ERR 101] Line 46:60 no viable alternative at input '&quot;LCH EU. SCM&quot;' in rule &quot;IRD_PRODUCT_RULE_23&quot;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Lucida Console&quot;;color:#C00000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Parser returned a null Package<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Lucida Console&quot;;color:#C00000">Exception in thread &quot;main&quot; java.lang.IllegalStateException: Error compiling resources<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Lucida Console&quot;;color:#C00000">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;at com.ms.fast.triclear.eligibility.rules.GenerateDRLfromEligibilityRulesRepoViaDRT.buildKBase(GenerateDRLfromEligibilityRulesRepoViaDRT.java:93)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Lucida Console&quot;;color:#C00000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.ms.fast.triclear.eligibility.rules.GenerateDRLfromEligibilityRulesRepoViaDRT.execute(GenerateDRLfromEligibilityRulesRepoViaDRT.java:50)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Lucida Console&quot;;color:#C00000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.ms.fast.triclear.eligibility.rules.GenerateDRLfromEligibilityRulesRepoViaDRT.main(GenerateDRLfromEligibilityRulesRepoViaDRT.java:44)<o:p></o:p></span></p>
<p class="MsoNormal"><span style=font-size:12.0pt><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style=font-size:12.0pt>Unfortunately, my ./DroolsDumpDir/ directory contents are completely empty.&nbsp; I was hopeful it might contain a staged .DRL context from which I could more easily debug my roadblock.<o:p></o:p></span></p>
<p class="MsoNormal"><span style=font-size:12.0pt><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style=font-size:12.0pt>Is there more that I have to do, beyond just passing
<b>&#8211;Ddrools.dump.dir=./DroolsDumpDir</b> on the command line?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:&quot;Lucida Console&quot;;color:#C00000"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:&quot;Lucida Console&quot;;color:gray"><o:p>&nbsp;</o:p></span></b></p>
<p class="MsoNormal"><b><span style=color:gray>Ben D Cotton III</span></b><span style=font-size:9.0pt;color:gray><br />
Morgan Stanley &amp; Co.<br />
OTC Derivatives Clearing Technology <br />
1221 AOTA Rockefeller Ctr - Flr 27<br />
New York, NY 10020<br />
(212)762.9094<br />
<a href="mailto:ben.cotton@ms.com"><span style=color:gray>ben.cotton@ms.com</span></a>
<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<BR /><BR />
<HR id=HR1 />
<BR /><SPAN style="FONT-FAMILY: Arial; COLOR: #808080; FONT-SIZE: 7.5pt">NOTICE: 
Morgan Stanley is not acting as a municipal advisor and the opinions or views 
contained herein are not intended to be, and do not constitute, advice within 
the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer 
Protection Act. If you have received this communication in error, please destroy 
all electronic and paper copies and notify the sender immediately. 
Mistransmission is not intended to waive confidentiality or privilege. Morgan 
Stanley reserves the right, to the extent permitted under applicable law, to 
monitor electronic communications. This message is subject to terms available at 
the following link: <A style="FONT-FAMILY: Arial; COLOR: #808080; FONT-SIZE: 7.5pt" href="http://www.morganstanley.com/disclaimers">http://www.morganstanley.com/disclaimers</A> 
If you cannot access these links, please notify us by reply message and we will 
send the contents to you. By messaging with Morgan Stanley you consent to the 
foregoing.</SPAN><BR />
<P></P>
<P></P></P></BODY>
</HTML>