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

java/net/DatagramSocket/PortUnreachable.java still fails intermittently with BindException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 14
    • Fix Version/s: 14
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b27

      Description

      java/net/DatagramSocket/PortUnreachable.java fails intermittently with:

      ----------System.err:(31/2089)----------
      java.net.BindException: Address already in use (Bind failed)
      at java.base/java.net.PlainDatagramSocketImpl.bind0(Native Method)
      at java.base/java.net.AbstractPlainDatagramSocketImpl.bind(AbstractPlainDatagramSocketImpl.java:111)
      at java.base/java.net.DatagramSocket.bind(DatagramSocket.java:395)
      at java.base/java.net.DatagramSocket.<init>(DatagramSocket.java:245)
      at java.base/java.net.DatagramSocket.<init>(DatagramSocket.java:302)
      at PortUnreachable.recreateServerSocket(PortUnreachable.java:76)
      at PortUnreachable.serverSend(PortUnreachable.java:55)
      at PortUnreachable.execute(PortUnreachable.java:156)
      at PortUnreachable.main(PortUnreachable.java:170)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:830)
      java.net.SocketTimeoutException: Receive timed out
      at java.base/java.net.PlainDatagramSocketImpl.peekData(Native Method)
      at java.base/java.net.DatagramSocket.receive(DatagramSocket.java:749)
      at PortUnreachable.execute(PortUnreachable.java:161)
      at PortUnreachable.main(PortUnreachable.java:170)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:830)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jboes Julia Boes
              Reporter:
              amlu Amy Lu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: