[omniORB] OMNIORB 2.8.0: UNKNOWN Exception???

Ismat Dhanjibhai ismat@itmasters.com
Fri, 21 Jan 2000 10:44:20 +0100


This is a multi-part message in MIME format.
--------------1C255177760C2528C8E745EF
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I am new to all this. Environment: NT 4.0 SP6 with VC++ 5.0.
The exception is preventing me from making any further
progress, help!

I am trying to develop a simple app that instantiates a new
object, registers it and sends back the IOR. The client then
is invoked with the IOR and an operation code. The client
then binds to the instance and invokes the right method. All
good so far.

What I am finding is that any of the methods defined is
invoked, the method does what it has to and returns. The
client gets the exception immediately after the call
completes. I have not defined any exceptions in my IDL as my
code does not throw any exceptions. The exception translated
reads:

   CORBA::SystemException caught in (your code location
here): IDL:omg.org/CORBA/UNKNOWN

where the IDL:omg... is the actual exception.

Server method implementation fragment:
===========================

Slot setEquipment (const char *eqp)
{

  Slot myslot;

  myslot.slot = "Slot";
  myslot.underSlot = "UnderSlot";
  myslot.minterface = "minterface";
  myslot.resource = "resource";
  return &myslot;    // returning local address, bad, fix
later
}

client call code
==========


    try {
                     slot = tobj->setEquipment(argv[3]);
    }
    catch(CORBA::COMM_FAILURE& ex) {
      cerr << "Caught system exception COMM_FAILURE, unable
to contact the "
           << "object. getConnectionPoint" << endl;
      return -1;
    }
    catch(omniORB::fatalException& ex) {
      cerr << "Caught omniORB2 fatalException.
getConnectionPoint" << endl;
      return -1;
    }
    catch(CORBA::SystemException& ex){
      cerr << "CORBA::SystemException caught in (your code
location here): "
         << ex.NP_RepositoryId() << endl;
    }


TIA


Ismat


--------------1C255177760C2528C8E745EF
Content-Type: text/x-vcard; charset=us-ascii;
 name="ismat.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Ismat Dhanjibhai
Content-Disposition: attachment;
 filename="ismat.vcf"

begin:vcard 
n:Dhanjibhai;Ismat
tel;fax:+32-16-39-64-74
tel;work:+32-16-39-64-47
x-mozilla-html:TRUE
org:IT Masters
adr:;;;;;;
version:2.1
email;internet:ismat@itmasters.com
fn:Ismat Dhanjibhai
end:vcard

--------------1C255177760C2528C8E745EF--