Discussion:
[omniORB] Exceptions in interceptors
Gideon Guillen
2006-08-01 18:07:08 UTC
Permalink
Is it allowed to throw a custom exception from serverReceiveRequest interceptor?

For example, I have the following defined from an IDL:

exception CustomException (
string someMessage;
);

And for example the interceptor:

CORBA::Bool receiveRequestInterceptor(...) {
....

CustomException ex;
ex._raise();

...
}

Is this allowed? I seem to be getting the following message on the server side:

omniORB: Assertion failed. This indicates a bug in the application using
omniORB, or maybe in omniORB itself.
file: GIOP_S.cc
line: 432
info: calldescriptor() != 0
omniORB: omniORB fatalException caught by a server thread at
GIOP_S.cc: line 432, message: calldescriptor() != 0


And the client seems to freeze because the server seems to be trapped
in an infnite loop on GIOP_S.cc:432.
--
Gideon N. Guillen
***@gmail.com
Duncan Grisby
2006-08-03 22:04:52 UTC
Permalink
Post by Gideon Guillen
Is it allowed to throw a custom exception from serverReceiveRequest
interceptor?
No, it's not. It is, however, a bit of a bug that doing so causes an
assertion failure and a loop.

Cheers,

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
Loading...