----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 14, 2003 3:28 AM Subject: Re: JESS: Problem with going from 6.0 to 6.1p5...
> I think Aris Katsaris wrote: > > > Jess reported an error in routine ValueVector.get > > while executing rule LHS (Node2) > > while executing rule LHS (Node2) > > while executing rule LHS (Node2) > > while executing rule LHS (Node2) > > while executing rule LHS (TECT) > > while executing (assert (MAIN::semparent ?parent $?prev ?bid $?next)) > > while executing defrule MAIN::remove_separating_element_2. > > Message: Bad index 0 in call to get() on this vector: > > (MAIN::__not_or_test_CE). > > ----- > > What you can get from this traceback is that there is pattern that > matches semparent followed four patterns later by a "not" pattern, and > the problem is in a test on that not pattern. > > The error message at the end of the traceback is basically saying that > the test is trying to access slot data in a non-existent fact. I found the offending rule - it was the following (or atleast very similar to this) (defrule blahblah (declare (salience -10)) (category ?id1 text) ?f <- (semparent ?parent $?allprev ?prev ?id1 ?id2 $?rest) (category ?id2 text) (not (category ?parent par|textgroup)) (not (makesem $?)) => .... do various stuff ---------- The program seemed to be choking because I was writing (not (category ?parent par|textgroup)) When I changed this to the equivalent two lines (not (category ?parent par)) (not (category ?parent textgroup)) it worked fine... Why couldn't it accept it as "par|textgroup"? After all I'm negating here, not asking it to bind either possibility to a variable... Is this a bug? ================== I'm also having a new problem, where I'm getting a error comment about an element not being a listValue but an atom instead... Aargh. Will post more information tomorrow if I can't solve it... Aris Katsaris -------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use your own address!) List problems? Notify [EMAIL PROTECTED] --------------------------------------------------------------------
