[omniORB] VC++ 5: omniORB Mishandling Exceptions! Other errors!
David Morgenlender
dmorgen@alum.mit.edu
Fri, 22 May 1998 13:57:40 GMT
Sai-Lai,
>> catior comes up with an ASSERTION failure when I do this. This is =
what's
>> printed until that point (nothing else is printed if I say to ignore =
the =3D
>> error):
>>=20
>> Type ID: "IDL:Echo:1.0"
>> Profiles:
>> 1. IIOP 1.0 127.0.0.1 0 "5b.\........"
>>=20
>> That's not the IP address of the ETS-Kernel box!
>>=20
>> How do I correct that?
>>=20
>
>The IP address is the loopback interface.
>The ORB first uses gethostname() to get the name of the host and then =
uses
>gethostbyname() to obtain the IP address of the host. It always picks =
the
>first one from the list of addresses returned by gethostbyname().
>
>Usually, /etc/hosts has an entry localhost which resolves to 127.0.0.1.
>May be gethostname() on your machine returns "localhost"!
>
>Anyway, you can tell the ORB what address to use directly by specifying
>the environment variable OMNIORB_USEHOSTNAME_VAR
>
>e.g.
>
>Suppose your machine's name is wib:
>
>set OMNIORB_USEHOSTNAMEVAR=3Dwib
I think we're getting closer, but we're still not there.
ETS-Kernel does not support hostnames. According to the documentation,
gethostname() returns a null string. So I decided to take advantage of =
the
environment variable you suggested.
"OMNIORB_USEHOSTNAMEVAR" turns out to be the #define in the code.
"OMNIORB_USEHOSTNAME" is the environment variable. So I set it to =
"Target" on
the server (ETS-Kernel) system. Then I set "Target" to the ETS system's =
IP
address in the "hosts" file in my Win95 directory (client system).
Unfortunately, I still get the COMM_FAILURE from eg3_clt.exe. The catior
output:
catior =
IOR:012ccb000d00000049444c3a4563686f3a312e3000000000010000000000000024000
000010100000700000054617267657400cd0000cdcd0c0000003565476d00001014000000=
01
Type ID: "IDL:Echo:1.0"
Profiles:
1. IIOP 1.0 Target 0 "5eGm........"
It has the hostname of the ETS system, but not the IP address =
(192.168.0.9). I
can telnet, ping & tracert successfully either to "Target" or the IP =
address
from the Win95 system..
What next?
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
Dave Morgenlender
e-mail: dmorgen@alum.mit.edu
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D