I found a problem running the following code (not exact):
(defrule some-rule
(some-pattern)
=>
(bind ?futureResult (some-function-returning-futureResult))
(bind ?result (call ?futureResult get))
)
It throws the following error on the RHS:
Jess reported an error in routine call
while executing (call ?futureResult get)
while executing (bind ?result (call ?futureResult get)).
Message: Called method threw an exception.
The FutureResult class is a prexisting class (that I cannot change) that
contains a method called "get" that takes no parameters and returns a value
of type Object (it is from the Doug Lea's concurrent library) like so:
public Object get() throws Exception
I think Jess' reflection code is not taking this possibility into account -
e.g. it is trying to get the property name from the method name but since
this isn't a property there is no name to "get"... ;-D
alan
Alan Moore - mailto:[EMAIL PROTECTED]
Ciphergen Biosystems - http://www.ciphergen.com
--------------------------------------------------------------------
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]
--------------------------------------------------------------------