Puneet,<br><br>this is what I do to load rules and start a session:<br><br><br>        File drl = new File( getDrlPath() );<br><br>        ruleBase = RuleBaseFactory.newRuleBase();<br>        PackageBuilder pb = new PackageBuilder();<br>
        Reader fr = new FileReader( drl );<br>        pb.addPackageFromDrl( fr );<br>        <br>        if( pb.hasErrors() ){<br>            PackageBuilderErrors errors = pb.getErrors();<br>            for( DroolsError err: errors.getErrors() ){<br>
                System.err.println( err.toString() );<br>            }<br>            return;  // or whatever you need to do in your environment to abort<br>        }<br>        <br>        ruleBase.addPackages( pb.getPackages() );<br>
        session = ruleBase.newStatefulSession();<br><br>and this is the error message that&#39;s printed due to a comparable error:<br>Rule Compilation error : [Rule name=&#39;ruleB&#39;]<br>    appl/activation/Rule_ruleB_0.java (10:524) : The method setName(String) in the type Thing is not applicable for the arguments (Double)<br>
<br>-W<br><br><br><div class="gmail_quote">2010/5/4 Puneet duggal <span dir="ltr">&lt;<a href="mailto:duggalpunit@gmail.com">duggalpunit@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><p>This is My rule </p>
<p><br>rule &quot;Area_SquareFt_01_10-01-09_12-31-14&quot;<br>date-effective &quot;01-Oct-2009&quot; date-expires &quot;31-Dec-2014&quot;  salience 6 <br> no-loop true <br>  when <br> eval(BusinessLogic.gettest(&quot;Inside Area_SquareFt_01_10-01-09_12-31-14 executed&quot;))<br>

 objectP2483 : Para_2483( (fid2335==&quot;Block&quot;) &amp;&amp; (fid2336==&quot;16&quot;) );<br> <br> then <br> System.out.println(&quot;Area_SquareFt_01_10-01-09_12-31-14 executed&quot;);<br> objectP2483.setFid31003(new Double(497)); end</p>


<p> </p>
<p> here My 31003 is a String  field   but i am assigning a Double in it  so that should&#39;nt<br> work . But  the problem is because of this my all remmaning rules also stoped working.<br>And it took 2 hours to detect it because the execute() method dosent through any error.<br>

So how can we detect these situation earlier ,so as to catch the problem early and why my the remm <br>rules stoped woking because on this.</p>
<p> </p><br><br>
</div><div><div></div><div class="h5"><div><span class="gmail_quote">On 5/4/10, <b class="gmail_sendername">tolitius</b> &lt;<a href="mailto:webakaunt@gmail.com" target="_blank">webakaunt@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><br>@Puneet,<br><br>   Examples would be useful to understand what kind of problem you are<br>
having. As to<br>
Puneet wrote:<br>&gt; how can I detect which exact business rule is having error<br><br>   Check out &quot;Debugging Rules&quot; section of Drools documentation:<br><a href="http://bit.ly/9PRDRJ" target="_blank">http://bit.ly/9PRDRJ</a><br>

<br>@Wolfgang,<br><br>   No need to be a hater Wolfgang, the question is simple. I agree,<br>examples would be helpful, but that is NOT how you grow a friendly<br>community.<br><br>   Community is the biggest problem JBoss has. Why is it so inhumanly<br>

difficult to be polite and considerate?<br><br>/Anatoly<br><br>--<br>View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Rules-doubt-tp774023p775029.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Rules-doubt-tp774023p775029.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank">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></blockquote></div><br>
</div></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>