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

java/net/MulticastSocket/TimeToLive.java fails intermittently with "Address already in use"

XMLWordPrintable

    • b138
    • Not verified

        java/net/MulticastSocket/TimeToLive.java fails intermittently with BindException.

        Test uses hardcode port:
            MulticastSocket socket = new MulticastSocket(6789);

        Failure log:
        ----------System.err:(17/949)----------
        java.net.BindException: Address already in use
        at java.net.PlainDatagramSocketImpl.bind0(Native Method)
        at java.net.AbstractPlainDatagramSocketImpl.bind(AbstractPlainDatagramSocketImpl.java:94)
        at java.net.DatagramSocket.bind(DatagramSocket.java:394)
        at java.net.MulticastSocket.<init>(MulticastSocket.java:172)
        at java.net.MulticastSocket.<init>(MulticastSocket.java:136)
        at TimeToLive.main(TimeToLive.java:40)
        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.net.BindException
        JavaTest Message: shutting down test

        result: Failed. Execution failed: `main' threw exception: java.net.BindException: Address already in use



              xiaofeya Xiaofeng Yang
              amlu Amy Lu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: