[omniORB] RE: Exception thrown when calling resolve_initial_r eferences

Byerly_John John.Byerly@marconi.com
Mon, 7 Aug 2000 11:25:37 -0500


Here is that trace:

omniORB: Initialising omniDynamic library.
omniORB: Initialising incoming rope factories.
omniORB: strand Ripper: start.
omniORB: scavenger : start.
omniORB: strand Rope::incrRefCount: old value = 0
DLL ScD loaded successfully
DLL OvLSD loaded successfully
omniORB: Activating: boa<0x398ed50a000009e500000001>
omniORB: Creating ref to local: boa<0x398ed50a000009e500000001>
 target id      : IDL:MCORBAEventManager:1.0
 most derived id: IDL:MCORBAEventManager:1.0
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:
omniORB: Initial reference `NameService' resolved from configuration file.
omniORB: scavenger : scanning connections
omniORB: scavenger : scanning connections
omniORB: scavenger : scanning connections
omniORB: scavenger : scanning connections
omniORB: scavenger : scanning connections
omniORB: scavenger : scanning connections
omniORB: throw omniConnectionBroken from tcpSocketMTfactory.cc:1065
omniORB: tcpSocketStrand::~Strand() close socket no. 4294967295
omniORB: throw COMM_FAILURE from remoteIdentity.cc:178
DLL EvMD loaded successfully  *******  This is the DLL that calls
resolve_initial_references()
DLL MC_TestD loaded successfully
DLL HiRD loaded successfully
DLL TmD loaded successfully
omniORB: Activating: boa<0x398ed50a000009e500000002>
omniORB: Creating ref to local: boa<0x398ed50a000009e500000002>
 target id      : IDL:MCORBAUserInterfaceManager:1.0
 most derived id: IDL:MCORBAUserInterfaceManager:1.0
omniORB: Initial reference `NameService' resolved from configuration file.
Searching local machine
omniORB: Activating: boa<0x398ed50a000009e500000003>
Group found
Username: Administrator ()
Username: new1 ()
Username: ELUMALAI (Sankaranarayanan ELUMALAI)
omniORB: Activating: boa<0x398ed50a000009e500000004>
omniORB: Activating: boa<0x398ed50a000009e500000005>
omniORB: scavenger : scanning connections
omniORB: scavenger : scanning connections

> > -----Original Message-----
> > From:	Sai-Lai Lo [SMTP:S.Lo@uk.research.att.com]
> > Sent:	Monday, August 07, 2000 5:48 AM
> > To:	John A. Byerly
> > Cc:	omniorb-list@uk.research.att.com
> > Subject:	Re: Exception thrown when calling 
> > resolve_initial_references
> > 
> > >>>>> John A Byerly writes:
> > 
> > > I am migrating our project from omniORB 2.7.1 to omniORB 
> > 3.0.0.  Our core
> > > code calls resolve_initial_references to get the Naming 
> > service, and then
> > > when a DLL is loaded, the code in the DLL calls 
> > resolve_initial_references
> > > again.  This second call causes an exception to be thrown, 
> > but only after
> > > about 20 - 30 seconds.  This code used to work.
> > 
> > > I traced the problem into the following code 
> > (resolveBootAgent() inside
> > > initRefs.cc).
> > 
> > >       // XXX we will end up in a deadlock if this invocation turns
> > >       //     out to be a chain of invocations and 
> eventually go back
> > >       //     to us.
> > >       if (omniORB::trace(10)) {
> > > 	CORBA::String_var ior(omniURI::objectToString(the_bootagent));
> > > 	omniORB::logger l;
> > > 	l << "Trying to resolve initial reference `" << id << "'\n";
> > > 	l << " with boot agent: " << (const char*)ior << "\n";
> > >       }
> > >       result = the_bootagent->get(id);
> > 
> > > Execution hangs on the last line (for 20 - 30 seconds).
> > 
> > 
> > My guess is you are using ORBInitialHost and ORBInitialPort. 
> > The call is to
> > get in touch with the bootstrapping agent and may be it fails 
> > to connect.
> > 
> > Please run you code with -ORBtraceLevel 30 and send me the output.