[omniORB] Problem with command line parameters from omniORB 403to 407

janssen.h at atlas.de janssen.h at atlas.de
Wed Jan 18 12:31:56 GMT 2006


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?

-----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 11:46 AM
To: omniorb-list at omniorb-support.com
Subject: Re: [omniORB] Problem with command line parameters from omniORB 403to 407

janssen.h at atlas.de schrieb:
> 
> 
> Hello all,
> 
>  
> 
> I have a problem with the command line parameters between omniORB 403
> and 407. The following source code extraction should help to understand
> what my problem is:
> 
>  
> 
> 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);
> 
>  
> 
> I use the following command line parameters for omniORB 403 and it works
> properly:
> 
> -ORBInitRef NameService=corbaloc::192.168.0.42:10001/NameService
> -ORBendPoint giop:tcp:192.168.0.42:10001 -ORBgiopMaxMsgSize 50000000
> 
>  
> 
> When I try these parameters in omniORB 407 I get an error in line 08.
> The method _narrow doesn't work no longer.

Would you mind to tell us what kind of error you get ?
And a trace with '-ORBtraceLevel X' (X >= 5) would help, too.

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