Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4309103

Uninitialised minor code if tnameserv not found

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 1.3.0
    • 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)
      ======================================================================

            hputtaswsunw Hemanth Puttaswamy (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: