Did you import the Exception class?<br><br><div class="gmail_quote">2010/10/13 sumatheja <span dir="ltr">&lt;<a href="mailto:sumatheja@gmail.com">sumatheja@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi All, <br>        I have a set of rules. After firing the rules if an exception occurs in a rule the following rules are not getting evaluated. So i tried writing a try catch block inside the consequence part of the rule, but then i get an error saying &quot;&#39;unable to build the consequence.[Error:was expecting type: java.lang.Object but found type:null]&quot;<br>


<br>Here follows my code<br><br><br clear="all"><b>rule &#39;Test rule&#39;<br>ruleflow-group &quot;Test Ruleflow&quot;<br>no-loop<br>    when<br>        $c:Car()<br>        Driver()<br>        <br>    then <br>       try{<br>


          $c.getModel()<br>          } catch (Exception Ee) {<br>           System.out.println(&quot;caught an exception: &quot;+Ee.toString());<br>          }<br>end</b><br><br>However if i remove the try catch block it buils fine.<br>


<br>Can anyone let me know if i&#39;m missing something here.<br><br>Thanks in advance :)<br>-- <br>cheers<br><font color="#888888">Sumatheja <br><br><br>
</font><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>