[omniORB] Problem with command line parameters from omniORB 403to
407
Stefan Näwe
naewe.s at atlas.de
Wed Jan 18 12:39:33 GMT 2006
janssen.h at atlas.de schrieb:
> Thanks for your tip '-ORBtraceLevel X', now I get the following errors:
>
> omniORB: Initial reference `NameService' resolved from -ORBInitRef argument / ORB registration.
> omniORB: throw OBJECT_NOT_EXIST from inProcessIdentity.cc:179 (NO,OBJECT_NOT_EXIST_NoMatch)
> omniORB: throw OBJECT_NOT_EXIST from omniObjRef.cc:780 (NO,OBJECT_NOT_EXIST_NoMatch)
>
> But, what does this mean? Is the object in line 03 not correct or is the error in the NamingService?
>
>> 01 CORBA::ORB_ptr orb = CORBA::ORB_init(argc, argv);
>>
>> 02 CORBA::Object_var obj = orb->resolve_initial_references("RootPOA");
>>
>> 03 PortableServer::POA_var poa = PortableServer::POA::_narrow(obj);
>>
>> 04 Test *myTest = new Test();
>>
>> 05 PortableServer::ObjectId_var myID = poa->activate_object(myTest);
>>
>> 06 SocketTestInterface_var myTestRef = myTest->_this();
>>
>> 07 obj = orb->resolve_initial_references("NameService");
>>
>> 08 CosNaming::NamingContextExt_var initial_ctx =
>> CosNaming::NamingContextExt::_narrow(obj);
Is this really all the code that gets executed ?
What is 'Test' (especially: What is Test::Test doing) ?
Does it work when you don't create your Test object (i.e. only init.,
get POA, get NameService) ?
>> -ORBInitRef NameService=corbaloc::192.168.0.42:10001/NameService
>> -ORBendPoint giop:tcp:192.168.0.42:10001 -ORBgiopMaxMsgSize 50000000
Your object and the NameService run on the same port 10001 ??
Stefan
--
----------------------------------------------------------------------
Stefan Naewe ATLAS Elektronik GmbH
Dept.: NUS T4
phone: +49-(0)421-457-1378 Sebaldsbruecker Heerstr. 235
fax: +49-(0)421-457-3913 28305 Bremen
More information about the omniORB-list
mailing list