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

com/sun/jndi/dns/ConfigTests/Timeout.java fails with "Address already in use" BindException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 17
    • Fix Version/s: None
    • Component/s: core-libs

      Description

      Test fails with the following exception:
          java.io.UncheckedIOException: java.net.BindException: Address already in use
           at java.base/sun.nio.ch.DatagramSocketAdaptor.disconnect(DatagramSocketAdaptor.java:136)
           at java.base/java.net.DatagramSocket.disconnect(DatagramSocket.java:526)
           at jdk.naming.dns/com.sun.jndi.dns.DnsClient.doUdpQuery(DnsClient.java:437)
           at jdk.naming.dns/com.sun.jndi.dns.DnsClient.query(DnsClient.java:214)
           at jdk.naming.dns/com.sun.jndi.dns.Resolver.query(Resolver.java:81)
           at jdk.naming.dns/com.sun.jndi.dns.DnsContext.c_getAttributes(DnsContext.java:434)
           at java.naming/com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirContext.java:235)
           at java.naming/com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:141)
           at java.naming/com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:129)
           at java.naming/javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:171)
           at java.naming/javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:166)
           at Timeout.runTest(Timeout.java:78)
           at TestBase.launch(TestBase.java:82)
           at TestBase.run(TestBase.java:50)
           at Timeout.main(Timeout.java:61)
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
           at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:568)
           at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
           at java.base/java.lang.Thread.run(Thread.java:831)
          Caused by: java.net.BindException: Address already in use
           at java.base/sun.nio.ch.Net.bind0(Native Method)
           at java.base/sun.nio.ch.Net.bind(Net.java:552)
           at java.base/sun.nio.ch.DatagramChannelImpl.repairSocket(DatagramChannelImpl.java:1343)
           at java.base/sun.nio.ch.DatagramChannelImpl.disconnect(DatagramChannelImpl.java:1305)
           at java.base/sun.nio.ch.DatagramSocketAdaptor.disconnect(DatagramSocketAdaptor.java:134)
           ... 20 more

        Attachments

          Activity

            People

            Assignee:
            aefimov Aleksej Efimov
            Reporter:
            aefimov Aleksej Efimov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: