Details
Description
The distributed garbage collection features of RMI are broken in
JDK1.2fcs-A. Nothing gets garbage collected due to some security
related problem that gives a Null Pointer Exception.
When I run the RMI DGC Test Suite no remote objects that are no
longer referenced get garbage collected. While running the RMI
DGC Test Suite I get the following exception which is what is
blowing up the DGC features of RMI.
This exception occurs when I dereference a bunch of remote object
references from the DGCTestClient program.
java.lang.NullPointerException
at java.security.AccessControlContext.equals(AccessControlContext.java:434)
at sun.rmi.transport.tcp.TCPChannel.checkConnectPermission(TCPChannel.java:137)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:169)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:302)
at sun.rmi.transport.DGCImpl_Stub.clean(DGCImpl_Stub.java)
at sun.rmi.transport.DGCClient.sendCleans(DGCClient.java:596)
at sun.rmi.transport.DGCClient.run(DGCClient.java:653)
at java.lang.Thread.run(Thread.java:472)
This problem occurs in JDK1.2fcs-A.
The RMI DGC Test Suite is part of the attachment. To run it do
the following:
% tar xvf rmi.tar
% starts -v /* Start the DGCTestServer */
% startc -c 4 -n 300 -t 5 m /* Start 4 DGCTestClient's to run for 5 mins */
For more info on running the RMI DGC Test Suite look at the README file.
JDK1.2fcs-A. Nothing gets garbage collected due to some security
related problem that gives a Null Pointer Exception.
When I run the RMI DGC Test Suite no remote objects that are no
longer referenced get garbage collected. While running the RMI
DGC Test Suite I get the following exception which is what is
blowing up the DGC features of RMI.
This exception occurs when I dereference a bunch of remote object
references from the DGCTestClient program.
java.lang.NullPointerException
at java.security.AccessControlContext.equals(AccessControlContext.java:434)
at sun.rmi.transport.tcp.TCPChannel.checkConnectPermission(TCPChannel.java:137)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:169)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:302)
at sun.rmi.transport.DGCImpl_Stub.clean(DGCImpl_Stub.java)
at sun.rmi.transport.DGCClient.sendCleans(DGCClient.java:596)
at sun.rmi.transport.DGCClient.run(DGCClient.java:653)
at java.lang.Thread.run(Thread.java:472)
This problem occurs in JDK1.2fcs-A.
The RMI DGC Test Suite is part of the attachment. To run it do
the following:
% tar xvf rmi.tar
% starts -v /* Start the DGCTestServer */
% startc -c 4 -n 300 -t 5 m /* Start 4 DGCTestClient's to run for 5 mins */
For more info on running the RMI DGC Test Suite look at the README file.
Attachments
Issue Links
- duplicates
-
JDK-4151683 null pointer exception in AccessControlContext.equals
- Closed