Discussion:
[jade-develop] Error when running agent project
Soukaina Boudoudouh
2014-03-27 16:54:15 UTC
Permalink
Hello every body,

I'm trying to developp 3 agents in the same project at NetBeans IDE 6.9.1
but when i try to run the project where they are developped the ouput
display this messagr error;

27 mars 2014 16:28:18 jade.core.Runtime beginContainer

INFO: ----------------------------------

This is JADE snapshot - revision $WCREV$ of $WCDATE$

downloaded in Open Source, under LGPL restrictions,

at http://jade.tilab.com/

----------------------------------------

27 mars 2014 16:28:18 jade.core.AgentContainerImpl joinPlatform

GRAVE: Some problem occurred while joining agent platform.

jade.core.ProfileException: Can't get a proxy to the Platform Manager
[nested jade.core.IMTPException: The Service Manager was already bound in
the RMI Registry [nested java.rmi.AlreadyBoundException: ServiceManager]]

at jade.core.ProfileImpl.createPlatformManager(ProfileImpl.java:574)

at jade.core.ProfileImpl.getPlatformManager(ProfileImpl.java:487)

at jade.core.ProfileImpl.getServiceManager(ProfileImpl.java:501)

at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:336)

at
jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:472)

at jade.core.Runtime.createMainContainer(Runtime.java:148)

at jade.Boot.<init>(Boot.java:130)

at jade.Boot.main(Boot.java:70)

Nested Exception:

jade.core.IMTPException: The Service Manager was already bound in the RMI
Registry [nested java.rmi.AlreadyBoundException: ServiceManager]

at
jade.imtp.rmi.RMIIMTPManager.exportPlatformManager(RMIIMTPManager.java:276)

at jade.core.ProfileImpl.createPlatformManager(ProfileImpl.java:563)

at jade.core.ProfileImpl.getPlatformManager(ProfileImpl.java:487)

at jade.core.ProfileImpl.getServiceManager(ProfileImpl.java:501)

at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:336)

at
jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:472)

at jade.core.Runtime.createMainContainer(Runtime.java:148)

at jade.Boot.<init>(Boot.java:130)

at jade.Boot.main(Boot.java:70)

Nested Exception:

java.rmi.AlreadyBoundException: ServiceManager

at sun.rmi.registry.RegistryImpl.bind(RegistryImpl.java:123)

at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)

at
sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)

at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)

at sun.rmi.transport.Transport$1.run(Transport.java:159)

at java.security.AccessController.doPrivileged(Native Method)

at sun.rmi.transport.Transport.serviceCall(Transport.java:155)

at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)

at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)

at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)

at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:619)

at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)

at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)

at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)

at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)

at java.rmi.Naming.bind(Naming.java:111)

at
jade.imtp.rmi.RMIIMTPManager.exportPlatformManager(RMIIMTPManager.java:224)

at jade.core.ProfileImpl.createPlatformManager(ProfileImpl.java:563)

at jade.core.ProfileImpl.getPlatformManager(ProfileImpl.java:487)

at jade.core.ProfileImpl.getServiceManager(ProfileImpl.java:501)

at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:336)

at
jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:472)

at jade.core.Runtime.createMainContainer(Runtime.java:148)

at jade.Boot.<init>(Boot.java:130)

at jade.Boot.main(Boot.java:70)

27 mars 2014 16:28:18 jade.core.Runtime$1 run

INFO: JADE is closing down now.

G?N?RATION TERMIN?E (dur?e totale 0 secondes)

Thanks a lot for help
--
P *Please consider the environment before printing this e-mail*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20140327/1c72ad76/attachment.html>
Caire Giovanni
2014-03-28 10:02:27 UTC
Permalink
Hi,

The port used by the Main Container is busy. Likely you have another process already using it.
Try specifying another port (option -local-port <port-number>9
From the log you have it seems to me that you are using a VERY OLD version of Jade --> Move to the latest one (4.3.1).
Bye,

Giovanni

Da: Soukaina Boudoudouh [mailto:soukainabdh at gmail.com]
Inviato: gioved? 27 marzo 2014 17:54
A: Caire Giovanni; walisonjose16 at hotmail.com; jade-develop at avalon.tilab.com
Oggetto: Error when running agent project

Hello every body,

I'm trying to developp 3 agents in the same project at NetBeans IDE 6.9.1 but when i try to run the project where they are developped the ouput display this messagr error;
27 mars 2014 16:28:18 jade.core.Runtime beginContainer
INFO: ----------------------------------
This is JADE snapshot - revision $WCREV$ of $WCDATE$
downloaded in Open Source, under LGPL restrictions,
at http://jade.tilab.com/
----------------------------------------
27 mars 2014 16:28:18 jade.core.AgentContainerImpl joinPlatform
GRAVE: Some problem occurred while joining agent platform.
jade.core.ProfileException: Can't get a proxy to the Platform Manager [nested jade.core.IMTPException: The Service Manager was already bound in the RMI Registry [nested java.rmi.AlreadyBoundException: ServiceManager]]
at jade.core.ProfileImpl.createPlatformManager(ProfileImpl.java:574)
at jade.core.ProfileImpl.getPlatformManager(ProfileImpl.java:487)
at jade.core.ProfileImpl.getServiceManager(ProfileImpl.java:501)
at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:336)
at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:472)
at jade.core.Runtime.createMainContainer(Runtime.java:148)
at jade.Boot.<init>(Boot.java:130)
at jade.Boot.main(Boot.java:70)
Nested Exception:
jade.core.IMTPException: The Service Manager was already bound in the RMI Registry [nested java.rmi.AlreadyBoundException: ServiceManager]
at jade.imtp.rmi.RMIIMTPManager.exportPlatformManager(RMIIMTPManager.java:276)
at jade.core.ProfileImpl.createPlatformManager(ProfileImpl.java:563)
at jade.core.ProfileImpl.getPlatformManager(ProfileImpl.java:487)
at jade.core.ProfileImpl.getServiceManager(ProfileImpl.java:501)
at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:336)
at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:472)
at jade.core.Runtime.createMainContainer(Runtime.java:148)
at jade.Boot.<init>(Boot.java:130)
at jade.Boot.main(Boot.java:70)
Nested Exception:
java.rmi.AlreadyBoundException: ServiceManager
at sun.rmi.registry.RegistryImpl.bind(RegistryImpl.java:123)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at java.rmi.Naming.bind(Naming.java:111)
at jade.imtp.rmi.RMIIMTPManager.exportPlatformManager(RMIIMTPManager.java:224)
at jade.core.ProfileImpl.createPlatformManager(ProfileImpl.java:563)
at jade.core.ProfileImpl.getPlatformManager(ProfileImpl.java:487)
at jade.core.ProfileImpl.getServiceManager(ProfileImpl.java:501)
at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:336)
at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:472)
at jade.core.Runtime.createMainContainer(Runtime.java:148)
at jade.Boot.<init>(Boot.java:130)
at jade.Boot.main(Boot.java:70)
27 mars 2014 16:28:18 jade.core.Runtime$1 run
INFO: JADE is closing down now.
G?N?RATION TERMIN?E (dur?e totale 0 secondes)

Thanks a lot for help

--
P Please consider the environment before printing this e-mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20140328/eb2446e4/attachment.html>
Loading...