ok , je travail avec celle ci : ftp://ftp-developpez.com/java/sources/MyRSA.java
j'ai changévoici le résultat de exécution :Main _container :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 Rsa rsa = new Rsa(); rsa.generateKeyPair(); RSAPublicKey key2 =rsa.getPublicKey();et dans le Container_1 :
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82 Microsoft Windows [version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. Tous droits réservés. C:\Users\admin>java jade.Boot -container 23 juin 2011 11:03:48 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/ ---------------------------------------- 23 juin 2011 11:03:48 jade.core.BaseService init INFO: Service jade.core.management.AgentManagement initialized 23 juin 2011 11:03:48 jade.core.BaseService init INFO: Service jade.core.messaging.Messaging initialized 23 juin 2011 11:03:48 jade.core.BaseService init INFO: Service jade.core.mobility.AgentMobility initialized 23 juin 2011 11:03:48 jade.core.BaseService init INFO: Service jade.core.event.Notification initialized 23 juin 2011 11:03:48 jade.core.messaging.MessagingService clearCachedSlice INFO: Clearing cache 23 juin 2011 11:03:48 jade.core.AgentContainerImpl joinPlatform INFO: -------------------------------------- Agent container Container-1@admin-HP is ready. -------------------------------------------- AgentService STARTED AgentService REGISTERED WITH THE DF Att Agent Lanceur message recu de Agent Lanceur et registre sous pubkey= [B@e265d0 23 juin 2011 11:04:23 jade.core.messaging.MessagingService clearCachedSlice INFO: Clearing cache le msg recu de AV = public key message envoyÚ Ó la Agent Vendeur = [B@e265d0 23 juin 2011 11:05:29 jade.core.Runtime$1 run INFO: JADE is closing down now. C:\Users\admin>java jade.Boot -gui 23 juin 2011 12:16:51 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/ ---------------------------------------- 23 juin 2011 12:16:52 jade.core.BaseService init INFO: Service jade.core.management.AgentManagement initialized 23 juin 2011 12:16:52 jade.core.BaseService init INFO: Service jade.core.messaging.Messaging initialized 23 juin 2011 12:16:52 jade.core.BaseService init INFO: Service jade.core.mobility.AgentMobility initialized 23 juin 2011 12:16:52 jade.core.BaseService init INFO: Service jade.core.event.Notification initialized 23 juin 2011 12:16:52 jade.core.messaging.MessagingService clearCachedSlice INFO: Clearing cache 23 juin 2011 12:16:53 jade.mtp.http.HTTPServer <init> INFO: HTTP-MTP Using XML parser com.sun.org.apache.xerces.internal.jaxp.SAXParse rImpl$JAXPSAXParser 23 juin 2011 12:16:53 jade.core.messaging.MessagingService boot INFO: MTP addresses: http://admin-HP:7778/acc 23 juin 2011 12:16:53 jade.core.AgentContainerImpl joinPlatform INFO: -------------------------------------- Agent container Main-Container@admin-HP is ready. -------------------------------------------- 23 juin 2011 12:16:56 jade.core.PlatformManagerImpl localAddNode INFO: Adding node <Container-1> to the platform 23 juin 2011 12:16:56 jade.core.messaging.MessagingService clearCachedSlice INFO: Clearing cache 23 juin 2011 12:16:56 jade.core.PlatformManagerImpl$1 nodeAdded INFO: --- Node <Container-1> ALIVE --- Exception in thread "Thread-15" java.lang.ClassCastException: sun.net.www.protoc ol.ftp.FtpURLConnection cannot be cast to java.net.JarURLConnection at jade.util.ClassFinder.findSubclasses(ClassFinder.java:362) at jade.util.ClassFinder.findSubclasses(ClassFinder.java:297) at jade.util.ClassFinder.findSubclasses(ClassFinder.java:119) at jade.gui.ClassSelectionDialog$ClassUpdater.run(ClassSelectionDialog.j ava:119) at java.lang.Thread.run(Unknown Source) la clÚ public :Sun RSA public key, 1024 bits modulus: 921090126562396638831238337497900974121794071138617169989950449945155 33493018999956081768167459317506073388275006083230484099762839623732835956033721 51757387442611179311224814607947462490019794390915269392184445676049342644707680 3059990529247559686179694892654436334715742653717831069548372663114290403678803 public exponent: 65537
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133 Microsoft Windows [version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. Tous droits réservés. C:\Users\admin>java jade.Boot -container 23 juin 2011 11:03:48 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/ ---------------------------------------- 23 juin 2011 11:03:48 jade.core.BaseService init INFO: Service jade.core.management.AgentManagement initialized 23 juin 2011 11:03:48 jade.core.BaseService init INFO: Service jade.core.messaging.Messaging initialized 23 juin 2011 11:03:48 jade.core.BaseService init INFO: Service jade.core.mobility.AgentMobility initialized 23 juin 2011 11:03:48 jade.core.BaseService init INFO: Service jade.core.event.Notification initialized 23 juin 2011 11:03:48 jade.core.messaging.MessagingService clearCachedSlice INFO: Clearing cache 23 juin 2011 11:03:48 jade.core.AgentContainerImpl joinPlatform INFO: -------------------------------------- Agent container Container-1@admin-HP is ready. -------------------------------------------- AgentService STARTED AgentService REGISTERED WITH THE DF Att Agent Lanceur message recu de Agent Lanceur et registre sous pubkey= [B@e265d0 23 juin 2011 11:04:23 jade.core.messaging.MessagingService clearCachedSlice INFO: Clearing cache le msg recu de AV = public key message envoyÚ Ó la Agent Vendeur = [B@e265d0 23 juin 2011 11:05:29 jade.core.Runtime$1 run INFO: JADE is closing down now. C:\Users\admin>java jade.Boot -gui 23 juin 2011 12:16:51 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/ ---------------------------------------- 23 juin 2011 12:16:52 jade.core.BaseService init INFO: Service jade.core.management.AgentManagement initialized 23 juin 2011 12:16:52 jade.core.BaseService init INFO: Service jade.core.messaging.Messaging initialized 23 juin 2011 12:16:52 jade.core.BaseService init INFO: Service jade.core.mobility.AgentMobility initialized 23 juin 2011 12:16:52 jade.core.BaseService init INFO: Service jade.core.event.Notification initialized 23 juin 2011 12:16:52 jade.core.messaging.MessagingService clearCachedSlice INFO: Clearing cache 23 juin 2011 12:16:53 jade.mtp.http.HTTPServer <init> INFO: HTTP-MTP Using XML parser com.sun.org.apache.xerces.internal.jaxp.SAXParse rImpl$JAXPSAXParser 23 juin 2011 12:16:53 jade.core.messaging.MessagingService boot INFO: MTP addresses: http://admin-HP:7778/acc 23 juin 2011 12:16:53 jade.core.AgentContainerImpl joinPlatform INFO: -------------------------------------- Agent container Main-Container@admin-HP is ready. -------------------------------------------- 23 juin 2011 12:16:56 jade.core.PlatformManagerImpl localAddNode INFO: Adding node <Container-1> to the platform 23 juin 2011 12:16:56 jade.core.messaging.MessagingService clearCachedSlice INFO: Clearing cache 23 juin 2011 12:16:56 jade.core.PlatformManagerImpl$1 nodeAdded INFO: --- Node <Container-1> ALIVE --- Exception in thread "Thread-15" java.lang.ClassCastException: sun.net.www.protoc ol.ftp.FtpURLConnection cannot be cast to java.net.JarURLConnection at jade.util.ClassFinder.findSubclasses(ClassFinder.java:362) at jade.util.ClassFinder.findSubclasses(ClassFinder.java:297) at jade.util.ClassFinder.findSubclasses(ClassFinder.java:119) at jade.gui.ClassSelectionDialog$ClassUpdater.run(ClassSelectionDialog.j ava:119) at java.lang.Thread.run(Unknown Source) la clÚ public :Sun RSA public key, 1024 bits modulus: 921090126562396638831238337497900974121794071138617169989950449945155 33493018999956081768167459317506073388275006083230484099762839623732835956033721 51757387442611179311224814607947462490019794390915269392184445676049342644707680 3059990529247559686179694892654436334715742653717831069548372663114290403678803 public exponent: 65537L'agent Lanceur vas envoyÚ la clÚ pub @ Agent ServiceSun RSA public key, 1024 bits modulus: 921090126562396638831238337497900974121794071138617169989950449945155 33493018999956081768167459317506073388275006083230484099762839623732835956033721 51757387442611179311224814607947462490019794390915269392184445676049342644707680 3059990529247559686179694892654436334715742653717831069548372663114290403678803 public exponent: 65537 L'agent Lanceur vas envoyÚ la clÚ pub @ Agent ServiceSun RSA public key, 1024 bi ts modulus: 921090126562396638831238337497900974121794071138617169989950449945155 33493018999956081768167459317506073388275006083230484099762839623732835956033721 51757387442611179311224814607947462490019794390915269392184445676049342644707680 3059990529247559686179694892654436334715742653717831069548372663114290403678803 public exponent: 65537 je m 'appel AgentLanceur 23 juin 2011 12:17:34 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/ ---------------------------------------- 23 juin 2011 12:17:34 jade.core.BaseService init INFO: Service jade.core.management.AgentManagement initialized 23 juin 2011 12:17:34 jade.core.BaseService init INFO: Service jade.core.messaging.Messaging initialized 23 juin 2011 12:17:34 jade.core.BaseService init INFO: Service jade.core.mobility.AgentMobility initialized 23 juin 2011 12:17:34 jade.core.BaseService init INFO: Service jade.core.event.Notification initialized 23 juin 2011 12:17:34 jade.core.PlatformManagerImpl localAddNode INFO: Adding node <Container-2> to the platform 23 juin 2011 12:17:34 jade.core.messaging.MessagingService clearCachedSlice INFO: Clearing cache 23 juin 2011 12:17:34 jade.core.messaging.MessagingService clearCachedSlice INFO: Clearing cache 23 juin 2011 12:17:34 jade.core.PlatformManagerImpl$1 nodeAdded INFO: --- Node <Container-2> ALIVE --- 23 juin 2011 12:17:34 jade.mtp.http.HTTPServer <init> INFO: HTTP-MTP Using XML parser com.sun.org.apache.xerces.internal.jaxp.SAXParse rImpl$JAXPSAXParser 23 juin 2011 12:17:34 jade.mtp.http.HTTPServer <init> ATTENTION: Port 7778 is already in used, selected another one 23 juin 2011 12:17:34 jade.core.messaging.MessagingService clearCachedSlice INFO: Clearing cache 23 juin 2011 12:17:34 jade.core.messaging.MessagingService boot INFO: MTP addresses: http://admin-HP:57936/acc 23 juin 2011 12:17:34 jade.core.AgentContainerImpl joinPlatform INFO: -------------------------------------- Agent container Container-2@admin-HP is ready. -------------------------------------------- lnormalement ça marche sauf la premiere exception , Meeeeerci infiniment msr Djug
Partager