-
Bug
-
Resolution: Fixed
-
P4
-
9
-
b71
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8135939 | emb-9 | Brian Burkhalter | P4 | Resolved | Fixed | team |
These tests
java/rmi/activation/rmidViaInheritedChannel/RmidViaInheritedChannel.java
java/rmi/activation/rmidViaInheritedChannel/InheritedChannelNotServerSocket.java
fail with a NullPointerException when attempting to dereference the rmid instance variable. This is due to this structure
RMID rmid = null;
try {
System.err.println("export callback object and bind in registry");
// bind to the registry (code omitted)
System.err.println("start rmid with inherited channel");
rmid = RMID.createRMID( ... );
// more code omitted
} finally {
if (obj != null) {
UnicastRemoteObject.unexportObject(obj, true);
}
rmid.cleanup(); // <--- line where the exception occurs
}
where the error actually occurs between the print statements.
java/rmi/activation/rmidViaInheritedChannel/RmidViaInheritedChannel.java
java/rmi/activation/rmidViaInheritedChannel/InheritedChannelNotServerSocket.java
fail with a NullPointerException when attempting to dereference the rmid instance variable. This is due to this structure
RMID rmid = null;
try {
System.err.println("export callback object and bind in registry");
// bind to the registry (code omitted)
System.err.println("start rmid with inherited channel");
rmid = RMID.createRMID( ... );
// more code omitted
} finally {
if (obj != null) {
UnicastRemoteObject.unexportObject(obj, true);
}
rmid.cleanup(); // <--- line where the exception occurs
}
where the error actually occurs between the print statements.
- backported by
-
JDK-8135939 Structure of java/rmi/activation/rmidViaInheritedChannel tests masks exception
-
- Resolved
-
- blocks
-
JDK-8077668 java/rmi/activation/rmidViaInheritedChannel tests fail intermittently with NullPointerException
-
- Closed
-
- duplicates
-
JDK-8077668 java/rmi/activation/rmidViaInheritedChannel tests fail intermittently with NullPointerException
-
- Closed
-