[omniORB] Dynamic invocation and example programs

Markus Redeker markus@ibp.de
Fri, 14 Apr 2000 13:23:24 +0200


On Thu, Apr 13, 2000 at 06:54:26PM +0100, David Riddoch wrote:

> So now the DII and DSI examples work together (and of course in
> combination with the static equivalents).  However, please bear in mind
> the problem with DSI on omniORB3 I talked about above.  It could cause you
> problems in other circumstances, and with other ORBs.

Thanks, it is working now. I continue with another bug report:

In echo_dsiimpl.cc, the function MyDynImpl::invoke() contains the exception
handler

  catch(CORBA::SystemException& ex){
    CORBA::Any a;
    a <<= ex;
    request->set_exception(a);
  }

which is intended to send the exception back to the client. 

However, if I change the code so that it raises the exception
CORBA::BAD_OPERATION(0, CORBA::COMPLETED_NO), I get the message "Error:
function to insert the user exception into an Any is not available".
Obviously, the ORB doesn't recognize BAD_OPERATION as a system exception.


Markus