Discussion:
[omniORB] COMM_FAILURE : First Chance Exception
Thomas Pedot
2013-08-05 11:21:52 UTC
Permalink
Hi,
I use omniorb 4.1.6 on Windows (32bit) in a debug version. I have some
exception like (Visual Studio Output) :
First-chance exception at 0x759cc41f in CORBA-Serveur.exe: Microsoft C++
exception: omni::giopStream::CommFailure at memory location 0x032af7a0..

My application works to a certain point then an exception of type
CORBA::COMM_FAILURE or CORBA::TRANSIENT is thrown on the client side.

This error seems to happened when my computer is confronted to some lags.

Can anybody help me to understand what does it means ? How can I correct
this playing with parameters, changing some codes,... ?

I use the try-catch statement in the tutorial :
catch(CORBA::COMM_FAILURE& ex) {\
cout << "Caught system exception COMM_FAILURE -- unable to contact the "\
<< "object." << endl;\
}\
catch(CORBA::TRANSIENT&) {\
cout << "Caught system exception TRANSIENT -- unable to contact the "\
<< "server." << endl;\
}\
catch(CORBA::SystemException& ex) {\
cout << "Caught a CORBA::" << ex._name() << endl;\
}\
catch(CORBA::Exception& ex) {\
cout << "Caught CORBA::Exception: " << ex._name() << endl;\
}\
catch(omniORB::fatalException& fe) {\
cout << "Caught omniORB::fatalException:" << endl;\
cout << " file: " << fe.file() << endl;\
cout << " line: " << fe.line() << endl;\
cout << " mesg: " << fe.errmsg() << endl;\
}\
catch(...) {\
cerr << "Caught unknown exception." << endl;\
}


Thanks for maintining this project !
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20130805/139f4165/attachment.html>
Duncan Grisby
2013-08-28 10:32:49 UTC
Permalink
Post by Thomas Pedot
I use omniorb 4.1.6 on Windows (32bit) in a debug version. I have some
First-chance exception at 0x759cc41f in CORBA-Serveur.exe: Microsoft C
++ exception: omni::giopStream::CommFailure at memory location
0x032af7a0..
That's just Visual Studio logging that an exception was thrown. It's
normal, and handled internally to omniORB.
Post by Thomas Pedot
My application works to a certain point then an exception of type
CORBA::COMM_FAILURE or CORBA::TRANSIENT is thrown on the client side.
In what circumstances?

CORBA::COMM_FAILURE means that omniORB was using a connection and it
broke; CORBA::TRANSIENT can be caused by various things, but most often
it has a minor code of TRANSIENT_ConnectFailed, which means that omniORB
tried to connect to the server's port, and the connection was refused.

Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
Loading...