[omniORB] OmniORB connection problem with Orbix3.3
asankama
asankama at hotmail.com
Tue Nov 6 23:06:55 GMT 2007
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.
More information about the omniORB-list
mailing list