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

com/sun/jndi/dns/ConfigTests/PortUnreachable.java and Timeout.java fails with javax.naming.CommunicationException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 17, 18, 19, 21
    • core-libs

      The following tests failed in the JDK18 CI:

      com/sun/jndi/dns/ConfigTests/PortUnreachable.java
      com/sun/jndi/dns/ConfigTests/Timeout.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(5/359)----------
      command: main -Djdk.net.usePlainDatagramSocketImpl=false PortUnreachable
      reason: User specified action: run main/othervm -Djdk.net.usePlainDatagramSocketImpl=false PortUnreachable
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.base --add-exports java.base/sun.security.util=ALL-UNNAMED
      elapsed time (seconds): 15.223
      ----------configuration:(4/111)----------
      Boot Layer
        add modules: java.base
        add exports: java.base/sun.security.util ALL-UNNAMED

      ----------System.out:(2/74)----------
      Skip local DNS Server creation
      Bug 7164518 can cause this failure on mac
      ----------System.err:(30/2348)----------
      javax.naming.CommunicationException: DNS error [Root exception is java.net.SocketTimeoutException: Receive timed out]; remaining name ''
      at jdk.naming.dns/com.sun.jndi.dns.DnsClient.query(DnsClient.java:316)
      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 PortUnreachable.runTest(PortUnreachable.java:76)
      at TestBase.launch(TestBase.java:82)
      at TestBase.run(TestBase.java:50)
      at PortUnreachable.main(PortUnreachable.java:60)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:833)
      Caused by: java.net.SocketTimeoutException: Receive timed out
      at java.base/sun.nio.ch.DatagramChannelImpl.trustedBlockingReceive(DatagramChannelImpl.java:703)
      at java.base/sun.nio.ch.DatagramChannelImpl.blockingReceive(DatagramChannelImpl.java:633)
      at java.base/sun.nio.ch.DatagramSocketAdaptor.receive(DatagramSocketAdaptor.java:240)
      at java.base/java.net.DatagramSocket.receive(DatagramSocket.java:701)
      at jdk.naming.dns/com.sun.jndi.dns.DnsClient.doUdpQuery(DnsClient.java:425)
      at jdk.naming.dns/com.sun.jndi.dns.DnsClient.query(DnsClient.java:214)
      ... 15 more

      JavaTest Message: Test threw exception: javax.naming.CommunicationException: DNS error [Root exception is java.net.SocketTimeoutException: Receive timed out]; remaining name ''
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: javax.naming.CommunicationException: DNS error [Root exception is java.net.SocketTimeoutException: Receive timed out]; remaining name '' Timeout
      ----------System.out:(1/32)----------
      Skip local DNS Server creation
      ----------System.err:(34/2489)----------
      javax.naming.CommunicationException: DNS error [Root exception is java.net.SocketException: Network is unreachable]; remaining name ''
      at jdk.naming.dns/com.sun.jndi.dns.DnsClient.query(DnsClient.java:316)
      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:77)
      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:333)
      at java.base/java.lang.Thread.run(Thread.java:842)
      Caused by: java.net.SocketException: Network is unreachable
      at java.base/sun.nio.ch.DatagramChannelImpl.receive0(Native Method)
      ----------rerun:(39/7355)*----------




      com/sun/jndi/dns/ConfigTests/Timeout.java


            aefimov Aleksej Efimov
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: