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

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

    XMLWordPrintable

Details

    • b27

    Backports

      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

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

                Dates

                  Created:
                  Updated:
                  Resolved: