[rules-users] java.lang.ClassCastException: java.lang.String cannot be cast to com.sample.DroolsTest$Message

Veera veera.se at gmail.com
Thu Jan 19 01:27:08 EST 2012


Hi All,

Can anybody tell me what is the problem here ..
i have a 2 classes:
                         person(i have a field in this :java.lang.String
add) 
                         Message(i have a filed in this :java.lang.String
name)
rule "H"
    when
          person( $a : add )
          Message ( name == "tree" ) from $a 
        
    then
        # System.out.println("in H rule");

when i compile this rule i am getting below exception...
        
java.lang.ClassCastException: java.lang.String cannot be cast to
com.sample.DroolsTest$Message

Thanks in Advance....
Veeras



--
View this message in context: http://drools.46999.n3.nabble.com/java-lang-ClassCastException-java-lang-String-cannot-be-cast-to-com-sample-DroolsTest-Message-tp3671568p3671568.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list