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 &quot;PAN Device MAC Address null or empty rule&quot;<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 || == &quot;&quot; ) from $esis.getPANdevices()<br>       then<br>
                throw new MissingEntryFault(&quot;MAC Address cannot be null or empty&quot;); <br>
end</div><br>Also, don&#39;t get runtime NPE&#39;s confused with design-time NPE&#39;s (such as the RETE viewer in Eclipse).<br>
<br><div class="gmail_quote">On 14 December 2011 21:08, Venkat <span dir="ltr">&lt;<a href="mailto:ven12344@yahoo.com" target="_blank">ven12344@yahoo.com</a>&gt;</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>
&quot;macAddress&quot; 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 &quot;empty&quot; 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 &quot;Rete&quot; tab it is showing this<br>
error,<br>
<br>
&quot;Unable to parse rules to show RETE view! null&quot;<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>