Just saw and fixed an invalid import for ConsequenceExceptionHandler.<br>-W<br><br><br><div class="gmail_quote">On 4 October 2011 18:00, Jamie <span dir="ltr">&lt;<a href="mailto:jshaw@llbean.com">jshaw@llbean.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;">Thanks for all of the feedback.  I haven&#39;t tried W&#39;s handler, but I&#39;m<br>
planning to.  I did take Edson&#39;s advice and was able to get some more info.<br>
<br>
It appears to involve the interaction between 3 rules.  For background, this<br>
is a fraud detection application.  Under certain conditions, we need to look<br>
up additional customer information.  Some rules are run to determine whether<br>
the lookup is required and then another rule actually does the lookup.  In<br>
this case:<br>
<br>
Rule 021 says if the order is small, set the lookup flag to false<br>
Rule 042B says if the order is from a &#39;bad&#39; country, set the lookup flag to<br>
true<br>
Rule 022 says if the lookup flag is true, do the lookup<br>
<br>
If rule 021 fires alone, then 022 does not fire and all is well.<br>
If rule 042B fires alone, then 022 fires and all is well.<br>
If 021 fires to turn off the lookup AND 042B fires to turn on the lookup,<br>
then 022 gets and NPE.<br>
<br>
As Edson suspected, the item is null and the &#39;rule&#39; variable points to rule<br>
021.<br>
<br>
I&#39;m not sure if it matters, but each rules involved is in a different agenda<br>
group.<br>
<br>
As I mentioned, this works in 5.2.0.Final, but breaks in 5.3.0.CR1.<br>
<br>
Hope this helps pinpoint the issue.<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/5-3-0-CR1-has-broken-existing-rules-flows-tp3390922p3393730.html" target="_blank">http://drools.46999.n3.nabble.com/5-3-0-CR1-has-broken-existing-rules-flows-tp3390922p3393730.html</a><br>

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>
</font></blockquote></div><br>