Bonjour,
Je suis entrain de faire un petit test pour débuter avec JADE, mais là j'ai une erreur que je ne comprend pas, vu que j'ai bien suivi les étapes et intégré les .jar log4j, jade, commons-codec.
voici le code:
erreur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 import jade.core.ProfileImpl; import jade.wrapper.AgentContainer; import jade.wrapper.ControllerException; import jade.core.Runtime; import jade.util.ExtendedProperties; import jade.util.leap.Properties; public class MainContainer { /** * @param args */ public static void main(String[] args) { try { Runtime rt = Runtime.instance(); Properties p = new ExtendedProperties(); p.setProperty("gui", "true"); ProfileImpl pc = new ProfileImpl(p); AgentContainer container = rt.createMainContainer(pc); container.start(); } catch (ControllerException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
Que pourrait être le problème? D'ailleurs j'ai pas compris l'origine de cette adresse à laquelle l'application essaye de se connecter.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68 This is JADE 4.3.2 - revision 6708 of 2014/03/28 15:19:44 downloaded in Open Source, under LGPL restrictions, at http://jade.tilab.com/ ---------------------------------------- mai 15, 2014 9:57:04 PM jade.core.AgentContainerImpl joinPlatform Grave: Some problem occurred while joining agent platform. jade.core.ProfileException: Can't get a proxy to the Platform Manager - Caused by: Can't get a proxy to the PlatformManager at address rmi://cross.hq.acklin.nl:1099/ - Caused by: Connection refused to host: cross.hq.acklin.nl; nested exception is: java.net.ConnectException: Connection refused: connect at jade.core.ProfileImpl.createPlatformManager(ProfileImpl.java:529) at jade.core.ProfileImpl.getPlatformManager(ProfileImpl.java:442) at jade.core.ProfileImpl.getServiceManager(ProfileImpl.java:456) at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:346) at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:492) at jade.core.Runtime.createAgentContainer(Runtime.java:134) at jade.Boot3.<init>(Boot3.java:144) at jade.Boot3.main(Boot3.java:71) at jade.tools.testagent.TestAgent.main(TestAgent.java:76) Nested Exception: jade.core.IMTPException: Can't get a proxy to the PlatformManager at address rmi://cross.hq.acklin.nl:1099/ - Caused by: Connection refused to host: cross.hq.acklin.nl; nested exception is: java.net.ConnectException: Connection refused: connect at jade.imtp.rmi.RMIIMTPManager.getPlatformManagerProxy(RMIIMTPManager.java:320) at jade.imtp.rmi.RMIIMTPManager.getPlatformManagerProxy(RMIIMTPManager.java:310) at jade.core.ProfileImpl.createPlatformManager(ProfileImpl.java:526) at jade.core.ProfileImpl.getPlatformManager(ProfileImpl.java:442) at jade.core.ProfileImpl.getServiceManager(ProfileImpl.java:456) at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:346) at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:492) at jade.core.Runtime.createAgentContainer(Runtime.java:134) at jade.Boot3.<init>(Boot3.java:144) at jade.Boot3.main(Boot3.java:71) at jade.tools.testagent.TestAgent.main(TestAgent.java:76) Nested Exception: java.rmi.ConnectException: Connection refused to host: cross.hq.acklin.nl; nested exception is: java.net.ConnectException: Connection refused: connect at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source) at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source) at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source) at sun.rmi.server.UnicastRef.newCall(Unknown Source) at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) at java.rmi.Naming.lookup(Unknown Source) at jade.imtp.rmi.RMIIMTPManager.getPlatformManagerProxy(RMIIMTPManager.java:316) at jade.imtp.rmi.RMIIMTPManager.getPlatformManagerProxy(RMIIMTPManager.java:310) at jade.core.ProfileImpl.createPlatformManager(ProfileImpl.java:526) at jade.core.ProfileImpl.getPlatformManager(ProfileImpl.java:442) at jade.core.ProfileImpl.getServiceManager(ProfileImpl.java:456) at jade.core.AgentContainerImpl.init(AgentContainerImpl.java:346) at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:492) at jade.core.Runtime.createAgentContainer(Runtime.java:134) at jade.Boot3.<init>(Boot3.java:144) at jade.Boot3.main(Boot3.java:71) at jade.tools.testagent.TestAgent.main(TestAgent.java:76) Caused by: java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.<init>(Unknown Source) at java.net.Socket.<init>(Unknown Source) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source) ... 17 more mai 15, 2014 9:57:04 PM jade.core.Runtime$1 run Infos: JADE is closing down now.
Sinon j'ai cette interface aussi lorsque je clique sur run as java application
Merci
Partager