JDK-8077668 : java/rmi/activation/rmidViaInheritedChannel tests fail intermittently with NullPointerException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.rmi
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2015-04-14
  • Updated: 2016-08-26
  • Resolved: 2016-05-16
Related Reports
Blocks :  
Duplicate :  
Relates :  
Relates :  
Description
java/rmi/activation/rmidViaInheritedChannel/RmidViaInheritedChannel.java
java/rmi/activation/rmidViaInheritedChannel/InheritedChannelNotServerSocket.java

fail intermittently with NullPointerException at  rmid.cleanup() at the end of test:

        } finally {
            if (obj != null) {
                UnicastRemoteObject.unexportObject(obj, true);
            }
            rmid.cleanup();
        }


Very rare but observe such failure most likely when run tests in concurrency mode.

----------System.err:(14/735)----------
export callback object and bind in registry
java.lang.NullPointerException
	at RmidViaInheritedChannel.main(RmidViaInheritedChannel.java:122)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:502)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:745)

JavaTest Message: Test threw exception: java.lang.NullPointerException


Comments
I'm closing this as no more failures due to NPE after JDK-8129499
16-05-2016

probably the ubiquitous BindException
23-06-2015

It will be interesting to see the failure output once the revised versions of the tests per JDK-8129499 have been run.
22-06-2015