[omniORB] Exception problems
Matthew Berry
mberry@mweb.co.za
Fri, 19 Jan 2001 14:20:11 +0200
Within my IDL file I have a number of exceptions defined, having added
"unexpectedResult" this morning.
....
// Exceptions
exception dbOutputFailed {};
exception unknownProduct {};
exception undefinedError {};
exception unexpectedResult {};
In my server code, I am throw an exception like:
throw CTP::unexpectedResult()
but on my client I get a SystemException.
I ORB trace from the server looks like:
ll_send: 68 bytes
4749 4f50 0100 0101 3800 0000 0000 0000 GIOP....8.......
0200 0000 0200 0000 1e00 0000 4944 4c3a ............IDL:
6f6d 672e 6f72 672f 434f 5242 412f 554e omg.org/CORBA/UN
4b4e 4f57 4e3a 312e 3000 0000 0000 0000 KNOWN:1.0.......
0200 0000 ....
If I change the line to
throw CTP::undefinedError()
Everthing works fine, the tracing being
ll_send: 68 bytes
4749 4f50 0100 0101 3800 0000 0000 0000 GIOP....8.......
0200 0000 0100 0000 2800 0000 4944 4c3a ........(...IDL:
6272 6f6e 6572 2e63 6f2e 756b 2f43 5450 broner.co.uk/CTP
2f75 6e64 6566 696e 6564 4572 726f 723a /undefinedError:
312e 3000 1.0.
I tried renaming "unexpectedResult" to "badAnswerFromON" and I still get the
SystemException.
Any ideas on what's/where I am going wrong.
Configuration: 2.80 / RH 6.2 / gcc 2.91.66