I have no problem with that (Drools 5.1.0), using<br>             try {<br>                session.fireAllRules();<br>            } catch( ConsequenceException e ){<br>                System.out.println( e.getCause().getMessage() );<br>
            }<br><br>The error message you have posted looks like a compile time error?<br><br>-W<br><br><div class="gmail_quote">On 10 September 2010 15:19, tom <span dir="ltr">&lt;<a href="mailto:tiberium.linux@gmail.com">tiberium.linux@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Thanks,<br>
<br>
I tried, but what I got is:<br>
<br>
[Error: unable to access property (null parent): throw]<br>
[Near : {... Unknown ....}]<br>
[Line: 1, Column: 0]<br>
<br>
instead of getting my message...<br>
<br>
Greatings,<br>
tom.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Throwing-exceptions-from-rules-tp1452162p1452309.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Throwing-exceptions-from-rules-tp1452162p1452309.html</a><br>

</font><div><div></div><div class="h5">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">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>