Hi,
Well, if this is real, one problem is that "test" can't legally be the
head of a fact. I just checked, though, and Jess doesn't reject it -
it ought to. Anyway, such facts could cause problems, so don't use them.
"Hang" is a loaded word. It can mean lots of things. Many questions are
relevant: what is the last line of your code that executes? What does
a stack trace show (control-break on windows, control-\ on UNIX). In
Java, nothing ever happens randomly; so your program will hang when given
certain inputs, but not when given others. What is the difference?
Be sure to read section 2.8.1.5 of the Jess 5.0a6 manual about the
"test" conditional element before responding.
I think Hiong Sen wrote:
>
> I do something like you.... but I do not use assertString method (I don't know that
> it exist)
> I use assert...
>
> I use in my java program:
> rete.store("A", new Value(test_value, RU.ATOM)); // use RU.STRING if you use
> :
> String in your CLP program
> rete.executeCommand("(batch program/riq/step.clp)");
> :
> rete.reset();
> :
> rete.executeCommand("(assert (test (fetch A)))");
> :
> rete.run();
> :
> rete.fetch("RESULT");
>
> The problem is sometimes it works properly... sometimes my program hang...
> Anybody know why?
>
> ---
> Riq
>
---------------------------------------------------------
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 (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------