Discussion:
[omniORB] OmniORB connection problem with Orbix3.3
asankama
2007-11-07 13:06:42 UTC
Permalink
We are using Orbix 3.3.9 with OmniORB4.1 and facing the following problem.
Initially we were using JavaIDL to connect with Orbix3.3.x and everything
did work fine with us. With JavaIDL we did use the following Object URL
?corbaloc:iiop:rcapl-vm-ws3e02:1570/:\\rcapl-vm-ws3e02:NS:root::IFR:CosNaming_NamingContext_?.

Please note that Orbix server is running at rcapl-vm-ws3e02 and my Orbix
client running at rcapl-dt-eng001.

We did change our application architecture and made a technology decision to
move the CORBA client to C++ and chose OmniOREB4.1 CORBA implementation.

My Client code is as follows.
CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
CORBA:Object_var obj = orb->resolve_initial_references("OmniNameService");
assert (!CORBA::is_nil(obj.in()));
CosNaming::NamingContext_var nc = CosNaming::NamingContext::_narrow(obj);
assert (!CORBA::is_nil(nc.in()));

Note: Client refer the omniORB.cfg entry OmniNameServices entry to pick the
initial reference with the Object URL.

First I used the Object URL that worked with JavaIDL

InitRef =
OmniNameService=corbaloc:iiop:rcapl-vm-srv002:1570/:\\rcapl-vm-srv002:NS:root::IFR:CosNaming_NamingContext_

Omni Client Output :
omniORB: ORB_init failed: Bad parameter
(OmniNameService=corbaloc:iiop:rcapl-vm-srv002:1570/:\\rcapl-vm-srv002:NS:root::IFR:CosNaming_NamingContext_)
for ORB configuration option InitRef, reason: Invalid argument, expect
<ObjectID>=<ObjectURI>
Caught CORBA::SystemException.INITIALIZE

Orbix Server Output :
Nothing get printed in Orbix Server console (I think it didn?t create a IIOP
connection with the server)

Then I did change the Object URL

InitRef = OmniNameService=corbaloc:iiop:rcapl-vm-ws3e02:1570/NameService

Omni Client Output :
Caught CORBA::SystemException.BAD_OPERATION

Orbix Server Output :
[orbixd:New IIOP Connection (rcapl-dt-eng001.rcapl.com:1570) ]
[orbixd:Processing Server Details request : //_is_a() ]
[orbixd:Error in implementation repository ]
[orbixd:End of IIOP Connection (rcapl-dt-eng001.rcapl.com:1570) ]
--
View this message in context: http://www.nabble.com/OmniORB-connection-problem-with-Orbix3.3-tf4762524.html#a13620883
Sent from the OmniORB - User mailing list archive at Nabble.com.
Duncan Grisby
2007-11-07 18:12:02 UTC
Permalink
On Tuesday 6 November, asankama wrote:

[...]
Post by asankama
First I used the Object URL that worked with JavaIDL
InitRef =
OmniNameService=corbaloc:iiop:rcapl-vm-srv002:1570/:\\rcapl-vm-srv002:NS:root::IFR:CosNaming_NamingContext_
omniORB: ORB_init failed: Bad parameter
(OmniNameService=corbaloc:iiop:rcapl-vm-srv002:1570/:\\rcapl-vm-srv002:NS:root::IFR:CosNaming_NamingContext_)
for ORB configuration option InitRef, reason: Invalid argument, expect
<ObjectID>=<ObjectURI>
The corbaloc URI is invalid because backslashes are not permitted. You
need to encode them as %5c. The following corbaloc URI will work
(assuming that that is indeed the correct object key):

corbaloc:iiop:rcapl-vm-srv002:1570/:%5c%5crcapl-vm-srv002:NS:root::IFR:CosNaming_NamingContext_

Cheers,

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
Loading...