[sctp-dev] java.net.SocketException: Protocol not available
Amit Bhayani
amit.bhayani at gmail.com
Fri Feb 8 08:13:26 PST 2013
Some more insight, I was able to connect the client socket from my machine
to remote machine when it had SCTP server socket open.
If remote server sokcet is down I get this error. In wireshark trace I see
that my machine does send INT but there is no response what so ever.
Shouldn't it complain that connection refused instead of protocol not
supported?
Amit.
On Fri, Feb 8, 2013 at 9:42 PM, Chris Hegarty <chris.hegarty at oracle.com>wrote:
> 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<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.
>>
>>
>>
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/sctp-dev/attachments/20130208/8b7fc738/attachment.html
More information about the sctp-dev
mailing list