I think [EMAIL PROTECTED] wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > > Sorry Ernest, Here's the drill :) > > 1> 5.0a6
This is a old and unsupported version of Jess. Please upgrade to 5.2 (or 6.0bx) and see if things don't improve. > 2>I have a listener on the server side which captures the jess event and in case of >FACT, get the Fact object from event object. With this object and some more >information creates another event object and tries to call methods on its listeners. >Some of these listners are across RMI. > 3>This works fine for other events, but when it comes to FACT, it throws a >NotSerializableException. > There very well might be a relevant, not-Serializable class in that version of Jess. As I said, support for serialization is much improved in recent versions. Alternatively, your facts might have non-serializable Java objects as slot values. > For now I have fixed this problem by obtaining fact name and just sending the >String, but it would be great if I could send the Fact over. Especially in case of >ACTIVATION event, where I can get the tokens and report which facts caused it etc. >I'm not trying to recreate the network, just trying to get enough pieces to create a >decent report. > An Activation is going to be a pretty heavy thing to send via RMI. It's going to drag the Defrule along; the Defrule is going to drag its Pattern objects along; Patterns are going to drag Deftemplates along. The Defrule will also drag its actions, which will drag along the Funcalls and their FunctionHolders and their Userfunctions.... As I said, trying to send bits and pieces of Jess's innards via RMI isn't generally a very good idea. > Thanks > Dheeraj > > [EMAIL PROTECTED] wrote: > > > > >You know the drill: > > > >1) What version of Jess > > > >2) What exactly did you do > > > >3) What actually happened > > > >4) What did you expect to happen? > > > >In general, Jess 6 is more serialization-friendly than Jess 5; but > >Jess really isn't going to work right if you serialize bits and pieces > >of working memory or the rule base and try to reassemble them on the > >other end. It's just not designed that way. You can, however, use the > >bsave() and bload() methods on Rete to send/restore the entire > >engine's state to/from ObjectStreams. > > > > > >I think [EMAIL PROTECTED] wrote: > >[Charset iso-8859-1 unsupported, filtering to ASCII...] > >> Hi all, > >> > >> Trying to pass Fact objects across RMI and I'm having some issues with >Serialization. Has anyone else come across anything similar. > >> > >> Thanks. > >> Dheeraj > >> -- > >> > > > > > > > > > >--------------------------------------------------------- > >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] > >-------------------------------------------------------------------- > > > > > -- > > > > > __________________________________________________________________ > Your favorite stores, helpful shopping tools and great gift ideas. Experience the >convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ > > Get your own FREE, personal Netscape Mail account today at >http://webmail.netscape.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] > -------------------------------------------------------------------- > --------------------------------------------------------- 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] --------------------------------------------------------------------
