Hello Users,
I have defined a deftemplate with slots and I
have not given any specific type for slots viz., ATOM, INTEGER
etc.,
In some rule I am trying to check the value in
that slot, whether the value is in a range, let us say 0-100. The program exits
saying the following
error.
The error looks like this:
Rete Exception in routine Value::intValue while
executing rule LHS: [Node1 comma
nd=TEQ;data=(or (>= ?0,2,-1 0));type=0;idx=2;usecount = 1] while executing defru
le PlatformGetMaximumValue.
Message: Not a number: nil type = 1 at line 66: ( run ) .
at jess.Value.typeError(Value.java:299)
at jess.Value.numericValue(Value.java:181)
at jess.GtOrEq.call(Funcall.java:1315)
at jess.Funcall.simpleExecute(Funcall.java:341)
at jess.Funcall.execute(Funcall.java:301)
at jess.Funcall.execute(Funcall.java:201)
at jess.Or.call(Funcall.java:1138)
at jess.Funcall.simpleExecute(Funcall.java:341)
at jess.Funcall.execute(Funcall.java:301)
at jess.Funcall.execute(Funcall.java:205)
at jess.Node1TEQ.callNode(Node1.java:528)
at jess.Node.passAlong(Node.java:163)
at jess.Node1TECT.callNode(Node1.java:607)
at jess.Rete.processTokenOneNode(Rete.java:919)
nd=TEQ;data=(or (>= ?0,2,-1 0));type=0;idx=2;usecount = 1] while executing defru
le PlatformGetMaximumValue.
Message: Not a number: nil type = 1 at line 66: ( run ) .
at jess.Value.typeError(Value.java:299)
at jess.Value.numericValue(Value.java:181)
at jess.GtOrEq.call(Funcall.java:1315)
at jess.Funcall.simpleExecute(Funcall.java:341)
at jess.Funcall.execute(Funcall.java:301)
at jess.Funcall.execute(Funcall.java:201)
at jess.Or.call(Funcall.java:1138)
at jess.Funcall.simpleExecute(Funcall.java:341)
at jess.Funcall.execute(Funcall.java:301)
at jess.Funcall.execute(Funcall.java:205)
at jess.Node1TEQ.callNode(Node1.java:528)
at jess.Node.passAlong(Node.java:163)
at jess.Node1TECT.callNode(Node1.java:607)
at jess.Rete.processTokenOneNode(Rete.java:919)
Can somebody let me know how I can overcome this
problem
Thanks in Advance
srinu
