The code you pasted doesn&#39;t even compile. The first line is wrong. <div>It looks to me that the problem you are experiencing has nothing to do with drools itself. You can&#39;t even open the input file using a simple FileReader... No drools api involved there. Make sure you have your inputs files in the right place.</div>

<div><br></div><div>Best,<br><br><div class="gmail_quote">2010/6/7 Fnu Mahalakshmi <span dir="ltr">&lt;<a href="mailto:FMahalakshmi@nyx.com">FMahalakshmi@nyx.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">










<div lang="EN-US" link="blue" vlink="purple">

<div>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Hi Greg,</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I have my input files inside the src directory of my eclipse
project.</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I am passing the files as follows:</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="#3f7f5f" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#3F7F5F">private static final String DATA_INPUT_FILE = new String []{
&quot;Input1.<u>txt</u>&quot;, “Input2.txt”};</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">private</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">static</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">final</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> String </span></font><i><font size="2" color="#0000c0" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0000C0;font-style:italic">DATA_OUTPUT_FILE</span></font></i><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> = </span></font><font size="2" color="#2a00ff" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot;Output.1.txt&quot;</span></font><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">;</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>



<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">private</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">static</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">final</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> String </span></font><i><font size="2" color="#0000c0" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0000C0;font-style:italic">RULES_FILES</span></font></i><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> = new String [] {</span></font><font size="2" color="#2a00ff" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot;Rule1.drl&quot;, “Rules2.drl”}</span></font><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">;</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>



<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">public</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">static</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">void</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> main(String[] args) </span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">throws</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> Exception {</span></font></p>



<p class="MsoNormal" style="text-autospace:none"><font size="2" color="#3f7f5f" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#3F7F5F">BufferedReader input =  new BufferedReader(new
FileReader(DATA_INPUT_FILE));</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">       Converter c = </span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">new</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> Converter(DATA_INPUT_FILE); // this reads my input
files</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">         
Vector&lt;Object&gt; v  = </span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">new</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> Vector&lt;Object&gt;();</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>



<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">          v =
c.getFactInput();                    
// loads all information contained in the input files</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">          </span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">new</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> RuleRunner().runStatelessRules(</span></font><i><font size="2" color="#0000c0" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0000C0;font-style:italic">RULES_FILES</span></font></i><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">,</span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">null</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">, v,</span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">null</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">);</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">                         <font color="#3f7f5f"><span style="color:#3F7F5F">      FileOutputStream
output = new FileOutputStream(DATA_OUTPUT_FILE);</span></font></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="#3f7f5f" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#3F7F5F"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="#3f7f5f" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#3F7F5F"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="#3f7f5f" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#3F7F5F">Error Log:</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="#3f7f5f" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#3F7F5F"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="red" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red">Exception in thread &quot;main&quot; </span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:navy">java.io.FileNotFoundException</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red">: Input1.txt (The system cannot find the file specified)</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>



<p class="MsoNormal" style="text-autospace:none"><font size="2" color="red" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red">      at java.io.FileInputStream.open(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:navy">Native Method</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red">)</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>



<p class="MsoNormal" style="text-autospace:none"><font size="2" color="red" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red">      at
java.io.FileInputStream.&lt;init&gt;(Unknown Source)</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="red" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red">      at
java.io.FileInputStream.&lt;init&gt;(Unknown Source)</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="red" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red">      at
java.io.FileReader.&lt;init&gt;(Unknown Source)</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="red" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red">      at com.org.RulesTest.main(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:navy">RulesTest.java:29</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red">)</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>



<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">Can you tell me why that
happens??</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">The file is present.</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">Thanks.</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">M</span></font></p>

</div>

<pre></pre>

<p></p><hr size="1"><p></p>
<p><strong><font color="green">Please consider the environment before printing this email.</font></strong></p>
<p><strong>Visit our website at <a href="http://www.nyse.com" target="_blank">http://www.nyse.com</a> <br>

*****************************************************************************
<br>
Note:  The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure.  If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to 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 the sender immediately by replying to the message, and please delete it from your system.  Thank you.  NYSE Euronext.

</strong></p><pre></pre></div>


<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>
</div>