Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-dev] Exception when executing custom built-in with Jess

maha maha_isims at hotmail.com
Mon Mar 5 22:59:17 PST 2018


Hello
I put the instruction System.out.println at the beginning of my method 
.
.
checkNumberOfArgumentsEqualTo(numberOfArguments, arguments.size());
        String s1 = getArgumentAsAString(argument1Number, arguments); 
        String s2 = getArgumentAsAString(argument2Number, arguments); 
        System.out.println("opening line of the function");

but it does not display in the log file of protege,

.
.
.
2018.03.06 07:43:54.525 CET INFO: Rule engine 'SWRLJessBridge' registered
with the SWRLTab. -- SWRLRuleEngineFactory.registerRuleEngine()
2018.03.06 07:43:54.537 CET INFO: Plugin 'SWRLJessBridge' registered with
the SWRLTab plugin manager. -- BridgePluginManager.registerPlugin()
2018.03.06 07:43:54.546 CET INFO: Plugin 'SQWRLQueryTab' registered with the
SWRLTab plugin manager. -- BridgePluginManager.registerPlugin()

neither in the console after running the rule in JessTab.

Exception running rule engine: error running Jess rule engine: Jess reported 
an error in routine invokeSWRLBuiltIn 
        while executing (invokeSWRLBuiltIn "Rule-1" 
"http://www.owl-ontologies.com/Ontology1481027354.owl#mymethod" 0 true ?xx 
?yy) 
        while executing defrule MAIN::Rule-1. 
  Message: exception thrown by built-in mybuiltin:mymethod in rule Rule-1: 
edu.stanford.smi.protegex.owl.swrl.bridge.exceptions.BuiltInException: 
unknown exception thrown by built-in mybuiltin:mymethod in rule Rule-1: 
java.lang.reflect.InvocationTargetException. 



--
Sent from: http://protege-project.136.n4.nabble.com/Protege-Developer-f4659816.html


More information about the protege-dev mailing list