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

java/net/DatagramSocket/ReuseAddressTest.java failed with java.net.BindException: Address already in use: Cannot bind

XMLWordPrintable

    • b24

        java/net/DatagramSocket/ReuseAddressTest.java failed with java.net.BindException: Address already in use: Cannot bind

        ----------messages:(4/166)----------
        command: main ReuseAddressTest
        reason: User specified action: run main/othervm ReuseAddressTest
        Mode: othervm [/othervm specified]
        elapsed time (seconds): 2.826
        ----------configuration:(0/0)----------
        ----------System.out:(3/182)----------
         >> DatagramSocket0029: public void setReuseAddress(boolean on) throws SocketException
        OKAY
         >> DatagramSocket0030: public void setReuseAddress(boolean on) throws SocketException
        ----------System.err:(14/1204)----------
        java.lang.RuntimeException: cannot bind first socket to sca00bpy/10.128.67.97:5050 unexpected java.net.BindException: Address already in use: Cannot bind
        at ReuseAddressTest.DatagramSocket0030(ReuseAddressTest.java:131)
        at ReuseAddressTest.main(ReuseAddressTest.java:63)
        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.MainWrapper$MainThread.run(MainWrapper.java:115)
        at java.base/java.lang.Thread.run(Thread.java:844)

              azeller Arno Zeller
              mli Hamlin Li
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: