[omniORB] Problem with command line parameters from omniORB 403to407

janssen.h at atlas.de janssen.h at atlas.de
Wed Jan 18 13:36:32 GMT 2006


Hi,
I have another question, which could help to solve the problem. I use the following command line parameters:

Test.exe o -ORBInitRef NameService=corbaloc::192.168.0.42:10001/NameService -ORBendPoint giop:tcp:192.168.0.42:10001 -ORBgiopMaxMsgSize 50000000

I'm not sure what the option -ORBendPoint giop:tcp:...:10001 does, I just take these parameters from the existent project.

Has the port 10001 from the NameService to be equal with the port from this giop option?

Thanks for your patience

-----Original Message-----
From: omniorb-list-bounces at omniorb-support.com [mailto:omniorb-list-bounces at omniorb-support.com] On Behalf Of Näwe, Stefan
Sent: Wednesday, January 18, 2006 12:40 PM
To: omniorb-list at omniorb-support.com
Subject: Re: [omniORB] Problem with command line parameters from omniORB 403to407

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


_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list






More information about the omniORB-list mailing list