[omniORB] Problem with OmniORBPy on AIX

Pierre LAFRAISE pierre.lafraise at dassault-aviation.fr
Tue Aug 26 20:01:16 BST 2003


Hello,

I have a problem with OmniORBPy on OmniORB 4.0.2 with Python 2.2 on AIX
with ORB Initialisation.
The following code does not work fine on AIX 4.3.3. But it works on
Linux and on IRIX.

Moreover, the problem does not occur with C++ example using ORBInit.

Python code :
-------------
from omniORB import CORBA
from omniORB import _omnipy
try:
    print "CORBA.ORB_ID =",CORBA.ORB_ID
    orb = ORB(sys.argv, CORBA.ORB_ID)
except Exception,e:
    print ""
    print "Problem in Initalisation : "+str(e)
    traceback.print_exc()
    print ""

Execution prints :
-------------------
CORBA.ORB_ID = omniORB4
omniORB: Configuration file "/etc/omniORB.cfg" either does not exist or
is not a file. No settings read.
omniORB: ORB_init failed: unknown option (id) in argument
omniORB: throw INITIALIZE from corbaOrb.cc:571
(NO,INITIALIZE_InvalidORBInitArgs)

Problem in Initalisation : Minor: INITIALIZE_InvalidORBInitArgs,
COMPLETED_NO.
Traceback (most recent call last):
  File "/shome/scdtnlp/TESTSOUTILS/OmniORB/src/orbinit.py", line 36, in
?  orb = ORB(sys.argv, CORBA.ORB_ID)
  File "/shome/scdtnlp/TESTSOUTILS/OmniORB/src/orbinit.py", line 18, in
__init__
    _omnipy.ORB_init(self, argv, orb_identifier)
INITIALIZE: Minor: INITIALIZE_InvalidORBInitArgs, COMPLETED_NO.

It seems the problem come from :
Extract of _omnipy.ORB_init (in omnipy.cc) :
-------------------------------------------
line 461 :
CORBA::ORB_ptr orb;
try {
    orb = CORBA::ORB_init(argc, argv, orbid);
}
OMNIPY_CATCH_AND_HANDLE_SYSTEM_EXCEPTIONS

Extract of CORBA::ORB_init (in corbaOrb.cc) :
-------------------------------------------
line 548 :

    if ( orb_identifier && strlen(orb_identifier) ) {
      option_source = option_src_3;
      orbOptions::singleton().addOption("id",orb_identifier);
    }

Extract of OrbOptions.addOption (in OrbOptions.cc) :
-------------------------------------------
line 548 :

  orbOptions::Handler* handler = findHandler(key);
  if (!handler) throw orbOptions::Unknown(key,value);


So the problem should be that findHandler return 0. But it is not
supposed to do it.
The same problem occurs when using a configuration file (it works on C++
but not in Python).

Has anyone already used OmniORBPy with AIX 4.3.3. ?
Is there a bug in this initialisation ?

Thanks,
Pierre




  Pierre Lafraise
  Dassault Aviation
                    <pierre.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pierre.lafraise.vcf
Type: text/x-vcard
Size: 271 bytes
Desc: Carte pour Pierre LAFRAISE
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20030826/4d485bdc/pierre.lafraise-0001.vcf


More information about the omniORB-list mailing list