-
Type:
Bug
-
Resolution: Not an Issue
-
Priority:
P4
-
None
-
Affects Version/s: 1.3.0
-
Component/s: other-libs
-
sparc
-
solaris_7
Name: rlT66838 Date: 02/01/2000
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-I)
Java HotSpot (TM) Client VM (build 1.3-I, interpreted mode)
When the ORB can't find an initial tnameserv, the exception minor code is not
set:
CORBA System Exception: org.omg.CORBA.COMM_FAILURE: minor code: 1398079490
completed: No
Sample code follows:
import org.omg.CORBA.*;
import org.omg.CosNaming.* ;
public class Example
{
public static void main(String args[]) {
ORB orb = ORB.init(args, null);
try {
org.omg.CORBA.Object init = orb.resolve_initial_references("NameService");
NamingContext root = NamingContextHelper.narrow(init);
} catch (org.omg.CORBA.ORBPackage.InvalidName inex ) {
System.out.println("Unable to find Name server: " + inex);
} catch (SystemException se) {
System.out.println("CORBA System Exception: " + se);
}
}
}
(Review ID: 100604)
======================================================================