[omniORB] _narrow in omniNameslog::getBind(istream& file)

Jiang Wei sdjiangwei at gmail.com
Wed Jun 3 10:05:45 BST 2009


_narrow raise CORBA::Transient when federal Name Service temporary
unreachable. lead name service to crash



Index: src/appl/omniNames/log.cc
===================================================================
RCS file: /cvsroot/omniorb/omni/src/appl/omniNames/Attic/log.cc,v
retrieving revision 1.26.2.7
diff -u -b -r1.26.2.7 log.cc
--- src/appl/omniNames/log.cc 6 May 2009 16:16:00 -0000 1.26.2.7
+++ src/appl/omniNames/log.cc 3 Jun 2009 01:00:14 -0000
@@ -1056,7 +1056,7 @@
try {
o = orb->string_to_object(str);
} catch (...) {
- cerr << ts.t() << "getDestroy: invalid IOR." << endl;
+ cerr << ts.t() << "getBind: invalid IOR." << endl;
delete [] str;
throw ParseError();
}
@@ -1065,9 +1065,9 @@
if (strcmp(bindingType, "ncontext") == 0) {

CosNaming::NamingContext_var nc2
- = CosNaming::NamingContext::_narrow(o);
+ = CosNaming::NamingContext::_unchecked_narrow(o);
if (CORBA::is_nil(nc2)) {
- cerr << ts.t() << "bind: IOR not a NamingContext." << endl;
+ cerr << ts.t() << "getBind: IOR not a NamingContext." << endl;
throw ParseError();
}
nc->rebind_context(name, nc2);




More information about the omniORB-list mailing list