|
Hello, Ernest!
I downloaded and installed Jess version 6.1p7. I
even slightly hacked error message code, but still can't find an error. I am
using Protege2.1 and JessTab1.1. First I map an ontology to Jess. After that I
have in Jess a list of facts like this: (MAIN::object (is-a.. and a
corresponding deftemplate. I check this. After that I try to load the rules and
get the error message below. Also, all this staff was tested in CLIPS and goes
there fine. Can you somehow guess about a reason of a problem on a stack trace
and give some advices? Thank you very much in advance. JessTab
output:
Jess, the Java Expert System Shell
Copyright (C) 2001 E.J. Friedman Hill and the
Sandia Corporation
Jess Version 6.1p7 5/7/2004
Jess> (batch
d:/Scenario/jess/clp/init.clp)
Онтология загружена .. ?*OpenMapTab*=<External-Address:ru.igis.omtab.OpenMapTab>
?*RuNA*=<External-Address:ru.igis.omtab.RuNA>
?*types*=<External-Address:java.util.Hashtable>
Jess reported an error in routine
ValueVector.set
while executing rule LHS (MTELN) while executing rule LHS (TECT) while executing (batch d:/Scenario/jess/clp/Create-Rules.clp) while executing (batch d:/Scenario/jess/clp/init.clp). Message: Bad index 51 of 51 in call to set() on this vector: (MAIN::object (is-a Правило-Решение) (is-a-name "Правило-Решение") (OBJECT <External-Address:edu.stanford.smi.protege.model.DefaultCls>) (название ) (описание ) (статус ) (цель-достигнута ) (схема-сценария ) (начальные-этапы ) (текущий-этап ) (конечные-этапы ) (действия ) (следующий-этап ) (сценарий ) (варианты ) (этап ) (частный-сценарий ) (цвет ) (скорость ) (курс ) (широта ) (имя ) (долгота ) (тип ) (радиус ) (событие ) (имя2 ) (имя1 ) (деятельность ) (барьер ) (объекты ) (схема ) (этапы ) (действует ) (имена ) (кандидаты ) (зона ) (слот ) (действие ) (сработал ) (рекомендации ) (:ROLE Concrete) (:DOCUMENTATION ) (:SLOT-CONSTRAINTS ) (:DIRECT-INSTANCES <External-Address:edu.stanford.smi.protege.model.DefaultSimpleInstance>) (:DIRECT-SUPERCLASSES <External-Address:edu.stanford.smi.protege.model.DefaultCls>) (:DIRECT-SUBCLASSES ) (:DIRECT-TEMPLATE-SLOTS <External-Address:edu.stanford.smi.protege.model.DefaultSlot>) (:NAME "Цель_этапа") (:DIRECT-TYPE <External-Address:edu.stanford.smi.protege.model.DefaultCls>) (правило-решение "(if (цель-достигнута ?этап) then 1 else 2)")). Program text: ( batch d:/Scenario/jess/clp/init.clp ) at line 1. at
jess.ValueVector.set(ValueVector.java:111)
at
jess.Node1MTMF.createModifiedFact(Node1MTMF.java:144)
at
jess.Node1MTMF.process(Node1MTMF.java:100)
at
jess.Node1MTMF.partition(Node1MTMF.java:66)
at
jess.Node1MTMF.callNodeRight(Node1MTMF.java:48)
at
jess.Node1.passAlong(Node1.java:60)
at
jess.Node1MTELN.callNodeRight(Node1MTELN.java:38)
at
jess.Node1.passAlong(Node1.java:60)
at
jess.Node1TECT.callNodeRight(Node1TECT.java:43)
at
jess.Rete.updateNodes(Rete.java:997)
at
jess.ReteCompiler.addRule(ReteCompiler.java:103)
at
jess.Rete.addDefrule(Rete.java:817)
at
jess.Jesp.addARule(Jesp.java:1012)
at
jess.Jesp.doParseDefrule(Jesp.java:968)
at
jess.Jesp.parseDefrule(Jesp.java:893)
at
jess.Jesp.parseSexp(Jesp.java:149)
at jess.Jesp.parse(Jesp.java:69)
at jess.Jesp.parse(Jesp.java:54)
at
jess.Batch.batch(Batch.java:43)
at
jess.Batch.call(Batch.java:57)
at
jess.FunctionHolder.call(FunctionHolder.java:30)
at
jess.Funcall.execute(Funcall.java:266)
at
jess.Jesp.parseAndExecuteFuncall(Jesp.java:1596)
at
jess.Jesp.parseSexp(Jesp.java:173)
at jess.Jesp.parse(Jesp.java:69)
at jess.Jesp.parse(Jesp.java:54)
at
jess.Batch.batch(Batch.java:43)
at
jess.Batch.call(Batch.java:57)
at
jess.FunctionHolder.call(FunctionHolder.java:30)
at
jess.Funcall.execute(Funcall.java:266)
at
jess.Jesp.parseAndExecuteFuncall(Jesp.java:1596)
at
jess.Jesp.parseSexp(Jesp.java:173)
at jess.Jesp.parse(Jesp.java:69)
at jess.Jesp.parse(Jesp.java:54)
at
jess.Main.execute(Main.java:126)
at JessTab.JessTabEngine.run(Unknown
Source)
at java.lang.Thread.run(Unknown
Source)
Jess>
Sincerely,
Ru Ruslan P.
Sorokin [EMAIL PROTECTED]
OOGIS RL http://niggis.iias.spb.su SPIIRAS http://www.spiiras.nw.ru St.Petersburg, Russia |
- JESS: Bad index 51 of 51 in call to set() on this vector sorokinru
