[omniORB] CORBA::COMM_FAILURE
Michael Keay
MKeay@SeeBeyond.com
Tue, 23 Jan 2001 17:16:11 -0800
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C085A3.3D0A9100
Content-Type: text/plain;
charset="iso-8859-1"
Thanks for the prompt reply.
I have been able to step through my code and I am able to determine the
following.
The server object process is started.
The server object process is terminated when the client side attempts to
invoke the relevant method.
Any ideas?
Mikey
-----Original Message-----
From: Sai-Lai Lo [mailto:S.Lo@uk.research.att.com]
Sent: Tuesday, January 23, 2001 2:44 AM
To: Michael Keay
Cc: omniorb-list@uk.research.att.com
Subject: Re: [omniORB] CORBA::COMM_FAILURE
Here is what happened:
1. ORB starts up and was given "GAPS1" port 7655 to resolve initial
references. It managed to the root naming context from GAPS1.
2. May be a lookup is done to the naming service to get an object reference
of type ZImporter. This also succeeded. Notice that this step is not
shown on the trace. I'm just guessing.
3. The application involves on the ZImporter object. The ORB issues a
locate request. It tries to connect to the remote address space where
the ZImporter resides and failed. A COMM_FAILURE is then raised.
You should check wheter you indeed have a ZImporter object running somewhere
and it has been registered with the naming service.
Sai-Lai
>>>>> Michael Keay writes:
> Further to this e-mail I was able to switch on tracing an extrapolate the
> following information
> 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: Initialising omniDynamic library.
> omniORB: Trying to resolve initial reference `NameService'
> with boot agent:
>
IOR:01000000240000006f6d672e6f72672f434f5242412f496e697469616c5265666572656e
>
6365733a312e30000100000000000000180000000101000006000000474150533100e71d0400
> 0000494e4954
> omniORB: strand Ripper: start.
> omniORB: scavenger : start.
> 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: strand Rope::incrRefCount: old value = 0
> omniORB: Creating ref to remote: boa<0x3a6cc44d905f85c600000002>
> target id : IDL:omg.org/CORBA/Object:1.0
> most derived id: IDL:ZImporter:1.0
> omniORB: LocateRequest to remote: boa<0x3a6cc44d905f85c600000002>
> omniORB: throw omniConnectionBroken from tcpSocketMTfactory.cc:1067
> omniORB: tcpSocketStrand::~Strand() close socket no. 208
> omniORB: defaultTransientExceptionHandler: retry 0th times.
> omniORB: throw omniConnectionBroken from tcpSocketMTfactory.cc:1091
> omniORB: tcpSocketStrand::~Strand() close socket no. 4294967295
> omniORB: throw COMM_FAILURE from remoteIdentity.cc:181
> omniORB: Preparing to shutdown ORB.
> omniORB: Deinitialising omniDynamic library.
> omniORB: omniRemoteIdentity deleted.
> omniORB: strand Rope::decrRefCount: old value = 1
> omniORB: ObjRef(omg.org/CORBA/InitialReferences:1.0) -- deleted.
> omniORB: scavenger : woken by poke()
> omniORB: scavenger : exit.
> omniORB: strand Ripper: exit.
> omniORB: ORB shutdown is complete.
> omniORB: No more references to the ORB -- deleted.
> Can anyone explain what we is going on here?
> -----Original Message-----
> From: Michael Keay [mailto:MKeay@SeeBeyond.com]
> Sent: Monday, January 22, 2001 3:03 PM
> To: Omniorb-List@Uk. Research. Att. Com (E-mail)
> Subject: [omniORB] CORBA::COMM_FAILURE
> We have been working on a project, to connect to a thirdparty system. We
are
> getting a COMM_FAILURE exception when trying to invoke a method on an
object
> reference. But we do have a valid object reference. Yet, when we use the
> supplied, sample client, everything works fine. Does, anyone have any idea
> why we would experience such an exception?
> I have read the manual that comes with omni orb and it suggests to keep
> retrying, but this does not explain what is happening, each and everytime.
> Server on Solaris, client on NT, using omniorb 3.0.1
> Mikey
--
Sai-Lai Lo S.Lo@uk.research.att.com
AT&T Laboratories Cambridge WWW: http://www.uk.research.att.com
24a Trumpington Street Tel: +44 1223 343000
Cambridge CB2 1QA Fax: +44 1223 313542
ENGLAND
------_=_NextPart_001_01C085A3.3D0A9100
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [omniORB] CORBA::COMM_FAILURE</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Thanks for the prompt reply.</FONT>
</P>
<P><FONT SIZE=2>I have been able to step through my code and I am able to determine the following.</FONT>
</P>
<P><FONT SIZE=2>The server object process is started.</FONT>
<BR><FONT SIZE=2>The server object process is terminated when the client side attempts to invoke the relevant method.</FONT>
</P>
<P><FONT SIZE=2>Any ideas?</FONT>
</P>
<P><FONT SIZE=2>Mikey</FONT>
<BR><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Sai-Lai Lo [<A HREF="mailto:S.Lo@uk.research.att.com">mailto:S.Lo@uk.research.att.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Tuesday, January 23, 2001 2:44 AM</FONT>
<BR><FONT SIZE=2>To: Michael Keay</FONT>
<BR><FONT SIZE=2>Cc: omniorb-list@uk.research.att.com</FONT>
<BR><FONT SIZE=2>Subject: Re: [omniORB] CORBA::COMM_FAILURE</FONT>
</P>
<BR>
<P><FONT SIZE=2>Here is what happened:</FONT>
</P>
<P><FONT SIZE=2>1. ORB starts up and was given "GAPS1" port 7655 to resolve initial</FONT>
<BR><FONT SIZE=2> references. It managed to the root naming context from GAPS1.</FONT>
</P>
<P><FONT SIZE=2>2. May be a lookup is done to the naming service to get an object reference</FONT>
<BR><FONT SIZE=2> of type ZImporter. This also succeeded. Notice that this step is not</FONT>
<BR><FONT SIZE=2> shown on the trace. I'm just guessing.</FONT>
</P>
<P><FONT SIZE=2>3. The application involves on the ZImporter object. The ORB issues a</FONT>
<BR><FONT SIZE=2> locate request. It tries to connect to the remote address space where</FONT>
<BR><FONT SIZE=2> the ZImporter resides and failed. A COMM_FAILURE is then raised.</FONT>
</P>
<P><FONT SIZE=2>You should check wheter you indeed have a ZImporter object running somewhere</FONT>
<BR><FONT SIZE=2>and it has been registered with the naming service.</FONT>
</P>
<P><FONT SIZE=2>Sai-Lai</FONT>
</P>
<P><FONT SIZE=2>>>>>> Michael Keay writes:</FONT>
</P>
<P><FONT SIZE=2>> Further to this e-mail I was able to switch on tracing an extrapolate the</FONT>
<BR><FONT SIZE=2>> following information</FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2>> omniORB: strand Rope::incrRefCount: old value = 0</FONT>
<BR><FONT SIZE=2>> omniORB: Creating ref to remote: key<0x494e4954></FONT>
<BR><FONT SIZE=2>> target id : IDL:omg.org/CORBA/Object:1.0</FONT>
<BR><FONT SIZE=2>> most derived id: omg.org/CORBA/InitialReferences:1.0</FONT>
<BR><FONT SIZE=2>> omniORB: Initialising omniDynamic library.</FONT>
<BR><FONT SIZE=2>> omniORB: Trying to resolve initial reference `NameService'</FONT>
<BR><FONT SIZE=2>> with boot agent:</FONT>
<BR><FONT SIZE=2>> IOR:01000000240000006f6d672e6f72672f434f5242412f496e697469616c5265666572656e</FONT>
<BR><FONT SIZE=2>> 6365733a312e30000100000000000000180000000101000006000000474150533100e71d0400</FONT>
<BR><FONT SIZE=2>> 0000494e4954</FONT>
<BR><FONT SIZE=2>> omniORB: strand Ripper: start.</FONT>
<BR><FONT SIZE=2>> omniORB: scavenger : start.</FONT>
<BR><FONT SIZE=2>> omniORB: strand Rope::incrRefCount: old value = 0</FONT>
<BR><FONT SIZE=2>> omniORB: Creating ref to remote: key<0x4e616d6553657276696365></FONT>
<BR><FONT SIZE=2>> target id : IDL:omg.org/CORBA/Object:1.0</FONT>
<BR><FONT SIZE=2>> most derived id: IDL:omg.org/CosNaming/NamingContextExt:1.0</FONT>
<BR><FONT SIZE=2>> omniORB: Initial reference `NameService' resolved with boot agent.</FONT>
<BR><FONT SIZE=2>> omniORB: LocateRequest to remote: key<0x4e616d6553657276696365></FONT>
<BR><FONT SIZE=2>> omniORB: strand Rope::incrRefCount: old value = 0</FONT>
<BR><FONT SIZE=2>> omniORB: Creating ref to remote: boa<0x3a6cc44d905f85c600000002></FONT>
<BR><FONT SIZE=2>> target id : IDL:omg.org/CORBA/Object:1.0</FONT>
<BR><FONT SIZE=2>> most derived id: IDL:ZImporter:1.0</FONT>
<BR><FONT SIZE=2>> omniORB: LocateRequest to remote: boa<0x3a6cc44d905f85c600000002></FONT>
<BR><FONT SIZE=2>> omniORB: throw omniConnectionBroken from tcpSocketMTfactory.cc:1067</FONT>
<BR><FONT SIZE=2>> omniORB: tcpSocketStrand::~Strand() close socket no. 208</FONT>
<BR><FONT SIZE=2>> omniORB: defaultTransientExceptionHandler: retry 0th times.</FONT>
<BR><FONT SIZE=2>> omniORB: throw omniConnectionBroken from tcpSocketMTfactory.cc:1091</FONT>
<BR><FONT SIZE=2>> omniORB: tcpSocketStrand::~Strand() close socket no. 4294967295</FONT>
<BR><FONT SIZE=2>> omniORB: throw COMM_FAILURE from remoteIdentity.cc:181</FONT>
<BR><FONT SIZE=2>> omniORB: Preparing to shutdown ORB.</FONT>
<BR><FONT SIZE=2>> omniORB: Deinitialising omniDynamic library.</FONT>
<BR><FONT SIZE=2>> omniORB: omniRemoteIdentity deleted.</FONT>
<BR><FONT SIZE=2>> omniORB: strand Rope::decrRefCount: old value = 1</FONT>
<BR><FONT SIZE=2>> omniORB: ObjRef(omg.org/CORBA/InitialReferences:1.0) -- deleted.</FONT>
<BR><FONT SIZE=2>> omniORB: scavenger : woken by poke()</FONT>
<BR><FONT SIZE=2>> omniORB: scavenger : exit.</FONT>
<BR><FONT SIZE=2>> omniORB: strand Ripper: exit.</FONT>
<BR><FONT SIZE=2>> omniORB: ORB shutdown is complete.</FONT>
<BR><FONT SIZE=2>> omniORB: No more references to the ORB -- deleted.</FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2>> Can anyone explain what we is going on here?</FONT>
</P>
<P><FONT SIZE=2>> -----Original Message-----</FONT>
<BR><FONT SIZE=2>> From: Michael Keay [<A HREF="mailto:MKeay@SeeBeyond.com">mailto:MKeay@SeeBeyond.com</A>]</FONT>
<BR><FONT SIZE=2>> Sent: Monday, January 22, 2001 3:03 PM</FONT>
<BR><FONT SIZE=2>> To: Omniorb-List@Uk. Research. Att. Com (E-mail)</FONT>
<BR><FONT SIZE=2>> Subject: [omniORB] CORBA::COMM_FAILURE</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>> We have been working on a project, to connect to a thirdparty system. We are</FONT>
<BR><FONT SIZE=2>> getting a COMM_FAILURE exception when trying to invoke a method on an object</FONT>
<BR><FONT SIZE=2>> reference. But we do have a valid object reference. Yet, when we use the</FONT>
<BR><FONT SIZE=2>> supplied, sample client, everything works fine. Does, anyone have any idea</FONT>
<BR><FONT SIZE=2>> why we would experience such an exception?</FONT>
</P>
<P><FONT SIZE=2>> I have read the manual that comes with omni orb and it suggests to keep</FONT>
<BR><FONT SIZE=2>> retrying, but this does not explain what is happening, each and everytime.</FONT>
</P>
<P><FONT SIZE=2>> Server on Solaris, client on NT, using omniorb 3.0.1 </FONT>
</P>
<P><FONT SIZE=2>> Mikey </FONT>
</P>
<BR>
<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Sai-Lai Lo S.Lo@uk.research.att.com</FONT>
<BR><FONT SIZE=2>AT&T Laboratories Cambridge WWW: <A HREF="http://www.uk.research.att.com" TARGET="_blank">http://www.uk.research.att.com</A> </FONT>
<BR><FONT SIZE=2>24a Trumpington Street Tel: +44 1223 343000</FONT>
<BR><FONT SIZE=2>Cambridge CB2 1QA Fax: +44 1223 313542</FONT>
<BR><FONT SIZE=2>ENGLAND</FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C085A3.3D0A9100--