[sctp-dev] java.net.SocketException: Protocol not available

Chris Hegarty chris.hegarty at oracle.com
Fri Feb 8 08:12:16 PST 2013


This is strange. You can create the socket but it only fails when you 
try to connect. I wonder if this is an issue with the native SCTP stack. 
Is it possible to write a simple native test to see if it reproduces the 
same problem?

Oh I noticed that you are using icedtea, I didn't realize that they 
supported the sctp API in their build. Nice.

-Chris.

On 06/02/2013 12:35, Amit Bhayani wrote:
> Hi Guys,
>
> I am on CentOS release 6.3 (Final) and
>
> java version "1.7.0_09-icedtea"
> OpenJDK Runtime Environment (rhel-2.3.4.1.el6_3-x86_64)
> OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)
>
>
> When ever I try to open Sctp Channel its all ok as explained in
> http://openjdk.java.net/projects/sctp/html/gettingstarted.html
>
> However when I try to finish connection I get
>
> 13:32:37,272 ERROR [SelectorThread] (Thread-17) Exception while
> finishing connection for Association=SCTPAssoSTP1
> java.net.SocketException: Protocol not available
> at sun.nio.ch.SctpChannelImpl.checkConnect(Native Method)
> at sun.nio.ch.SctpChannelImpl.finishConnect(SctpChannelImpl.java:471)
>
>
> Any help is highly appreciated
>
>
> lksctp is
>
>
> Package lksctp-tools-devel-1.0.10-5.el6.x86_64
> Package lksctp-tools-doc-1.0.10-5.el6.x86_64
> Package lksctp-tools-1.0.10-5.el6.x86_64
>
>
> Thanks,
> Amit.
>
>
>
>
>


More information about the sctp-dev mailing list