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

Net.java translateToSocketException does not handle IOException

    Details

    • Subcomponent:
    • Resolved In Build:
      b35
    • CPU:
      generic
    • OS:
      windows

      Backports

        Description

        Currently we get on some Windows servers an error in jck api tests an error :

         "Caused by: java.io.IOException: Network interface not configured for IPv4" ; the IOException could (should?) be translated to a SocketException in Net.java

        stack trace is like this :
        ----- out1 -----
        java.lang.Error: Untranslated exception
        at java.base/sun.nio.ch.Net.translateToSocketException(Net.java:199)
        at java.base/sun.nio.ch.DatagramSocketAdaptor.setNetworkInterface(DatagramSocketAdaptor.java:602)
        at java.base/java.net.MulticastSocket.setNetworkInterface(MulticastSocket.java:466)
        at javasoft.sqe.tests.api.java.net.MulticastSocket.NetworkInterfaceTests.MulticastSocket2015(NetworkInterfaceTests.java:64)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:404)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:193)
        at jdk.internal.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
        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.jck.lib.ExecJCKTestSameJVMCmd$Version2Test.execute(ExecJCKTestSameJVMCmd.java:566)
        at com.sun.jck.lib.ExecJCKTestSameJVMCmd$StandardTest.run(ExecJCKTestSameJVMCmd.java:523)
        at com.sun.jck.lib.ExecJCKTestSameJVMCmd.execute(ExecJCKTestSameJVMCmd.java:407)
        at com.sun.jck.lib.ExecJCKTestSameJVMCmd.run(ExecJCKTestSameJVMCmd.java:337)
        at com.sun.jck.lib.ExecInSeparateThreadCmd$StatusCallable.call(ExecInSeparateThreadCmd.java:76)
        at com.sun.jck.lib.ExecInSeparateThreadCmd$StatusCallable.call(ExecInSeparateThreadCmd.java:60)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.lang.Thread.run(Thread.java:832)
        Caused by: java.io.IOException: Network interface not configured for IPv4
        at java.base/sun.nio.ch.DatagramChannelImpl.setOption(DatagramChannelImpl.java:376)
        at java.base/sun.nio.ch.DatagramSocketAdaptor.setOption(DatagramSocketAdaptor.java:418)
        at java.base/sun.nio.ch.DatagramSocketAdaptor.setNetworkInterface(DatagramSocketAdaptor.java:600)
        ... 19 more

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mbaesken Matthias Baesken
                  Reporter:
                  mbaesken Matthias Baesken
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: