I have a query that looks like this:

(defquery collect-sectionless-pages
    (Page (onSection nil))
)

Where Page is a template with a slot called onSection.  One rule creates a
bunch of Page facts with nil onSection values.  Another rule collects these
pages and applies onSection values according to some detailed rules.

The pattern works successfully in another rule.

This query, however, generates the following runtime error:

Jess reported an error in routine ValueVector.get
    while executing (bind (call ?e (run-query collect-sectionless-pages)))
    while executing defrule fill-section
    while executing (run).
  Message: Bad index 2 in call to get() on this vector:  (bind (call ?e
(run-query collect-sectionless-pages)))
...

The code from the rule looks like this:

    (bind (?e (run-query collect-sectionless-pages)))

...which I copied verbatim out of the user guide.

There are Page facts in the knowledge base that have nil as their onSection
slot value.

I am using Jess 6.0a3.  Is there a mistake in my code?

> ______________________________________________
> Matt Bishop - Engineering Manager, UpFront
> 
> We're Growing - http://www.scenicsoft.com/jobs 

---------------------------------------------------------------------
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]
---------------------------------------------------------------------

Reply via email to