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

java/net/Socket/InheritHandle.java fails intermittently with "Address already in use"

    Details

    • Subcomponent:
    • Resolved In Build:
      b138
    • Verification:
      Not verified

      Description

      java/net/Socket/InheritHandle.java fails intermittently with BindException

      ----------System.out:(3/132)----------
      First ServerSocket listening on port 49529
      waiting...
      Now close the socket and try to create another one listening on the same port
      ----------System.err:(13/715)----------
      java.lang.RuntimeException: Failed: java.net.BindException: Address already in use
      at InheritHandle.startTest(InheritHandle.java:94)
      at InheritHandle.main(InheritHandle.java:48)
      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.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:218)
      at java.lang.Thread.run(Thread.java:745)

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

        Attachments

          Activity

            People

            • Assignee:
              xiaofeya Xiaofeng Yang
              Reporter:
              amlu Amy Lu
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: