Do the problematic rules work in isolation? i.e. if you try them individually in a KnowledgeBase.
What if you try the problem rules without the eval? e.g.:-
rule "PAN Device MAC Address null or empty rule"
no-loop true
salience 200
when
$customer : Customer()
$esis : ElectricServiceInterface() from $customer.getElectricServiceInterfaces()
Hi Manstis, PANDevice is not null, instead I am setting the value of
"macAddress" using this object. So how can it be null, I am initializing
this object.
Also, as I said, the last two rules works fine for null value, but not the
three before those. which are below rules
PAN Device MAC Address null or empty rule
PAN Device Install Code null or empty ruleFor the above two rules, I am checking for "empty" value in my test case.
Also, in the Eclipse, when I am going to "Rete" tab it is showing this
PAN Device Smart Device Model null rule
error,
"Unable to parse rules to show RETE view! null"
I guess the null pointer exception is screwing everything.
Thanks,
Venkat.
--
View this message in context: http://drools.46999.n3.nabble.com/Eval0Invoker-java-lang-NullPointerException-tp3586222p3586769.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users