[omniORB] Object reference Nil
Duncan Grisby
duncan at grisby.org
Fri Aug 29 16:56:19 BST 2003
On Thursday 28 August, Rama wrote:
> I am not sure why this happens
> when i set the InitRef in OmniOrb.cfg
>
> InitRef=corbaname::SERVERIP:PORT/NameService#vts/soa/ConnectionFactory/1966
> OR
> InitRef=corbaname::SEVERIP:PORT
These should be
InitRef = NameService=corbaname::SEVERIP:PORT
> OR when i call
> CORBA::Object_ptr obj=orb->string_to_object("corbaname::SERVERIP:PORT/NameService#vts/soa/ConnectionFactory/1966")
>
> I always get a COMM_FAILURE error
I don't know why that is. What does the trace of the client with
traceLevel 40 say?
> But when i run the OmniNames with the above settings and then copy
> the IOR string generated on my DOS output to the OmniOrb.cfg file
> and comment the previous Initref value with this new IOR i dont get
> any COMM_FAILURE ERROR, i can see from the trace that i am able to
> connect to the server, but my OBJECT REFERENCE is always NIL while
> narrowing the context to the factory object.
That's because you are trying to narrow the naming context to your
factory interface. You need to resolve your factory in the naming
service.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
More information about the omniORB-list
mailing list