ILU / OmniNames

Bradley Schatz brads@dstc.edu.au
Thu, 18 Sep 1997 16:40:44 +1000


I am attempting to lookup using a ILU/C client, a javaRMI server
registered with the omniORB
naming service running on NT. I can access and operate on objects by
instancing via IOR, but when using the CosNaming::NamingContext::resolve
method on the name resolver, the object returned (another registered
java server); which has interface Object in the idl seems incompatible
with ILU's CORBA object.

If you look below the ILU binding is looking for an onject of type
IDL:org.omg/CORBA/Object 
It dosent be able to find this equality.

A debug trace follows; notic that the type identification appears to be
failing. Suggestions on what to try nextr would be appreciated?

ILU2.0alpha10+ most recent patches, VC4.2, omniORB2.2.0; the java server
is using skeletons generated from the omni-supplied Naming.idl, and
works fine for the example Hello application distributed with javaIDL

thank-you

bradley




ILU version 2.0alpha10.  Copyright 1990-1996 Xerox Corporation.
------------------------------------------------------------
Configuration info: little-endian, not BSD, not POSIX, Win32 threads,
variant, size_t=size_t,
  char=1s, short=2, int=4, long=4, void *=4, fnptr=4, long long=0, long
double=0, enum=4,
  arch=x86-intel-win32, compiler="Microsoft Visual C++ plus switches",
  ANSI C lib="Multithreaded DLL", sys aux libs="",
  protocols = sunrpc courier iiop http, transports = inmem tcp udp
sunrpcrm,
  binding via shared files in C:\TEMP
------------------------------------------------------------
ilu_SetDebugLevel:  setting debug mask from 0x0 to 0x220d04
_ilu_RegisterClass:  Registering object type ilu.CORBA-Object,
id=IDL:omg.org/CORBA/Object:1.0, ilu_Class=00410FA0.
_ilu_RegisterClass:  Registering object type CosNaming.BindingIterator,
id=IDL:CosNaming/BindingIterator:1.0, ilu_Class=00411DF0.
_ilu_RegisterClass:  Registering object type CosNaming.NamingContext,
id=IDL:CosNaming/NamingContext:1.0, ilu_Class=004121B0.
_ilu_RegisterClass:  Registering object type HelloApp.hello,
id=IDL:HelloApp/hello:1.0, ilu_Class=00414BB0.
_ilu_IIOP_ParseIOR:  byte order LittleEndian, repository id
<IDL:CosNaming/NamingContext:1.0>, 1 profile
_ilu_IIOP_ParseIOR:  profile 1 is 40 bytes, tag 0 (INTERNET),
LittleEndian byte order
parse_IIOP_Profile:  bo=LittleEndian, version=1.0,
hostname=131.181.71.47, port=900, object_key=<4..R........>
ilu_ObjectOfSBH:  no type info found in
<IOR:010631002000000049444c3a436f734e616d696e672f4e616d696e67436f6e74657
8743a312e3000010000000000000028000000010100000e0000003133312e3138312e373
12e34370084030c000000341de5520000031800000001>.  Using static type
"CosNaming.NamingContext".
_ilu_FindOrCreateObject:  Created new surrogate object 004159B0, ih <$>,
on server <CORBA:341DE5520000031800000001> (00415830).
_ilu_IIOP_FindClassViaRPC(004159B0 "CORBA:341DE5520000031800000001" "$")
(iiop.c:IsOfTypeViaRPC):  object 004159B0, type
"CosNaming.NamingContext"...
tcp(00415AE0):  connecting to host 131.181.71.47, port 900...
tcp(00415AE0):  eventually connected to 131.181.71.47:900 on FD 68
ilu_StartCall       (0012FDA4 over 00415C60 to
"CORBA:341DE5520000031800000001" #1, ilu.Object.-is-a).
(ilu:_IIOP_SizeOfObjectID:  m-s type id for
CORBA:341DE5520000031800000001/$ is <IDL:CosNaming/NamingContext:1.0>
_IIOP_SizeOfObjectID (0012FDA4, 004159B0, is disc, ilu.Object) => 35
_IIOP_BeginRequest:  call 0012FDA4 (sn 1), argSize 71, class ilu.Object
(ilu:root-object-type), meth -is-a (65413)
_IIOP_StartRequest:  request 1 begun (argsize 71).
ilu_StartRequest    (0012FDA4 over 00415C60 to
"CORBA:341DE5520000031800000001" #1, argSize 71) => success
(ilu:_IIOP_OutputObjectID:  m-s type id for
CORBA:341DE5520000031800000001/$ is <IDL:CosNaming/NamingContext:1.0>
ilu_FinishRequest   (0012FDA4 over 00415C60 to
"CORBA:341DE5520000031800000001" #1)
tcp(00415AE0):  writing 92 bytes from 00398DB8 to FD 68.
DumpPacket of outgoing TCP packet 00398DB8, length 92 bytes, dumping 92
bytes:
     0:  47 49 4f 50  01 00 01 00  50 00 00 00  00 00 00 00
GIOP....P.......
    16:  01 00 00 00  01 00 00 00  0c 00 00 00  34 1d e5 52
............4..R
    32:  00 00 03 18  00 00 00 01  06 00 00 00  5f 69 73 5f
............_is_
    48:  61 00 00 00  00 00 00 00  20 00 00 00  49 44 4c 3a   a.......
...IDL:
    64:  43 6f 73 4e  61 6d 69 6e  67 2f 4e 61  6d 69 6e 67
CosNaming/Naming
    80:  43 6f 6e 74  65 78 74 3a  31 2e 30 00
Context:1.0.
ilu_GetReply        (0012FDA4 over 00415C60 to
"CORBA:341DE5520000031800000001" #1)...
tcp(00415AE0): read 25 bytes from FD 68, eof=F
DumpPacket of incoming TCP packet 00397DB0, length 25 bytes, dumping 25
bytes:
     0:  47 49 4f 50  01 00 01 01  0d 00 00 00  00 00 00 00
GIOP............
    16:  01 00 00 00  00 00 00 00  01                         .........
_IIOP_ReadHeader:   Reply #1, 13 bytes, byte order little-endian.
_IIOP_InterpretReply:  replyStatus on reply 1 is 0
ilu_GetReply        (0012FDA4 over 00415C60 to
"CORBA:341DE5520000031800000001" #1) => (from wire) ans=Success
estatus=0 err=success
ilu_ReplyRead       (0012FDA4 over 00415C60 to
"CORBA:341DE5520000031800000001" #1) => success
ilu_FinishCall      (0012FDA4 over 00415C60 to
"CORBA:341DE5520000031800000001" #1) => err=success ca_pe=Success
_ilu_FindOrCreateObject:  Object of <CORBA:341DE5520000031800000001/$>
is 004159B0.
ILU_C:  Creating C Server 00415DA0 for kernel server 00415830.
ILU/C: creating LSO 00415D80 for surrogate kobj 004159B0 ("$" in
"CORBA:341DE5520000031800000001"); refcnt=1, kvi=0.
ilu_SetLSO(obj=004159B0 "$" in 00415830
"CORBA:341DE5520000031800000001", lang=ANSI-C, lso:=00415D80).
ilu_StartCall       (0012FE00 over 00415C60 to
"CORBA:341DE5520000031800000001" #2, CosNaming.NamingContext.resolve).
(ilu:_IIOP_SizeOfObjectID:  m-s type id for
CORBA:341DE5520000031800000001/$ is <IDL:CosNaming/NamingContext:1.0>
_IIOP_SizeOfObjectID (0012FE00, 004159B0, is disc,
CosNaming.NamingContext) => 35
_IIOP_BeginRequest:  call 0012FE00 (sn 2), argSize 56, class
CosNaming.NamingContext (IDL:CosNaming/NamingContext:1.0), meth resolve
(5)
_IIOP_StartRequest:  request 2 begun (argsize 56).
ilu_StartRequest    (0012FE00 over 00415C60 to
"CORBA:341DE5520000031800000001" #2, argSize 56) => success
(ilu:_IIOP_OutputObjectID:  m-s type id for
CORBA:341DE5520000031800000001/$ is <IDL:CosNaming/NamingContext:1.0>
ilu_FinishRequest   (0012FE00 over 00415C60 to
"CORBA:341DE5520000031800000001" #2)
tcp(00415AE0):  writing 77 bytes from 00398DB8 to FD 68.
DumpPacket of outgoing TCP packet 00398DB8, length 77 bytes, dumping 77
bytes:
     0:  47 49 4f 50  01 00 01 00  41 00 00 00  00 00 00 00
GIOP....A.......
    16:  02 00 00 00  01 00 00 00  0c 00 00 00  34 1d e5 52
............4..R
    32:  00 00 03 18  00 00 00 01  08 00 00 00  72 65 73 6f
............reso
    48:  6c 76 65 00  00 00 00 00  01 00 00 00  06 00 00 00
lve.............
    64:  48 65 6c 6c  6f 00 69 6e  01 00 00 00  00
Hello.in.....
ilu_GetReply        (0012FE00 over 00415C60 to
"CORBA:341DE5520000031800000001" #2)...
tcp(00415AE0): read 112 bytes from FD 68, eof=F
DumpPacket of incoming TCP packet 00397DB0, length 112 bytes, dumping
112 bytes:
     0:  47 49 4f 50  01 00 01 01  64 00 00 00  00 00 00 00
GIOP....d.......
    16:  02 00 00 00  00 00 00 00  17 00 00 00  49 44 4c 3a
............IDL:
    32:  48 65 6c 6c  6f 41 70 70  2f 68 65 6c  6c 6f 3a 31
HelloApp/hello:1
    48:  2e 30 00 63  01 00 00 00  00 00 00 00  30 00 00 00
.0.c........0...
    64:  00 01 00 00  00 00 00 06  6d 65 74 68  6f 00 04 75
........metho..u
    80:  00 00 00 1c  af ab ca fe  00 00 00 02  34 20 71 04
............4 q.
    96:  00 00 00 00  00 00 00 08  00 00 00 00  00 00 00 00
................
_IIOP_ReadHeader:   Reply #2, 100 bytes, byte order little-endian.
_IIOP_InterpretReply:  replyStatus on reply 2 is 0
ilu_GetReply        (0012FE00 over 00415C60 to
"CORBA:341DE5520000031800000001" #2) => (from wire) ans=Success
estatus=0 err=success
parse_IIOP_Profile:  bo=BigEndian, version=1.0, hostname=metho,
port=1141, object_key=<........4 q.................>
_ilu_FindOrCreateObject:  Created new surrogate object 004165A0, ih <$>,
on server
<CORBA:AFABCAFE000000023420710400000000000000080000000000000000>
(004163E0).
_ilu_IIOP_FindClassViaRPC(004165A0
"CORBA:AFABCAFE000000023420710400000000000000080000000000000000" "$")
(iiop.c:IsOfTypeViaRPC):  object 004165A0, type "ilu.CORBA-Object"...
tcp(00416610):  connecting to host 131.181.71.47, port 1141...
tcp(00416610):  eventually connected to 131.181.71.47:1141 on FD 84
ilu_StartCall       (0012FBB0 over 004166A0 to
"CORBA:AFABCAFE000000023420710400000000000000080000000000000000" #1,
ilu.Object.-is-a).
(ilu:_IIOP_SizeOfObjectID:  m-s type id for
CORBA:AFABCAFE000000023420710400000000000000080000000000000000/$ is
<IDL:omg.org/CORBA/Object:1.0>
_IIOP_SizeOfObjectID (0012FBB0, 004165A0, is disc, ilu.Object) => 51
_IIOP_BeginRequest:  call 0012FBB0 (sn 1), argSize 84, class ilu.Object
(ilu:root-object-type), meth -is-a (65413)
_IIOP_StartRequest:  request 1 begun (argsize 84).
ilu_StartRequest    (0012FBB0 over 004166A0 to
"CORBA:AFABCAFE000000023420710400000000000000080000000000000000" #1,
argSize 84) => success
(ilu:_IIOP_OutputObjectID:  m-s type id for
CORBA:AFABCAFE000000023420710400000000000000080000000000000000/$ is
<IDL:omg.org/CORBA/Object:1.0>
ilu_FinishRequest   (0012FBB0 over 004166A0 to
"CORBA:AFABCAFE000000023420710400000000000000080000000000000000" #1)
tcp(00416610):  writing 105 bytes from 0039B160 to FD 84.
DumpPacket of outgoing TCP packet 0039B160, length 105 bytes, dumping
105 bytes:
     0:  47 49 4f 50  01 00 01 00  5d 00 00 00  00 00 00 00
GIOP....].......
    16:  01 00 00 00  01 00 00 00  1c 00 00 00  af ab ca fe
................
    32:  00 00 00 02  34 20 71 04  00 00 00 00  00 00 00 08   ....4
q.........
    48:  00 00 00 00  00 00 00 00  06 00 00 00  5f 69 73 5f
............_is_
    64:  61 00 00 00  00 00 00 00  1d 00 00 00  49 44 4c 3a
a...........IDL:
    80:  6f 6d 67 2e  6f 72 67 2f  43 4f 52 42  41 2f 4f 62
omg.org/CORBA/Ob
    96:  6a 65 63 74  3a 31 2e 30  00                         ject:1.0.
ilu_GetReply        (0012FBB0 over 004166A0 to
"CORBA:AFABCAFE000000023420710400000000000000080000000000000000" #1)...
tcp(00416610): read 25 bytes from FD 84, eof=F
DumpPacket of incoming TCP packet 0039A158, length 25 bytes, dumping 25
bytes:
     0:  47 49 4f 50  01 00 00 01  00 00 00 0d  00 00 00 00
GIOP............
    16:  00 00 00 01  00 00 00 00  00                         .........
_IIOP_ReadHeader:   Reply #1, 13 bytes, byte order big-endian.
_IIOP_InterpretReply:  replyStatus on reply 1 is 0
ilu_GetReply        (0012FBB0 over 004166A0 to
"CORBA:AFABCAFE000000023420710400000000000000080000000000000000" #1) =>
(from wire) ans=Success estatus=0 err=success
ilu_ReplyRead       (0012FBB0 over 004166A0 to
"CORBA:AFABCAFE000000023420710400000000000000080000000000000000" #1) =>
success
ilu_FinishCall      (0012FBB0 over 004166A0 to
"CORBA:AFABCAFE000000023420710400000000000000080000000000000000" #1) =>
err=success ca_pe=Success
_ilu_FindOrCreateObject:  Couldn't determine type for object 004165A0,
given mstid "(null)".
_ilu_FindOrCreateObject:  Object of
<CORBA:AFABCAFE000000023420710400000000000000080000000000000000/$> is
00000000.
ilu_ReplyRead       (0012FE00 over 00415C60 to
"CORBA:341DE5520000031800000001" #2) => success
ilu_FinishCall      (0012FE00 over 00415C60 to
"CORBA:341DE5520000031800000001" #2) => err=success ca_pe=Success