Subject: jade.wrapper.StaleProxyException
From: Sonia P廨ez (jibpefus@si.ehu.es)
Date: Fri Aug 02 2002 - 20:17:36 MET DST
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 ------------------------------------------
This archive was generated by hypermail 2a22 : Fri Aug 02 2002 - 20:15:39 MET DST