I usually hate when people blame the OS or compiler when their program
doesn't work, but in this case, I cannot think of any other
possibility -- except, of course, that you may have made some
modifications to Jess itself. There should be no way to meddle with
the guts of a partially constructed object that doesn't access any
static data or other "outside" resources.

Let us know the Jess version you're using, the JVM vendor and version,
and the hardware platform you're running on. Tell us more about how
your application is using Jess, too.


I think Calicrates Policroniades Borraz wrote:
> 
> Hello, I have the next problem trying to run a program in
> java that loads a jess' script.
> 
> First of all I want to say that the program worked well until
> the last change I made. The original condition of the program
> was a simple program that executes a task. I call this task a process.
> 
> I made the next change:
> In order to have many processes handled by the same program I 
> created a new class that manages them using threads. This class is very
> simple and only creates the threads and calls the run() method. The 
> processes have the same structure, because the runnable class is 
> only one, but accomplish different tasks because the script that is
> loaded is different according to the number of process.
> 
> After this change, the class where I make the instance of the rete
> object dosesn't work well anymore. The error is this:
> 
> ------------------------------------------------------
> Jess reported an error in routine Funcall.loadIntrisics.
>   Message: Missing intrinsic (non-optional) function class.
> Nested exception is:
> java.lang.NullPointerException
> -------------------------------------------------------
> 
> But sometimes I get this error too (the testing conditions
> are the same):
> ----------------------------
> java.lang.NullPointerException
>       at java.util.Hashtable.get(Compiled Code)
>       at java.util.Hashtable.get(Compiled Code)
>       at jess.Rete.getInputWrapper(Rete.java:220)
>       at jess.Jesp.<init>(Compiled Code)
>       at jess.Rete.initTransientMembers(Compiled Code)
>       at jess.Rete.<init>(Compiled Code)
>       at jess.Rete.<init>(Compiled Code)
>       at Brain.<init>(Compiled Code)
>       at Player.parseInitPlayer(Compiled Code)
>       at Player.initPlayer(Compiled Code)
>       at Player.run(Compiled Code)
>       at java.lang.Thread.run(Compiled Code)
> --------------------------
> 
> I suppouse that there is something with jess and the use
> of threads that I am missing but I dont know what could be.
> 
> When I run only one thread I haven't problems but if I run
> more than one the previous exceptions are reported randomly.
> 
> Thank you in advance.
> 
> Oh!! yes.. The error is just before this line:
> 
> rete = new Rete();
> 
> ---------------------------------------------------------------------
> 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]
> ---------------------------------------------------------------------
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
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