What a nice discussion on the subject!
I am using the stable Jess70p1 version, and so I got the problem. Using
the (call System currentTimeMillis) version fixed the problem.
Henrique
Ernest Friedman-Hill wrote:
>
> On Jul 7, 2007, at 4:57 PM, Wolfgang Laun wrote:
>
>> The same problem occurs whe
On Jul 7, 2007, at 4:57 PM, Wolfgang Laun wrote:
The same problem occurs when running bin/jess, and (most likely) with
any other of the import-ed things...
Thanks for your persistence. It turns out that this issue has already
been reported and fixed for the next release, and that's why I w
The same problem occurs when running bin/jess, and (most likely) with
any other of the import-ed things. Statics of some classes are
automatically (imports are in jess/scriptlib.clp) defined as
functions, and that's why there are some exceptions to the rule stated
in the documentation on (call...)
Here is another check on the effect of bsave/bload. I define this function:
(deffunction ppallfunctions ()
(bind ?sb (new StringBuffer))
(bind ?it ((engine) listFunctions))
(while (?it hasNext)
(bind ?f (?it next))
(bind ?class (call ?f getClass))
(?sb append ?class) (?sb appe
And I (not to be tricked so easily ;-) wrote "Foo and Bar".
Here is the stack trace.
/tmp/BarFoo$ which java
/usr/java/jdk1.5.0_09/bin/java
/tmp/BarFoo$ export
CLASSPATH=/home/laune/dtwork/orient:/extra/Jess71a1/lib/jess.jar
/tmp/BarFoo$ ls
/tmp/BarFoo$ java at.laune.jess.Foo
/tmp/BarFoo$ file t
Note that I said Bar and then Foo, but of course I meant Foo and then
Bar. If you run these and get an error, let's see it! Nobody's showed
me an actual trace yet.
On Jul 7, 2007, at 7:02 AM, Wolfgang Laun wrote:
I can reproduce that error with Foo and Bar, running Jess7.1a1, due to
some nu
I can reproduce that error with Foo and Bar, running Jess7.1a1, due to
some null pointer exception in the eval. But the documentation for the
Jess function "call" says: "The functor call may be omitted if the
method being called is non-static." I guess that means that the call,
as tried by Henriqu
Running "Bar" followed by "Foo" works for me (Jess 7.1a1). Does is
not work for you?
public class Bar {
public static void main(String[] foo) throws Exception {
Rete jess = new Rete();
FileInputStream fis = new FileInputStream
("the_file.bsave");
jess.b
Hi,
If I bload a file (even an empty one), I get an "Error during execution"
when executing (System.currentTimeMillis).
Here's my code:
Rete jess = new Rete();
FileInputStream fis = new FileInputStream("the_file.bsave");
jess.bload(fis);
fis.close(