<div>There&#39;s another thing I changed which might have an impact: I changed</div><div>Message to be a class on its own Message.java file. It&#39;s possible that MVEL is</div><div>confused by that and runs into a bug. </div>
<div><br></div><div>Try this, please.</div><div><br></div><div>-W</div><div><br></div><div><br><br><div class="gmail_quote">On 5 September 2012 16:08, RichardAmbridge <span dir="ltr">&lt;<a href="mailto:richard.ambridge@gmail.com" target="_blank">richard.ambridge@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have tried with 5.3.0 and 5.4.0, each time I run it the getErrors is blank<br>
(and hasErrors() is false)<br>
<br>
So the compile is always passing for me.<br>
<br>
<br>
However, when I run it under 5.4.0 (was using 5.3.0) I now get in the<br>
output:<br>
Inserting message<br>
Fire all rules<br>
Hello added<br>
Sleep 10<br>
After5 then start<br>
Unable to execute timer job!<br>
Exception executing consequence for rule &quot;After5&quot; in com.sample: [Error:<br>
unable to resolve method: org.drools.base.DefaultKnowledgeHelper.$m()<br>
[arglength=0]]<br>
[Near : {... System.out.println( &quot;After5 th ....}]<br>
             ^<br>
[Line: 1, Column: 1]<br>
        at<br>
org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39)<br>
        at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1283)<br>
        at<br>
org.drools.common.DefaultAgenda.fireTimedActivation(DefaultAgenda.java:1330)<br>
.....etc...<br>
<br>
<br>
So in 5.4.0 the exception is caught someplace inside drools and printed to<br>
the output.<br>
<br>
My question still remains,   how can I get notified in my code that an<br>
exception has happened?<br>
<br>
Thanks for the replies,<br>
Ric<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Drools-fusion-how-to-I-catch-an-Exception-tp4019597p4019604.html" target="_blank">http://drools.46999.n3.nabble.com/Drools-fusion-how-to-I-catch-an-Exception-tp4019597p4019604.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<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>
</div></div></blockquote></div><br></div>