Hi Emmanuel,

I don't think the rule you're showing us here is where this error is
coming from. There are two clues to this: one is that the error
message is about a variable named "?a", while the rule describes a
variable named "?toto." Secondly, the description of how the error 
happens says that it occurs "while executing (store OFFER ?a) while
executing (batch aimediamktrlz.clp)". This means that the store 
command was called from the top-level of the batch file, not from the
right-hand-side of a defrule; if this were the case the error message
would mention the defrule by name, as well as the (run) command.

Have another look at your batch file and see if this doesn't help you
find the problem there.



I think [EMAIL PROTECTED] wrote:
> 
> > From: Bob Orchard [mailto:[EMAIL PROTECTED]]
> 
> Yes, thanks !
> 
> I've another problem usinf fetch/store:
> 
> (defrule print-solution
> 
>   ?f <- (offer ?toto)
>   =>
>   (printout t "  " ?toto crlf)
>   (store OFFER ?toto))
> 
> which cause:
> 
> Jess reported an error in routine Variable.resolveValue while executing
> (store O
> FFER ?a) while executing (batch aimediamktrlz.clp).
>   Message: Undefined variable (no binding) a.
>   Program text: ( batch aimediamktrlz.clp )  at line 0.
>         at jess.Variable.resolveValue(Variable.java:42)
> [...]
> 
> from the manual it can be any value in Jess...
> 
> does someone have any idea on this problem ?
> 
> TIA,
> 
>                Emmanuel
>  
> --------------------------------------------
> Emm@nuel PIERRE
> 17-24 GMT: [EMAIL PROTECTED] 
>               +33 6 57 60 42 17 (tatoo txt)
> 1-17 GMT: [EMAIL PROTECTED]
>               +33 1 46 13 34 68
> Please visit:  http://www.linux-expo.com 
> ---------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the
> list. List problems? Notify [EMAIL PROTECTED]
> ---------------------------------------------------------------------
> 
> 


---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9214                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to