[Fwd: AW: [omniORB] Problem with command line parameters from omniORB
403to 407]
Stefan Näwe
naewe.s at atlas.de
Wed Jan 18 12:23:32 GMT 2006
(@janssen.h: Please reply to the list next time and fix your newsreader to use 'Re:' and not 'AW:' .)
-------- Original-Nachricht --------
Betreff: AW: [omniORB] Problem with command line parameters from omniORB 403to 407
Datum: Wed, 18 Jan 2006 12:07:42 +0100
Von: Janssen, Heiko <janssen.h at atlas.de>
An: "Näwe, Stefan" <naewe.s at atlas.de>
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?
-----Ursprüngliche Nachricht-----
Von: omniorb-list-bounces at omniorb-support.com [mailto:omniorb-list-bounces at omniorb-support.com] Im Auftrag von Näwe, Stefan
Gesendet: Mittwoch, 18. Januar 2006 11:46
An: omniorb-list at omniorb-support.com
Betreff: 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
--
----------------------------------------------------------------------
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