[omniORB] omniORB4 SystemException minor code bug?
Duncan Grisby
duncan@grisby.org
Thu Aug 22 14:30:01 2002
On Tuesday 20 August, "Norrie Quinn" wrote:
> With no naming service running, I run the following code with omniORB4 and
> get a TRANSIENT SystemException as expected.
>
> try {
> CORBA::ORB_var orb = CORBA::ORB_init( argc, argv );
> CORBA::Object_var root_object =
> orb->resolve_initial_references("NameService");
> CosNaming::NamingContext_var root_context =
> CosNaming::NamingContext::_narrow(root_object);
> ...
> catch ( CORBA::SystemException& e ) {
> ...
> cerr << e.minor() << " :" << e.NP_minorString() << endl;
> }
>
> However, calling minor() on the exception returns an omniORB specific
> COMM_FAILURE minor code instead of a TRANSIENT minor code. This also means
> that a call to NP_minorString() returns no description.
Strange. I can't reproduce that. Please extend your code to print the
result of e._name() as well as the minor string, a post a trace with
traceLevel 10.
Cheers,
Duncan.
--
-- Duncan Grisby --
-- duncan@grisby.org --
-- http://www.grisby.org --