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

NamingContext rebind operation cause OutOfMemory error

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.6

      Description



      Name: aaR10142 Date: 07/19/2001



      NamingContext rebind operation cause OutOfMemory error in
      jdk build 1.4.0-beta_refresh-b70

      ------------- Test.java ---------------------
      import org.omg.CosNaming.*;
      import org.omg.CORBA.*;

      public class Test {
             static ORB orb = null;
                                                                     
          public static void main(String argv[]) {
              try {
                  orb = ORB.init(argv, null);
                 
      org.omg.CORBA.Object objRef =
                                 orb.resolve_initial_references("NameService");
                  NamingContext ncRef = NamingContextHelper.narrow(objRef);
                  NameComponent nc = new NameComponent("Test", "");
      NameComponent path[] = {nc};
      ncRef.rebind(path, objRef);

      } catch(UserException e) {
      System.out.println("ERROR : " + e);
      e.printStackTrace(System.out);
      } finally {
      orb.shutdown(true);
      orb.destroy();
      }
           
          }

      }


      ------------------- start --------------------
      #> tnameserv -ORBInitialPort 9876 &
      #>javac -classpath . -d . Test.java
      #>java -classpath . Test -ORBInitialPort 9876
      ----------------- 1.4.0-beta_refresh-b70 output -----------------
      Exception in thread "main" java.lang.OutOfMemoryError

      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            hputtaswsunw Hemanth Puttaswamy (Inactive)
            Reporter:
            alisunw Ali Ali (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: