[omniORB] invocation of a method fails.

Rajshekhar Kishtaiah Chintapalli rajshekhar.chintapalli@wipro.com
Wed, 27 Jun 2001 10:54:18 +0530


Thanks Duncan,

I didn't activate the POA in the Client, and that was the problem. (I am
writing Call back program).

One more Problem.

I store the ObjectRef of the Callback client using
CORBA::ULong PutIFace(IAFace_ptr aface);
Now how to get back this object reference , when  some other client makes a
call to the server askign for the reference of the first client.
I want some function like
	CORBA::ULong GetIFace(....) so that what ever is returned the second client
can use it.

In the  IDL i have declared the method as
unsigned long GetIFace(out IAFace aFace);

The correspoding signature thats generated on compilation of IDL is
something like this.
	GetIFace(_CORBA_ObjRef_OUT_arg< _objref_IAFace, IAFace_Helper > aFace)

How to go about implementing this?
Basically what i want is that all the clients that come up regiseter
themself  with the Server.
Also the clients will be querying the Server to return the Reference of some
other Client.

how to go about doing this..

Thanks and Regards
Raj





-----Original Message-----
From: dpg1@uk.research.att.com [mailto:dpg1@uk.research.att.com]On
Behalf Of Duncan Grisby
Sent: Tuesday, June 26, 2001 9:27 PM
To: Rajshekhar Kishtaiah Chintapalli
Cc: omniorb-list@uk.research.att.com
Subject: Re: [omniORB] invocation of a method fails.


On Monday 25 June, "Rajshekhar Kishtaiah Chintapalli" wrote:

> When the client calls a method on the object using the Object reference of
> the object the call simply hangs.
> Upon further investigation it hangs on the invoke() function in the
> generated .cpp(.cc) files.
> Both the client and the server are running on the same machine.

Perhaps you have forgotten to activate the POA in the server program?
If that isn't the problem, try running both programs with command
lines -ORBtraceLevel 30, and see what gets printed out.

Cheers,

Duncan.

--
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --