[sctp-dev] FW: Use SCTP with Java 1.6?

Christopher Hegarty -Sun Microsystems Ireland Christopher.Hegarty at Sun.COM
Mon Jan 18 07:22:51 PST 2010


Christopher Hegarty -Sun Microsystems Ireland wrote:
> Hi Dennis,
> 
> handleSocketError is an exported nio function in JDK7, but not JDK6. The 
> sctp implementation calls it in the case of an error on the socket. You 
> will receive an error from the dynamic linker becuase this function is 
> not in libnio of JDK6, if running SCTP with Suns JDK6.
> 
> While not strictly not a bug in JDK7, I think we can simply copy the 
> small native function, handleSockeError, to the SCTP implementation and 
> have it built into libsctp.so removing this dependency.
> 
> Thanks for reporting this issue. I filed the following bug:
>   6917317: (sctp) Remove dependency on handleSocketError

Dennis,

I've pushed the source changes for this and updated the libsctp.so on 
the instructions page [1]. Again, until the next JDK7 promotion you will 
need to get libsctp from there.

Alan made a good point during review of 6917317:

The SCTP implementation run with Sun's JDK6 is completely unsupported. 
The implementation uses Sun proprietary APIs that may be removed or 
changed in the future. Also, Sun's JDK6 is built with RHAS 2.1A and an 
old gcc. JDK7 is built with Fedora 9 and a more modern gcc. Everything 
should work (in theory) but there are bound to to be older Linux 
distributions where Sun's JDK6 works but libsctp will not work.

-Chris.

[1] http://openjdk.java.net/projects/sctp/html/sctp6.html

> 
> -Chris.


More information about the sctp-dev mailing list