[omniORB] Problem with command line parameters from omniORB 403
to 407
Stefan Näwe
naewe.s at atlas.de
Wed Jan 18 11:45:39 GMT 2006
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
More information about the omniORB-list
mailing list