[omniORB] Getting Exception when accessing IFR of Orbix 2.3 from omniORB2_2.8pre2

Duncan Grisby dgrisby@uk.research.att.com
Tue, 07 Sep 1999 10:22:21 +0100


On Tuesday 7 September, "Dejan Polomcic" wrote:

> Getting an unknown Exception when trying to access IFR(Interface
> Repository)  of Orbix 2.3 MT

[...]

>         catch (...) {
>                 cout << "Binding Failed .... Unknown Exception" << endl;
>         }
> }

The chances are that you aren't actually getting the CORBA::UNKNOWN
exception, but one of the other CORBA system exceptions. To get more
useful reporting, you can do the following:

  catch (CORBA::SystemException& ex) {
    cerr << "System exception: " << ex.NP_RepositoryId() << endl;
  }

It will print out the repository id of the exception you got, like

 System exception: IDL:omg.org/CORBA/OBJECT_NOT_EXIST

for example. This is, of course, omniORB specific.

It might help you track down the problem. As Sai-Lai has already said,
it's probably Orbix failing to understand the _is_a() call.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --