<DIV><PRE>I am getting a CORBA::SystemException from my client.</PRE><PRE>In my console I see this output&nbsp;<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></PRE><PRE>omniORB: Configuration file "C:\\OMNIORB.CFG" either does not exist or<o:p></o:p></PRE><PRE>is not a<o:p></o:p></PRE><PRE>file. No settings read.<o:p></o:p></PRE><PRE>omniORB: Distribution date: Thu Aug<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>7 00:54:21 BST 2003 dgrisby<o:p></o:p></PRE><PRE>omniORB: Information: the omniDynamic library is not linked.<o:p></o:p></PRE><PRE>omniORB: Creating ref to remote: root&lt;67108864&gt;<o:p></o:p></PRE><PRE> target id<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>: IDL:omg.org/CORBA/Object:1.0<o:p></o:p></PRE><PRE> most derived id: IDL:YieldCurve:1.0<o:p></o:p></PRE><PRE>omniORB: LocateRequest to remote: root&lt;67108864&gt;<o:p></o:p></PRE><PRE>omniORB: AsyncInvoker: thread id = 1 has started. Total threads =
 1<o:p></o:p></PRE><PRE>omniORB: throw giopStream::CommFailure from<o:p></o:p></PRE><PRE>giopStream.cc:1061(0,NO,TRANSIENT_Co<o:p></o:p></PRE><PRE>nnectFailed)<o:p></o:p></PRE><PRE>Caught a CORBA::SystemException.<o:p></o:p></PRE><PRE>&nbsp;<o:p></o:p></PRE><PRE>What does that mean? How can I get this to work?<o:p></o:p></PRE><PRE>Did I not install omniorb correct? I never ran the samle.reg file.<o:p></o:p></PRE><PRE>The simple echo sample works well with all the examples.<o:p></o:p></PRE><PRE>I am using omniorb 4.0.2, Visual Studio 6 SP6 and Windows 2K SP4.<o:p></o:p></PRE><PRE>&nbsp;<o:p></o:p></PRE><PRE>I made my own version of eg2_clt.cpp that calls another idl interface.<o:p></o:p></PRE><PRE>&nbsp;<o:p></o:p></PRE><PRE>idl file <o:p></o:p></PRE><PRE>interface YieldCurve {<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>exception Reject{ long Code; string Reason; };<o:p></o:p></PRE><PRE>&nbsp;<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun:
 yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>typedef struct s_CrvDef<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>{<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>... &lt; removed some code &gt;<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>} CrvDef;<o:p></o:p></PRE><PRE>&nbsp;<o:p></o:p></PRE><PRE>&nbsp;<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>void getCrvDef(out CrvDef curvedef, in string env, in string<o:p></o:p></PRE><PRE>currency) raises (Reject);<o:p></o:p></PRE><PRE><SPAN style="COLOR: #660066">};</SPAN><o:p></o:p></PRE><PRE>&nbsp;<o:p></o:p></PRE><PRE>Client source code<o:p></o:p></PRE><PRE>int main(int argc, char** argv)<o:p></o:p></PRE><PRE>{<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>try {<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;
 </SPAN>CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);<o:p></o:p></PRE><PRE>&nbsp;<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>if( argc != 2 ) {<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>cerr &lt;&lt; "usage:<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>eg2_clt &lt;object reference&gt;" &lt;&lt; endl;<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>return 1;<o:p></o:p></PRE><PRE><SPAN style="COLOR: #660066"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>}</SPAN><o:p></o:p></PRE><PRE>&nbsp;<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>CORBA::Object_var obj = orb-&gt;string_to_object(argv[1]);<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>YieldCurve_var yieldcurveref = YieldCurve::_narrow(obj);<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>if(
 CORBA::is_nil(yieldcurveref) ) {<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>cerr &lt;&lt; "Can't narrow reference to type YieldCurve (or it was<o:p></o:p></PRE><PRE>nil)." &lt;&lt; endl;<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>return 1;<o:p></o:p></PRE><PRE><SPAN style="COLOR: #660066"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>}</SPAN><o:p></o:p></PRE><PRE> <o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>YieldCurve::CrvDef* pCrvDef = NULL;<o:p></o:p></PRE><PRE> // CORBA::String_var env = "tokreval";<o:p></o:p></PRE><PRE> // CORBA::String_var currency = "JPY";<o:p></o:p></PRE><PRE> try {<o:p></o:p></PRE><PRE>// I GET AN EXCEPTION HERE<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>yieldcurveref-&gt;getCrvDef(pCrvDef, "tokreval", "JPY");<o:p></o:p></PRE><PRE><SPAN style="COLOR: #660066"> }</SPAN><o:p></o:p></PRE><PRE>
 catch(YieldCurve::Reject&amp; ex_reject) {<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>cerr &lt;&lt; "reject exception while calling the getCrvDef method" &lt;&lt;<o:p></o:p></PRE><PRE>endl;<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>return 1;<o:p></o:p></PRE><PRE><SPAN style="COLOR: #660066"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>}</SPAN><o:p></o:p></PRE><PRE>&nbsp;<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>orb-&gt;destroy();<o:p></o:p></PRE><PRE><SPAN style="COLOR: #660066"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>}</SPAN><o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>catch(CORBA::COMM_FAILURE&amp; ex) {<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>cerr &lt;&lt; "Caught system exception COMM_FAILURE -- unable to contact<o:p></o:p></PRE><PRE>the "<o:p></o:p></PRE><PRE><SPAN
 style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>&lt;&lt; "object." &lt;&lt; endl;<o:p></o:p></PRE><PRE><SPAN style="COLOR: #660066"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>}</SPAN><o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>catch(CORBA::SystemException&amp;) {<o:p></o:p></PRE><PRE>// THE EXCEPTION IS caught here<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>cerr &lt;&lt; "Caught a CORBA::SystemException." &lt;&lt; endl;<o:p></o:p></PRE><PRE><SPAN style="COLOR: #660066"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>}</SPAN><o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>catch(CORBA::Exception&amp;) {<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>cerr &lt;&lt; "Caught CORBA::Exception." &lt;&lt; endl;<o:p></o:p></PRE><PRE><SPAN style="COLOR: #660066"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>}</SPAN><o:p></o:p></PRE><PRE><SPAN
 style="mso-spacerun: yes">&nbsp; </SPAN>catch(omniORB::fatalException&amp; fe) {<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>cerr &lt;&lt; "Caught omniORB::fatalException:" &lt;&lt; endl;<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>cerr &lt;&lt; "<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>file: " &lt;&lt; fe.file() &lt;&lt; endl;<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>cerr &lt;&lt; "<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>line: " &lt;&lt; fe.line() &lt;&lt; endl;<o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>cerr &lt;&lt; "<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>mesg: " &lt;&lt; fe.errmsg() &lt;&lt; endl;<o:p></o:p></PRE><PRE><SPAN style="COLOR: #660066"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>}</SPAN><o:p></o:p></PRE><PRE><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>catch(...) {<o:p></o:p></PRE><PRE><SPAN
 style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>cerr &lt;&lt; "Caught unknown exception." &lt;&lt; endl;<o:p></o:p></PRE><PRE style="LINE-HEIGHT: 16.2pt"><SPAN style="COLOR: #660066"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>} return 0;<o:p></o:p></SPAN></PRE><PRE><SPAN style="COLOR: #660066">}</SPAN><o:p></o:p></PRE><PRE>&nbsp;<o:p></o:p></PRE><PRE>Preprocessor defines:<o:p></o:p></PRE><PRE>WIN32,_DEBUG,_CONSOLE,_MBCS,__WIN32__,_WIN32_WINNT=0x0400,__x86__,__NT__,__OSVERSION__=4<o:p></o:p></PRE><PRE>&nbsp;<o:p></o:p></PRE><PRE>I linked with these libs:<o:p></o:p></PRE><PRE>omniORB402_rtd.lib omnithread30_rtd.lib msvcstubd.lib kernel32.lib<o:p></o:p></PRE><PRE>user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib<o:p></o:p></PRE><PRE>shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib<o:p></o:p></PRE><PRE>kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib<o:p></o:p></PRE><PRE>advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
 odbc32.lib<o:p></o:p></PRE><PRE>odbccp32.lib<o:p></o:p></PRE><PRE>&nbsp;<o:p></o:p></PRE><PRE>Ignoring this lib: LIBCMTD<o:p></o:p></PRE><PRE>&nbsp;<o:p></o:p></PRE><PRE>additional input path: C:\omniorb\omniORB-4.0.2\lib\x86_win32<o:p></o:p></PRE><PRE style="MARGIN-BOTTOM: 12pt">I also tried out the same on VC7.1 with my own omniorb build.<BR>
I also tried on Solaris 8 with gcc 3.3.2 with my own build.<BR>
Both give me the the same exception.<o:p></o:p></PRE><PRE>The server is running under Linux.<o:p></o:p></PRE><PRE>note. cross-post from <A href="http://groups.google.com/groups?hl=en&amp;lr=&amp;ie=UTF-8&amp;oe=UTF-8&amp;group=comp.lang.java.corba" target=_blank><SPAN style="COLOR: #551a8b">comp.lang.java.corba</SPAN></A><o:p></o:p></PRE><PRE>Regards<o:p></o:p></PRE><PRE>Lars Schouw<o:p></o:p></PRE>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT face="Times New Roman">&nbsp;<o:p></o:p></FONT></FONT></P></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://shopping.yahoo.com/?__yltc=s%3A150000443%2Cd%3A22708228%2Cslk%3Atext%2Csec%3Amail">The New Yahoo! Shopping</a> - with improved product search