Brenda,

My guess is that you are using the "=" function when you should be using
"eq" to compare object references.
The "=" is for numerical values, hence the error.

Hope this helps.

-Jason
-----
------------------------

Jason Morris
Morris Technical Solutions
[EMAIL PROTECTED]
www.morristechnicalsolutions.com
fax/phone: 503.692.1088



> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Brenda K Hamilton
> Sent: Thursday, May 27, 2004 8:27 AM
> To: [EMAIL PROTECTED]
> Subject: JESS: not understanding this error
>
>
> This is from my rules file, an example that produces the error:
> (import org.w3c.dom.*)
>
> (bind ?*nd* (fetch OBJ))
>
> (defrule if-element
>   (test (= (call ?*nd* nodetype) org.w3c.node.Node.ELEMENT_NODE))
>   =>
>   (printout t (call ?*nd* tagname) crlf)
> )
>
> This is the error:
> Exception in thread "main" Jess reported an error in routine
> Value.numericValue
>         while executing (= (call ?*nd* nodetype)
> org.w3c.node.Node.ELEMENT_NODE)
>         while executing 'test' CE
>         while executing rule LHS (TECT)
>         while executing (reset).
>   Message: Not a number: "org.w3c.node.Node.ELEMENT_NODE" (type = ATOM).
>
>
> What is it complaining about?
>
> thanks,
> Brenda
>
> --------------------------------------------------------------------
> 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]
> --------------------------------------------------------------------
>

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