I think Subrahmanyam wrote:
>
> In my rules file I am trying to use these shadow facts and they are working
> fine. But when I am trying to instantiate CustomerAppliedPool in one of the
> utility methods of CarDemandPool then the exception is thrown which is
>
>
> Jess reported an error in routine DefinstanceList.createNewShadowFact.
> Message: Called method threw an exception.
> at jess.d7.a(Unknown Source)
...
> at java.lang.reflect.Method.invoke(Unknown Source)
>
> I am using jess 6.1 version.
>
The message means that Jess called a method of your
CustomerAppliedPool object, and it threw an exception. Jess could not
continue, so Jess is reporting the exception to you.
The JessException object you're catching has a method getCause(). In
your exception handler, you need to call getCause(), and if it returns
non-null, then it will be the exception referred to in the message
above. Call printStackTrace on this second exception object, and you
will find out what is going wrong in your code.
---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://herzberg.ca.sandia.gov
--------------------------------------------------------------------
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]
--------------------------------------------------------------------