All,

After some successful experiments with Jess, I'm now having a lot of
trouble getting even simple examples to work with Jess version 6.0 and
FuzzyJess version 1.2. I *can* run (for example) the "FuzzyShowerJess"
example that came with the FuzzyJ 1.2 distribution so I believe that my
installation is basically sound ;)

I started with the example from the FuzzyJess section of the FuzzyJ
documentation
(http://ai.iit.nrc.ca/IR_public/fuzzy/fuzzyJDocs/FuzzyJess.html). This
is the one that determines a value for pressure based on fuzzy input for
temperature. I copied the sample code verbatim and added the lines:

        (reset)
        (run)

to the end of the file. When I run this example under Jess/FuzzyJ I get
the traceback listed below. I can sort-of make out that it fires the
"init" defrule and thus asserts the fuzzy value "very medium" for
theTemp. This in turn leads the engine to try to fuzzy-match the LHS of
the "temp-hot-press-lowOrMedium" defrule and things go horribly wrong.

If it matters, I'm using Java 1.4 on Windows XP (and saw similar
behavior on a Windows 2000 box running Java 1.4).

Thanks in advance for any hints,

Lyle

-----
Jess, the Java Expert System Shell
Copyright (C) 1998 E.J. Friedman Hill and the Sandia Corporation
Jess Version 6.0 12/7/2001

This copy of Jess will expire in 19 day(s).
Jess reported an error in routine Funcall.execute
        while executing (fuzzy-match ?t "hot")
        while executing rule LHS (MTEQ)
        while executing rule LHS (MTELN)
        while executing rule LHS (TECT)
        while executing (assert (MAIN::theTemp (new nrc.fuzzy.FuzzyValue
?*tempFvar* "very medium")))
        while executing defrule MAIN::init
        while executing (run).
  Message: Error during execution.
  Program text: ( run )  at line 50.
Nested exception is:
jess.Token
java.lang.ClassCastException: jess.Token
        at nrc.fuzzy.jess.FuzzyFunctions$a.call(Unknown Source)
        at jess.ef.a(Unknown Source)
        at jess.Funcall.execute(Unknown Source)
        at jess.FuncallValue.resolveValue(Unknown Source)
        at jess.dv.a(Unknown Source)
        at jess.Node1.for(Unknown Source)
        at jess.bc.a(Unknown Source)
        at jess.Node1.for(Unknown Source)
        at jess.an.a(Unknown Source)
        at jess.Node1.for(Unknown Source)
        at jess.ab.a(Unknown Source)
        at jess.Rete.a(Unknown Source)
        at jess.j.a(Unknown Source)
        at jess.j.a(Unknown Source)
        at jess.Rete.assertFact(Unknown Source)
        at jess.bh.call(Unknown Source)
        at jess.ef.a(Unknown Source)
        at jess.Funcall.execute(Unknown Source)
        at jess.Defrule.try(Unknown Source)
        at jess.Activation.if(Unknown Source)
        at jess.a7.a(Unknown Source)
        at jess.a7.int(Unknown Source)
        at jess.Rete.run(Unknown Source)
        at jess.az.call(Unknown Source)
        at jess.ef.a(Unknown Source)
        at jess.Funcall.execute(Unknown Source)
        at jess.Jesp.a(Unknown Source)
        at jess.Jesp.case(Unknown Source)
        at jess.Jesp.parse(Unknown Source)
        at jess.Main.execute(Unknown Source)
        at jess.Main.main(Unknown Source)



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