RFR: 8267353: java/net/SctpSanity.java fails due to Protocol not supported

Jie Fu jiefu at openjdk.java.net
Wed May 26 14:35:12 UTC 2021


On Wed, 26 May 2021 14:23:20 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

> I am intrigued - which exception do you get on the machine where SCTP is not supported?

Hi @dfuch , we got this exception, which was copied from the JBS.


java.net.SocketException: Protocol not supported
        at jdk.sctp/sun.nio.ch.sctp.SctpNet.socket0(Native Method)
        at jdk.sctp/sun.nio.ch.sctp.SctpNet.socket(SctpNet.java:81)
        at jdk.sctp/sun.nio.ch.sctp.SctpChannelImpl.<init>(SctpChannelImpl.java:138)
        at jdk.sctp/com.sun.nio.sctp.SctpChannel.open(SctpChannel.java:170)
        at SctpSanity.testSctpChannel(SctpSanity.java:58)
        at SctpSanity.main(SctpSanity.java:50)
        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.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:831)

-------------

PR: https://git.openjdk.java.net/jdk/pull/4199


More information about the net-dev mailing list