<br><font size=2 face="sans-serif">Problem turned out to be the Buffer... which was just a char*... when the resolution is SUCCESSFUL, it is okay... but otherwise it dies... changed it to a CORBA:String_var, and then it works in both cases... weird.</font>
<br>
<br><font size=2 face="sans-serif">Renny Koshy<br>
President & CEO<br>
<br>
--------------------------------------------<br>
RUBIX Information Technologies, Inc.<br>
www.rubixinfotech.com</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>renny.koshy@rubixinfotech.com</b></font>
<br><font size=1 face="sans-serif">Sent by: omniorb-list-bounces@omniorb-support.com</font>
<p><font size=1 face="sans-serif">12/20/2004 06:47 PM</font>
<br>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> To: omniorb-list@omniorb-support.com</font>
<br><font size=1 face="sans-serif"> cc: </font>
<br><font size=1 face="sans-serif"> Subject: [SPAM] [omniORB] catching BAD_PARAM is not working...</font></table>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
On solaris 8, Forte compiler, I have a problem catching BAD_PARAM from omniORB:</font><font size=3 face="Times New Roman"> <br>
<br>
</font><font size=2 face="sans-serif"><br>
The following code is in thrad 'n'... (simplified -- removed all other catch blocks for testing)</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
fprintf(stderr,"%s:%d\n", __FILE__, __LINE__); fflush(stderr); /// this is line 409 in the trace output below</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
try {</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
CORBA::Object_var obj = ORB->string_to_object( Buffer );</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
fprintf(stderr,"%s:%d\n", __FILE__, __LINE__); fflush(stderr);</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
T.SQLAgent = GSQL::SQLAgent::_narrow(obj);</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
fprintf(stderr,"%s:%d\n", __FILE__, __LINE__); fflush(stderr);</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
} catch(CORBA::BAD_PARAM& ex) {</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
<br>
Worker->error("Connection attempt - Caught system exception BAD PARAM -- unable to contact the object.");</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
}</font><font size=3 face="Times New Roman"> <br>
<br>
</font><font size=2 face="sans-serif"><br>
This never seems to catch the BAD_PARAM exception... </font><font size=3 face="Times New Roman"><br>
</font><font size=2 face="sans-serif"><br>
Here's the output:</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
../Database/GenericSQL.cpp:409</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
Run-time exception error; current exception: BAD_PARAM</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
No handler for exception.</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
signal fault in critical section</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
signal number: 11, signal code: 2, fault address: 0xfd802000, pc: 0xfe8da6dc, sp: 0xfdf0dc18</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
libthread panic: fault in libthread critical section : dumping core (PID: 15051 LWP 3)</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
stacktrace:</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
fe8da6c0</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
fe8dd6a0</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
fe8dd730</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
fe8eb01c</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
fe8dd6d8</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
./startgk: line 30: 15051 Segmentation Fault (core dumped) EXSKernel $*</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
Please help!</font><font size=3 face="Times New Roman"><br>
</font><font size=2 face="sans-serif"><br>
Renny Koshy<br>
President & CEO<br>
<br>
--------------------------------------------<br>
RUBIX Information Technologies, Inc.<br>
www.rubixinfotech.com</font><font size=2 face="Courier New">_______________________________________________<br>
omniORB-list mailing list<br>
omniORB-list@omniorb-support.com</font>
<br><font size=2 face="Courier New">http://www.omniorb-support.com/mailman/listinfo/omniorb-list<br>
</font>
<br>
<br>