[omniORB] Abort when narrowing the naming context

sandor.kopanyi@essnet.se sandor.kopanyi@essnet.se
Thu, 28 Jun 2001 16:01:58 +0200


Hi,

The code-snippet below aborts with a very laconic error
message: "Aborted"=2E Nothing else=2E=2E=2E

    #initialise the ORB & naming service
    orb =3D CORBA=2EORB_init(sys=2Eargv, CORBA=2EORB_ID)
    obj =3D orb=2Eresolve_initial_references("NameService")
    try:
      rootContext =3D obj=2E_narrow(CosNaming=2ENamingContext)
    except CORBA=2ECOMM_FAILURE:
      print "Failed to access the naming context=2E Sorry=2E=2E=2E"
      print "(hint: is the naming service running?)"
      sys=2Eexit(1)

(The narrowing line causes this)=2E

I run this on a Red Hat Linux 7=2E1 with Python 1=2E5=2E2, omniORBpy
ver=2E 1=2E4 (behaves like this with 1=2E3 too)=2E The naming service
is ORBacus for Java, ver=2E 4=2E0=2E5, with IBM JDK 1=2E3=2E

The same stuff works fine on RedHat 6=2E2, same versions of
Python and omniORBpy and ORBacus (on that we use Sun JDK 1=2E3)=2E

Any ideeas?

Best regards,
Sandor