RE: [jade-develop] jade.wrapper.StaleProxyException


Subject: RE: [jade-develop] jade.wrapper.StaleProxyException
From: Bellifemine Fabio (Fabio.Bellifemine@TILAB.COM)
Date: Sat Aug 03 2002 - 18:19:38 MET DST


your code is throwing the following exception:

PresentarFicheroLlamadaSistema7$CrearContextoAgente.run(PresentarFicheroLlamadaSistema7.java: 388)

that is then catched by the AgentContainer and rethrown as it was a StaleProxyException.
Check the constructor of your agent.

-----Original Message-----
From: Sonia P廨ez [mailto:jibpefus@si.ehu.es]
Sent: 02 August 2002 20:18
To: jade-develop@sharon.cselt.it
Subject: [jade-develop] jade.wrapper.StaleProxyException

hi,

I have a problem when I try to create an agent from a servlet.
I have a JADE platform running (launched from command line) and I want
to create a container and an agent
inside that platform from a servlet. I can create the container but when
I try
to create the agent I got the following error:

Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
Launching the agent container ... (Profile main=true
main-host=siul04.si.ehu.es main-port=1099
main-proto=rmi mtps=jade.util.leap.ArrayList@17e4ca
platform-id=siul04.si.ehu.es:1099/JADE)
This is JADE 2.6 - 2002/07/19 09:32:33
downloaded in Open Source, under LGPL restrictions,
at http://jade.cselt.it/

IOR: 0000 .....
Agent container Container-1@JADE.IMTP://siul04.si.ehu.es is ready.
Launching the ThanksAgent agent on the main container ...
jade.wrapper.StaleProxyException: examples.thanksAgent.ThanksAgent
at jade.wrapper.AgentContainer.createNewAgent (AgentContainer.java:185)
at
PresentarFicheroLlamadaSistema7$CrearContextoAgente.run(PresentarFicheroLlamadaSistema7.java:
388)
at java.lang.Thread.run (Thread.java: 484)

The code of the servlet that creates the agent:

try {
Runtime rt = Runtime.instance ();

ProfileImpl pConatiner = new ProfileImpl ();

System.out.println ("Launching the agent conatiner ..." + pContainer);
jade.wrapper.AgentConatiner cont = rt.createAgentConatiner (pConatiner);

System.out.println ("Launching the ThanksAgent agent on the main
container ...");
AgentController miAgente = cont.createNewAgent ("miThanksAgent",
"examples.thanksAgent.ThanksAgent", null);
miAgente.start ();
}

catch (Exception e) {
e.printStackTrace ();
}

My configuration is:

jdk1.3
JADE 2.6
Tomcat 4.0.3
Linux Debian distribution

Thanks in advanced,

Sonia.

-- 
------------------------------------------
Sonia P?rez Fuente
Informatika Fakultatea
Euskal Herriko Unibertsitatea
Tel: 943 01 80 60
e-mail: jibpefus@si.ehu.es
------------------------------------------

_______________________________________________ jade-develop mailing list jade-develop@sharon.cselt.it http://sharon.cselt.it/mailman/listinfo/jade-develop UNSUBSCRIBE INSTRUCTIONS AT http://jade.cselt.it/mailing.htm#unsubscribe



This archive was generated by hypermail 2a22 : Sat Aug 03 2002 - 18:19:49 MET DST