[omniORB] Cross platform blues

lou_liz@iafrica.com lou_liz@iafrica.com
Wed, 25 Jul 2001 10:09:42 +0000 (GMT)


Hello,

What am I doing wrong here?  Please help.

- I run omniNames, eg3_impl, eg3_clt on different PC's, all on Win32 platforms, 
and hey, presto, it works!
- I run omniNames, eg3_impl, eg3_clt on the same PC with RH Linux 7.0 (gcc 
2.96), and it still works!
- I run omniNames on a Win32 PC, eg3_impl on another Win32 PC, eg3_clt on a 
Linux PC, and whaddaya know, it works!
- I run omniNames on a Win32 PC, eg3_impl on Linux, end eg3_clt says the 
following (from Linux and/or Win32):
"Caught system exception COMM_FAILURE -- unable to contact the naming service"
- I run omniNames from a Linux PC, eg3_impl from another Linux PC, and eg3_clt 
says the same thing (from Linux and/or Win32)
- I run omniNames from a Linux PC, eg3_impl from Win32, and I get the same 
error.

Setting ORBtraceLevel 25 gives the following:

omniORB: strand Rope::incrRefCount: old value = 0
omniORB: Creating ref to remote: key<0x494e4954>
 target id      : IDL:omg.org/CORBA/Object:1.0
 most derived id: omg.org/CORBA/InitialReferences:1.0
omniORB: The omniDynamic library is not linked.
omniORB: Initialising incoming rope factories.
omniORB: strand Ripper: start.
omniORB: scavenger : start.
omniORB: strand Rope::incrRefCount: old value = 0
omniORB: Starting incoming rope factories.
omniORB: Activating: root<0>
omniORB: Creating ref to local: root<0>
 target id      : IDL:Echo:1.0
 most derived id: IDL:Echo:1.0
omniORB: Trying to resolve initial reference `NameService'
 with boot agent: 
IOR:01000000240000006f6d672e6f72672f434f5242412f496e697469616c5265666572656e6365
733a312e3000010000000000000020000000010100000d0000003139322e3136382e302e32350000
f90a04000000494e4954
omniORB: tcpSocketMTfactory Rendezvouser: start.
omniORB: tcpSocketMTfactory Rendezvouser: block on accept()
omniORB: strand Rope::incrRefCount: old value = 0
omniORB: Creating ref to remote: key<0x4e616d6553657276696365>
 target id      : IDL:omg.org/CORBA/Object:1.0
 most derived id: IDL:omg.org/CosNaming/NamingContextExt:1.0
omniORB: Initial reference `NameService' resolved with boot agent.
omniORB: LocateRequest to remote: key<0x4e616d6553657276696365>
omniORB: throw omniConnectionBroken (minor 0) from tcpSocketMTfactory.cc:1103
omniORB: tcpSocketStrand::~Strand() close socket no. 4294967295
omniORB: throw COMM_FAILURE from remoteIdentity.cc:249
Caught system exception COMM_FAILURE -- unable to contact the naming service.
omniORB: Ref to: root<0> -- deleted.

Also: 
- If I modify the constructor as follows:
     Echo_i() {perror("Current status:");}
  I get the following output:
  (Win32) "Current status: No error"
  (Linux) "Current status: Interrupted system call"

Also:
- On Linux only: if I run 'eg3_clt -ORBtraceLevel 25' it runs through and then 
seems to hang until I press Ctrl-C.  If I leave out the '-ORBtraceLevel 25' 
then it returns OK.

Are all these problems related or what?  Maybe i'm linking to the wrong 
libraries on Linux?

Thanks in advance.

Lourens Janse van Rensburg
Systems Engineer
Vizier Systems
Somerset West
South
Africa

---------------------------------------------
This message was sent using M-Web Airmail.
http://airmail.mweb.co.za/