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

[TESTBUG] test/java/net/NetworkInterface/IPv4Only.java fails intermittently on AIX

XMLWordPrintable

    • b01
    • aix

      The test fails with this if the native library has already been loaded on AIX.

      Standard Error

      java.lang.RuntimeException: NetworkInterfaceV6List failed - found v6 address 0:0:0:0:0:0:0:1%lo0
      at IPv4Only.main(IPv4Only.java:46)
      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:498)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.lang.Thread.run(Thread.java:819)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: NetworkInterfaceV6List failed - found v6 address 0:0:0:0:0:0:0:1%lo0

      The tests in JDK 11+ works more reliably as it sets the system property on the command line. The JDK 11 change to the test was introduced with JDK-8049367. A selective backport seems in order.

            sgehwolf Severin Gehwolf
            sgehwolf Severin Gehwolf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: