Yes, it's same. See also, the name of rule with error not appear...
Edson, I describe this in Jira too?
Michael B. escreveu:
Verified this, in my example if I change the line to Bar.setFoo(null) I get
the following error in my test case:
Exception executing predicate
[EMAIL PROTECTED]
Verified this, in my example if I change the line to Bar.setFoo(null) I get
the following error in my test case:
Exception executing predicate
[EMAIL PROTECTED]
org.drools.RuntimeDroolsException: Exception executing predicate
[EMAIL PROTECTED]
at
org.drools.rule.PredicateConstraint.isAllo
Really? That is a surprise to me... we need to handle that...
Maybe you can open a JIRA for us?
Thanks,
Edson
2008/5/6 Alessandro Lazarotti <[EMAIL PROTECTED]>:
> Thanks Michael, I simulate.. your rule fire with successful.
>
> I discovered the problem. The object in property (li
Alessandro Lazarotti wrote:
>
> Thanks Michael, I simulate.. your rule fire with successful.
>
> I discovered the problem. The object in property (like Foo in your
> example), when null, it's not throws NullPointerException, but
> "org.mvel.PropertyAccessException: unable to resolve property
Thanks Michael, I simulate.. your rule fire with successful.
I discovered the problem. The object in property (like Foo in your
example), when null, it's not throws NullPointerException, but
"org.mvel.PropertyAccessException: unable to resolve property".
With that, I never imagined that the pro
Alessandro:
I wrote a test case and some classes around your example and mailed them to
you, I was not able to get them to post on this list for some reason.
Thanks...Michael
Alessandro Lazarotti wrote:
>
>
>
>
>
>
>
> Hi, Michael...
> The code that I wrote has a property "name" and n
Okay, I wrote a test case around the following and it works fine so let me
know if this isnt what you are working with...
Foo Class
public class Foo {
private String m_name;
public String getName()
{
return m_name;
}
public void setName(String n
Hi, Michael...
The code that I wrote has a property "name" and not "nome". Sorry, the
example not is the same that the Exception.
But ocurr the same error.
org.drools.RuntimeDroolsException: Exception executing predicate
[EMAIL PROTECTED]
Caused by: org.mvel.CompileException: unable to resolv
According to your error it appears you had a typo somewhere. The error you
pasted in was looking for the property nome instead of name.
Alessandro Lazarotti wrote:
>
> If I've the simple classes:
>
> public class ObjectBar{ public String name; gets/sets}
>
> public class ObjectFoo{ public
If I've the simple classes:
public class ObjectBar{ public String name; gets/sets}
public class ObjectFoo{ public ObjectBar bar; gets/sets }
... and ObjectFoo this in WorkingMemory.
It's not possible navigate in objectFoo for make constraint in objectBar?
Example:
rule "Teste"
no-loop true
10 matches
Mail list logo