Subject: installing MTP / Applet
From: Volker Lutz (lutz@architur.de)
Date: Thu Oct 17 2002 - 11:42:01 MET DST
hi Jaders,
at first I want to tell about the situation:
I start a JADE AP on PC A wit HHTP MTP. I have a signed applet
which creates a new remotecontainer. This is started over a html file
with xitami webbrowser.
So far so good. At creation of the remotecontainer followed Exception
is thrown:
Error installing MTP
jade.mtp.MTPException
at jade.mtp.iiop.IIOPAddress.parseIOR(MessageTransportProtocol.java:665)
at jade.mtp.iiop.IIOPAddress.initFromIOR(MessageTransportProtocol.java:489)
at jade.mtp.iiop.IIOPAddress.<init>(MessageTransportProtocol.java:479)
at jade.mtp.iiop.IIOPAddress.<init>(MessageTransportProtocol.java:473)
at
jade.mtp.iiop.MessageTransportProtocol.activate(MessageTransportProtocol.jav
a:191)
at jade.core.FullAcc.addMTP(FullAcc.java:326)
at jade.core.AgentContainerImpl.installMTP(AgentContainerImpl.java:434)
at jade.core.FullAcc.initialize(FullAcc.java:116)
at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:609)
at jade.core.Runtime.createAgentContainer(Runtime.java:79)
at
aams.TestApplet.MyAgentAppletCommunicator.<init>(MyAgentAppletCommunicator.j
ava:53)
at aams.TestApplet.MyAgentApplet.init(MyAgentApplet.java:19)
at sun.applet.AppletPanel.run(AppletPanel.java:341)
at java.lang.Thread.run(Thread.java:536)
but then it says:
Agent container Container-5@JADE-IMTP://wagner is ready.
and my agents can talk to each other without problems.
When I want to uninstall a MTP with the RMA it says: No MTP installed
This seems to be right because they talk over InternalMTP, right?
I'll show you the code of the applet:
Profile p = new ProfileImpl("wagner",1099,"ams@wagner:1099/JADE");
jade.wrapper.AgentContainer ac =
jade.core.Runtime.instance().createAgentContainer(p);
try
{
Object[] args = new Object[]{};
AgentController a = ac.createNewAgent("startedFromApplet" +
System.currentTimeMillis(), "aams.TestAgent.MyAgent", args);
//ac.installMTP("http://wagner:7777/acc","jamr.jademtp.http.MessageTransport
Protocol");
a.start();
System.out.println("Name: " + a.getName() + "; State: " + a.getState());
}catch (Exception e)
{
e.printStackTrace();
}
you can see, I try to install the http MTP for the container
but then I got a security-Exception from the XML parser...
so i slashed it out.
What can I do to avoid the Exception or (even better...) to install
the http MTP correctly over the applet.
grateful
Volker
____________________________________________
Volker Lutz
Architur Information Systems GmbH
Plieninger Straße 63 B
70794 Filderstadt
Tel: +49 (0)711 / 707097 - 0
Fax: +49 (0)711 / 707097 - 28
Mail: lutz@architur.de
URL: http://www.architur.de
____________________________________________
Architur stellt auf der SYSTEMS 2002 aus!
Halle B1, Stand B1.333
Wir freuen uns auf Ihren Besuch!
Vereinbaren Sie gleich einen Termin für
die Systems (14.-18.Oktober 2002).
____________________________________________
This archive was generated by hypermail 2a22 : Thu Oct 17 2002 - 11:48:01 MET DST