-
Bug
-
Resolution: Not an Issue
-
P2
-
None
-
1.4.0
-
sparc
-
solaris_2.6
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
======================================================================