Hi Joe,
Well, as a first step, use the JessException.getNextException() method
to get hold of the actual IOException object from the JessException
you'e currently catching, and print that stack trace out. It might
tell you what the error is right off the bat.
I think Joe Kopena wrote:
> Hey,
> I'm curious about bsave. In some older work of mine it worked to bsave
> and bload the rete. Now I get an IOException when trying to use them. I
> think the only difference in the Rete is that there's a lot more facts
> and a few more rules. The error seems to be happening when Dumper.call
> tries to close the file (from looking at the line in the source, the
> stack trace is below). At first I thought it might be because there
> wasn't enough hard drive space, but then I tried another drive with more
> than 2 gigs free and it's not clear to me then why the error would be on
> the close() and not the flush(). However, bsave and bload seem to work
> on small test cases. There's around 700 facts and 12 rules in the rete
> when I get an error serializing it.
>
> Am I just doing missing something? These aren't functions I've played
> around with much. There's nothing strange in the Rete, like java objects
> in the facts or userfunctions and such. The facts and rules are all very
> straightforward.
>
> Thanks
>
> ---------------
> Jess reported an error in routine bsave
> while executing (bsave "/scratch/test.ser").
> Message: IO Exception.
> Program text: ( bsave "/scratch/test.ser" ) at line 34.
> at java.lang.Throwable.<init>(Throwable.java:84)
> at java.lang.Exception.<init>(Exception.java:35)
> at jess.JessException.<init>(JessException.java:52)
> at jess.Dumper.call(DumpFunctions.java:63)
> at jess.FunctionHolder.call(FunctionHolder.java:37)
> at jess.Funcall.execute(Funcall.java:267)
> at jess.Jesp.parseAndExecuteFuncall(Jesp.java:1536)
> at jess.Jesp.parseSexp(Jesp.java:181)
> at jess.Jesp.parse(Jesp.java:62)
> at jess.Rete.executeCommand(Rete.java:1013)
> at edu.drexel.itcsl.daml.DAMLJessKB.main(DAMLJessKB.java:1268)
>
>
> ---------------------------------------------------------------------
> 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]
---------------------------------------------------------------------