[omniORB] Abort when resolving initial references (was: Abort when narrowing the naming context)

sandor.kopanyi@essnet.se sandor.kopanyi@essnet.se
Fri, 29 Jun 2001 11:32:09 +0200


Hi,

I use my own config file, pointed by the environment variable:

bash$ echo $OMNIORB_CONFIG
/usr/local/omniORBpy/1=2E4py1=2E5=2E2/config/omniORBpy=2Eini
bash$ cat $OMNIORB_CONFIG
#
# where to find the naming service
#
ORBInitRef NameService=3Dcorbaloc::localhost:2809/NameService
#ORBInitRef NameService=3Dcorbaloc::192=2E168=2E2=2E219:2809/NameService
bash$

Best regards,
Sandor

Koszonom, Attila!

>-----Original Message-----
>From: MIME :Attila=2EPletyak@anemo=2Ecom=20=
>Sent: 2001 June 29, Friday 10:53
>To: Kop=E1nyi S=E1ndor
>Cc: leandro@hasar=2Ecom; omniorb-list@uk=2Eresearch=2Eatt=2Ecom;
>owner-omniorb-list@uk=2Eresearch=2Eatt=2Ecom
>Subject: RE: [omniORB] Abort when resolving initial references (was:
>Abort when narrowing the naming context)
>
>
>
>One interesting point is the name of this config file=2E=20=
>Previously it was
>/etc/omniorb=2Ecfg, but with the new versions of omniORB it became
>/etc/omniORB=2Ecfg=2E It is case sensitive on Linux=2E Do you use it=20=
>like this?
>
>What are the contents of that file?
>
>Sincerely,
>Attila Pletyak
>Anemo Ltd=2E
>Hungary
>mailto:attila=2Epletyak@anemo=2Ecom
>http://www=2Eanemo=2Ecom/
>
>
>
>                    sandor=2Ekopanyi@essnet=2Ese
>                    Sent by:                            To:   =20=
> leandro@hasar=2Ecom
>                    owner-omniorb-list@uk=2Eresear        cc:   =20=
> omniorb-list@uk=2Eresearch=2Eatt=2Ecom
>                    ch=2Eatt=2Ecom                         =20=
>Subject:     RE: [omniORB] Abort when resolving initial=20=
>references (was: Abort
>                                                        when  =20=
>narrowing the naming context)
>
>                    06/29/01 10:20 AM
>
>
>
>
>
>Hi Leandro,
>
>Thanks for the tip, but unfortunately this is not
>the problem=2E I have even tried to comment out everything
>in the config file, with no effect - it seems that is not
>even reading the config file=2E=2E=2E
>
>Best regards,
>Sandor
>
>>-----Original Message-----
>>From: MIME :leandro@hasar=2Ecom >Sent: 2001 June 28, Thursday 20:02
>>To: Kop=E1nyi S=E1ndor
>>Cc: omniorb-list@uk=2Eresearch=2Eatt=2Ecom
>>Subject: Re: [omniORB] Abort when resolving initial references (was:
>>Abort when narrowing the naming context)
>>
>>
>>I was just thinking that perhaps when you reinstalled, you >forgot the
>omniORB=2Ecfg
>>and the ORB is therefore unable to figure out where=20=
>>NameService is=2E That
>is not
>>catched by "except CORBA=2ECOMM_FAILURE"=2E
>>
>>Leandro Fanzone=2E
>>
>>sandor=2Ekopanyi@essnet=2Ese wrote:
>>
>>> Hi Leandro,
>>>
>>> Yes, I've tried it, but just suddendly "dies", without
>>> any traceback=2E The only word on the screen is: Aborted=2E
>>> I don't even know, what is aborted: the Python interpreter?
>>> Some CORBA operation?
>>>
>>> If I comment out the line [obj =3D >orb=2Eresolve_initial_references
>("NameService")],
>>> it complains about not existing object when trying to narrow -
>>> but that's normal :)
>>>
>>> /Sandor
>>>
>>> >-----Original Message-----
>>> >From: MIME :leandro@hasar=2Ecom >Sent: 2001 June 28, Thursday 19:44
>>> >To: Kop=E1nyi S=E1ndor
>>> >Subject: Re: [omniORB] Abort when resolving initial=20=
>references (was:
>>> >Abort when narrowing the naming context)
>>> >
>>> >
>>> >Did you try catching NO_RESOURCES?
>>> >
>>> >Leandro Fanzone
>>> >
>>> >sandor=2Ekopanyi@essnet=2Ese wrote:
>>> >
>>> >> One correction: the resolve_initial_references() causes this,
>>> >> not the narrowing=2E Sorry for the mistake=2E
>>> >>
>>> >> But the Abort is still Abort :(
>>> >>
>>> >> Best regrds,
>>> >> Sandor
>>> >>
>>> >> >-----Original Message-----
>>> >> >From: Kop=E1nyi S=E1ndor >Sent: 2001 June 28, Thursday 16:01
>>> >> >To: 'omniorb-list@uk=2Eresearch=2Eatt=2Ecom'
>>> >> >Subject: Abort when narrowing the naming context
>>> >> >
>>> >> >
>>> >> >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
>>> >> >
>>> >
>>> >
>>> >
>>> >
>>
>>
>>
>>
>
>
>
>
>
>
>
>