Kalle Fischer | 5 Dec 2010 16:12
Picon

weird java / sEvaluate problem

Hello,
I am using PowerLoom via the java interface and currently am running 
into some problems when using the PLI.sEvaluate method. If i try to 
evaluate this command :

(retrieve all (and (subset-of surfboard ?x) (subset-of wetsuit ?x)))

i get an exception like this :

Exception in thread "main" edu.isi.stella.StellaException: Invocation 
Target Exception in funcall of function:
     public static edu.isi.powerloom.logic.QueryIterator 
edu.isi.powerloom.logic.Logic.retrieveEvaluatorWrapper(edu.isi.stella.Cons) 
((ALL (AND (SUBSET-OF  <at> SURFBOARD ?X) (SUBSET-OF  <at> WETSUIT ?X))))
     java.lang.NullPointerException
     null
java.lang.NullPointerException
     at 
edu.isi.powerloom.logic.Logic.helpSelectRelationPropositions(Logic.java:11560)
     at 
edu.isi.powerloom.logic.Logic.selectRelationPropositions(Logic.java:11727)
     at edu.isi.powerloom.logic.Logic.selectPropositions(Logic.java:11439)
     at 
edu.isi.powerloom.logic.Logic.allTrueDependentPropositions(Logic.java:28506)
     at 
edu.isi.powerloom.logic.Logic.helpMemoizeAccessBinaryValue(Logic.java:28832)
     at edu.isi.powerloom.logic.Logic.accessBinaryValue(Logic.java:28872)
     at 
edu.isi.powerloom.logic.NamedDescription.lookupSpecialist(NamedDescription.java:1119)
     at 
(Continue reading)

Hans Chalupsky | 6 Dec 2010 21:21
Picon
Favicon

Re: weird java / sEvaluate problem

Hmm, nothing obvious comes to mind just looking at the stack and the location
where it is breaking.  It happens when it looks up a specialist, probably for
"subset-of", which should be pretty innocent.  What you can do is check that
you are running s-evaluate in the proper module (either giving it the module
name as an argument or changing to it before you call).  If that doesn't fix
it, you'd have to send me the KB you are using and some instructions on how to
trigger the error (don't send that to the forum mailing list, though).

Hans

>>>>> Kalle Fischer <fischer.kalle <at> gmail.com> writes:

> Hello,
> I am using PowerLoom via the java interface and currently am running 
> into some problems when using the PLI.sEvaluate method. If i try to 
> evaluate this command :

> (retrieve all (and (subset-of surfboard ?x) (subset-of wetsuit ?x)))

> i get an exception like this :

> Exception in thread "main" edu.isi.stella.StellaException: Invocation 
> Target Exception in funcall of function:
>      public static edu.isi.powerloom.logic.QueryIterator 
> edu.isi.powerloom.logic.Logic.retrieveEvaluatorWrapper(edu.isi.stella.Cons) 
> ((ALL (AND (SUBSET-OF  <at> SURFBOARD ?X) (SUBSET-OF  <at> WETSUIT ?X))))
>      java.lang.NullPointerException
>      null
> java.lang.NullPointerException
>      at 
(Continue reading)


Gmane