[omniORB] omniORB4 config file options show up as invalid

Chris McClimans omniorb@mcclimans.net
Tue, 19 Feb 2002 12:32:35 -0600


This is a CVS build from last night, I poked around in orbOptionsFile.cc
for a while, but I'm a python guy. Does anyone see something obvious?

$ set | grep OMNIORB_CONFIG
OMNIORB_CONFIG=/tmp/omniORB.cfg

$ cat /tmp/omniORB.cfg
ORBInitRef NameService=corbaname::localhost:12345

$ python

Python 2.1.1 (#6, Sep 23 2001, 16:28:41) 
[GCC 2.95.2 20000220 (Debian GNU/Linux)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import omniORB
>>> orb = omniORB.CORBA.ORB_init()
omniORB: ORB_init failed: unknown option (ORBInitRef NameService) in configuration file
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/home/chris/omnipy/src-cvs/lib/python/CORBA.py", line 423, in ORB_init
    sys.modules["CORBA"] = omniORB.CORBA
  File "/home/chris/omnipy/src-cvs/lib/python/CORBA.py", line 433, in __init__
    sys.modules["CORBA"] = omniORB.CORBA
omniORB.CORBA.INITIALIZE: Minor: INITIALIZE_InvalidORBInitArgs, COMPLETED_NO.
>>> ^D

// after unseting the config file variable and manually passing the args
// to ORB_init() it works (same args as the file)
$ unset OMNIORB_CONFIG

$ python -ORBInitRef NameSerice=corbaname::localhost:12345

Python 2.1.1 (#6, Sep 23 2001, 16:28:41) 
[GCC 2.95.2 20000220 (Debian GNU/Linux)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import omniORB
>>> orb = omniORB.CORBA.ORB_init(['ORBInitRef','NameSerice=corbaname::localhost:12345'] )
>>> #Success