I think sivan k wrote:

>  but I get a no such variable text  message when I run the jess
>  program - I am not sure why. 
 ...
> 
> (compute ?arg1 ?text)   {note: ?text holds a value selected from a combobax}
> 

If Jess is saying that there's no such variable ?text, then the
variable is not defined in this context. Just as in Java, local
variables defined inside a function, for example, aren't available
to code outside the deffunction. 


> I am not sure if the problem is getting the database to connect
through a userfunction or whether it is becasue of the way I retrieve
strings from jess.
...
>         catch (SQLException e){throw new JessException ("insert", "SQL 
> Error:"+e.getMessage(),e);
>          }
>     catch (Exception e) {}

Well, you're not sure because of that empty catch block! If you get a
JessException , a NullPointerException, or a ClassNotFoundException (if
the driver isn't found) they'll all end up in that empty catch block,
and you won't hear about it. That block ought to rethrow as a
JessException too, and then you *will* know what's going wrong!

Never, ever, ever write empty catch blocks, unless you *really* know
what you're doing.

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


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