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

Two tests failed with "java.net.SocketException: Bad protocol option" on Windows after 8029607

    Details

    • Subcomponent:
    • Resolved In Build:
      b23
    • OS:
      windows

      Backports

        Description

        TESTFAIL:java/nio/channels/DatagramChannel/SocketOptionTests.java
        TESTFAIL:java/net/Socket/TrafficClass.java

        Above two tests failed on windows since the fix of JDK-8029607.

        java/nio/channels/DatagramChannel/SocketOptionTests.java log:
        ----------System.err:(15/826)----------
        java.net.SocketException: Bad protocol option: no further information
        at sun.nio.ch.Net.setIntOption0(Native Method)
        at sun.nio.ch.Net.setSocketOption(Net.java:356)
        at sun.nio.ch.DatagramChannelImpl.setOption(DatagramChannelImpl.java:203)
        at SocketOptionTests.main(SocketOptionTests.java:95)
        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:484)
        at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:759)
        at java.lang.Thread.run(Thread.java:745)

        test failed at this line --> dc.setOption(IP_TOS, 0x08); // can't check

        java/net/Socket/TrafficClass.java log:
        ----------System.err:(14/819)----------
        testDatagramSocket failed: java.net.SocketException: Bad protocol option: no further information
        testSocket failed: java.net.SocketException: Bad protocol option: no further information
        java.lang.Exception: 2 sub-test(s) failed - see log for details.
        at TrafficClass.main(TrafficClass.java:76)
        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:484)
        at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:759)
        at java.lang.Thread.run(Thread.java:745)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  michaelm Michael McMahon
                  Reporter:
                  amlu Amy Lu
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: