Hi:

Ernest Friedman-Hill wrote:

> Printing out the ReteException object itself (i.e.,
> toClient.println(re.toString())) would give you a helpful error
> message; anytime you catch an exception, you should read the detail
> message (with Jess or any other Java programming.) In this case, the
> detail message will be: ReteException in routine
> Jesp::parseFact. Message: Expected '( <atom>' at line 3: (assert ((.
>
> Jess, like CLIPS, doesn't let the 'head' of a fact be the result of a
> function call; the first assert in rule startup is illegal. Use
> something like (assert (data (fetch A) (fetch B))) instead.
>

Thanks for the help and I can get the error message from the browser. Now the problem
is that I can't get the .clp result to the browser by writing

" toClient.println(nd.stdout());"
or
" toClient.println(nd.stderr());"

It prints out "java.io.PrintStream", but not the content I wanted
Shall I re-route the PrintStream in NullDisplay?

Beth Zhang

 Dept. of Civil Engineering
 National University of Singapore
 Tel: 65-8746498(o)
 Email: [EMAIL PROTECTED]




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