Re[2]: CORBA + JAVA
От: bitchiness_Rabbit  
Дата: 28.08.07 12:29
Оценка:
C0s>реально я бы посоветовал:
C0s>1) убедиться, что серверный объект живёт и дышит
C0s>2) убедиться, что IOR, полученный из ns, соответствует этому объекту
C0s>3) взять в руки сниффер, чтобы потрейсить сетевую активность клиента

Серверный объект живёт, тестил другой софтиной(тоже коннектится к этой корбе и выполняет те же функции)
Сниффер говорит следующее
No. Time Source Destination Protocol Info
5 7.377105 192.168.1.20 192.168.1.144 GIOP GIOP 1.0 Request 0 (two-way): _is_a

Frame 5 (189 bytes on wire, 189 bytes captured)
Ethernet II, Src: Asiarock_b1:7f:79 (00:13:8f:b1:7f:79), Dst: Giga-Byt_3b:2f:34 (00:0f:ea:3b:2f:34)
Internet Protocol, Src: 192.168.1.20 (192.168.1.20), Dst: 192.168.1.144 (192.168.1.144)
Transmission Control Protocol, Src Port: 2491 (2491), Dst Port: 2809 (2809), Seq: 1, Ack: 1, Len: 135
General Inter-ORB Protocol
Magic number: GIOP
Version: 1.0
Byte ordering: big-endian
Message type: Request
Message size: 123
General Inter-ORB Protocol Request
ServiceContextList
Sequence Length: 2
0000 0000 0000 0000 0000 0000 .... .... = VSCID: 0x00000000
.... .... .... .... .... .... 0000 0001 = SCID: 0x00000001
Service Context ID: CodeSets (1)
CodeSets
0000 0000 0100 1010 0100 0001 .... .... = VSCID: 0x00004a41
.... .... .... .... .... .... 0000 0001 = SCID: 0x00000001
Service Context ID: Unknown (1245790977)
context_data: ....
Request id: 0
Response expected: 1
Object Key length: 11
Object Key: 4E616D6553657276696365
Operation length: 6
Request operation: _is_a
Requesting Principal Length: 0
Type Id length: 43
Type Id: IDL:omg.org/CosNaming/NamingContextExt:1.0

No. Time Source Destination Protocol Info
7 7.377309 192.168.1.144 192.168.1.20 GIOP GIOP 1.0 Reply 0: No Exception

Frame 7 (79 bytes on wire, 79 bytes captured)
Ethernet II, Src: Giga-Byt_3b:2f:34 (00:0f:ea:3b:2f:34), Dst: Asiarock_b1:7f:79 (00:13:8f:b1:7f:79)
Internet Protocol, Src: 192.168.1.144 (192.168.1.144), Dst: 192.168.1.20 (192.168.1.20)
Transmission Control Protocol, Src Port: 2809 (2809), Dst Port: 2491 (2491), Seq: 1, Ack: 136, Len: 25
General Inter-ORB Protocol
Magic number: GIOP
Version: 1.0
Byte ordering: little-endian
Message type: Reply
Message size: 13
General Inter-ORB Protocol Reply
ServiceContextList
Sequence Length: 0
Request id: 0
Reply status: No Exception (0)
Type Id matched

No. Time Source Destination Protocol Info
8 7.399030 192.168.1.20 192.168.1.144 COSNAMING GIOP 1.0 Request 2 (two-way): resolve

Frame 8 (157 bytes on wire, 157 bytes captured)
Ethernet II, Src: Asiarock_b1:7f:79 (00:13:8f:b1:7f:79), Dst: Giga-Byt_3b:2f:34 (00:0f:ea:3b:2f:34)
Internet Protocol, Src: 192.168.1.20 (192.168.1.20), Dst: 192.168.1.144 (192.168.1.144)
Transmission Control Protocol, Src Port: 2491 (2491), Dst Port: 2809 (2809), Seq: 136, Ack: 26, Len: 103
General Inter-ORB Protocol
Magic number: GIOP
Version: 1.0
Byte ordering: big-endian
Message type: Request
Message size: 91
General Inter-ORB Protocol Request
ServiceContextList
Sequence Length: 0
Request id: 2
Response expected: 1
Object Key length: 11
Object Key: 4E616D6553657276696365
Operation length: 8
Request operation: resolve
Requesting Principal Length: 0
Cosnaming Dissector Using GIOP API
Seq length of n = 2
NameComponent_id (4) = ttk
NameComponent_kind (8) = billing
NameComponent_id (7) = inpeer
NameComponent_kind (7) = object

No. Time Source Destination Protocol Info
9 7.399277 192.168.1.144 192.168.1.20 GIOP GIOP 1.0 Reply 2: No Exception

Frame 9 (238 bytes on wire, 238 bytes captured)
Ethernet II, Src: Giga-Byt_3b:2f:34 (00:0f:ea:3b:2f:34), Dst: Asiarock_b1:7f:79 (00:13:8f:b1:7f:79)
Internet Protocol, Src: 192.168.1.144 (192.168.1.144), Dst: 192.168.1.20 (192.168.1.20)
Transmission Control Protocol, Src Port: 2809 (2809), Dst Port: 2491 (2491), Seq: 26, Ack: 239, Len: 184
General Inter-ORB Protocol
Magic number: GIOP
Version: 1.0
Byte ordering: little-endian
Message type: Reply
Message size: 172
General Inter-ORB Protocol Reply
ServiceContextList
Sequence Length: 0
Request id: 2
Reply status: No Exception (0)
IOR
String Length: 27
IOR::type_id: IDL:ttk_billing/Inpeer:1.0
Sequence Length: 1
Profile ID: TAG_INTERNET_IOP (0)
Sequence Length: 116
Endianess: Little Endian (1)
IIOP Major Version: 1
IIOP Minor Version: 2
String Length: 14
IIOP::Profile_host: 192.168.1.144
IIOP::Profile_port: 5556
Sequence Length: 14
Object Key: FEFE0BD44600001EDC0000000003
Sequence Length: 3
IIOP Component TAG: 0
Sequence Length: 8
component_data: .....TTA
IIOP Component TAG: 1
Sequence Length: 28
component_data: ............................
IIOP Component TAG: 20
Sequence Length: 8
component_data: ..`.`...

убедиться, что IOR, полученный из ns, соответствует этому объекту
Я честно говоря не знаю как это сделать
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.