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

java/rmi/activation/rmidViaInheritedChannel tests fail intermittently with NullPointerException

    Details

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                msheppar Mark Sheppard (Inactive)
                Reporter:
                amlu Amy Lu
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: