Do the problematic rules work in isolation? i.e. if you try them individually in a KnowledgeBase.<br><br>What if you try the problem rules without the eval? e.g.:-<br><br>rule "PAN Device MAC Address null or empty rule"<br>
no-loop true<br>
salience 200<br>
when<br>
$customer : Customer()<br>
$esis : ElectricServiceInterface() from $customer.getElectricServiceInterfaces()<br><div id=":c5">
$panDevice : PANDevice( MACAddress == null || == "" ) from $esis.getPANdevices()<br> then<br>
throw new MissingEntryFault("MAC Address cannot be null or empty"); <br>
end</div><br>Also, don't get runtime NPE's confused with design-time NPE's (such as the RETE viewer in Eclipse).<br>
<br><div class="gmail_quote">On 14 December 2011 21:08, Venkat <span dir="ltr"><<a href="mailto:ven12344@yahoo.com" target="_blank">ven12344@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Manstis, PANDevice is not null, instead I am setting the value of<br>
"macAddress" using this object. So how can it be null, I am initializing<br>
this object.<br>
<br>
Also, as I said, the last two rules works fine for null value, but not the<br>
three before those. which are below rules<br>
<div><br>
<br>
PAN Device MAC Address null or empty rule<br>
<br>
</div><div>PAN Device Install Code null or empty rule<br>
<br>
</div>For the above two rules, I am checking for "empty" value in my test case.<br>
<div><br>
PAN Device Smart Device Model null rule<br>
<br>
<br>
<br>
</div>Also, in the Eclipse, when I am going to "Rete" tab it is showing this<br>
error,<br>
<br>
"Unable to parse rules to show RETE view! null"<br>
<br>
I guess the null pointer exception is screwing everything.<br>
<br>
Thanks,<br>
<span><font color="#888888">Venkat.<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Eval0Invoker-java-lang-NullPointerException-tp3586222p3586769.html" target="_blank">http://drools.46999.n3.nabble.com/Eval0Invoker-java-lang-NullPointerException-tp3586222p3586769.html</a><br>
</font></span><div><div>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" 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>
</div></div></blockquote></div><br>