RE: [jade-develop] Odd serialization problem


Subject: RE: [jade-develop] Odd serialization problem
From: Bellifemine Fabio (Fabio.Bellifemine@TILAB.COM)
Date: Wed Jul 24 2002 - 15:22:22 MET DST


There is no point where JADE can remove classes.
Take care that JADE can move only the Agent thread and not other related
threads (e.g. a GUI).

        -----Original Message-----
        From: John J. Mikucki
        Sent: Wed 24/07/2002 14:55
        To: Bellifemine Fabio
        Cc: jade-develop@sharon.cselt.it
        Subject: Re: [jade-develop] Odd serialization problem
        
        

        Thus spake Bellifemine Fabio (Fabio.Bellifemine@TILAB.COM):
        
> John, check that your class is not referenced by name, I mean:
if you had a
> Class.forName() call, then it would be reasonable (and even
correct) that
> your class is not serialized.
        
        I'm not quite clear on what you mean by 'referenced by name'. I
never call
        Class.forName() in my code, so I can rule that interpretation
out. My other
        interpretation is that you're asking where my code contains the
'Tool' data
        type. I only use the Tool data type in 2 places: the ToolBelt
which stores
        objects of subclasses of Tool (henceforth called Tools), and the
actual NSBs
        that use them. However, in the agent in question, no NSBs use
Tools, and no
        Tools are loaded.
        
        Proceeding on the assumption that the JVM is unable to find the
Tool class (as
        referenced by the ToolBelt) when moving an agent, I am led to
ask what could
        remove elements from the JADE system's available class list. As
all this is
        taking place on the same JVM, launched in the same environment,
I'd expect it
        would work identically on any container. I'd imagine that it
finds the Tool
        class initially, as the agent happily loads into the container
where I create
        it. Where could the class have gone?
        
        Thanks
        
        John
        
        --
        Avoision, n: Avoidance, as practiced in 'Joisey.
        

====================================================================
CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please contact us by
replying to MailAdmin@tilab.com. Thank you
====================================================================



This archive was generated by hypermail 2a22 : Wed Jul 24 2002 - 15:22:42 MET DST