[sctp-dev] FW: Use SCTP with Java 1.6?
Christopher Hegarty - Sun Microsystems Ireland
Christopher.Hegarty at Sun.COM
Mon Mar 1 02:04:49 PST 2010
Hi Dennis,
As you've confirmed, this doesn't seem to be a problem with the "hacked"
SCTP and JDK6, since you reproduced it with JDK7 b83. I just tried JDK7
b84 and it works fine for me (see below).
I suspect your problem is not with the Java implementation, but a
configuration issue on the machine. I'm not sure what version of lksctp
you have installed, but there may be an issue with it. Can you try
running the attached native test (it just tries to create an SCTP socket).
aerrow: uname -a
Linux aerrow.Ireland.Sun.COM 2.6.30.10-105.2.23.fc11.i586 #1 SMP Thu Feb
11 06:51:26 UTC 2010 i686 i686 i386 GNU/Linux
aerrow: /java/re/jdk/7/latest/binaries/linux-i586/bin/java -version
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b84)
Java HotSpot(TM) Client VM (build 17.0-b09, mixed mode)
aerrow: /java/re/jdk/7/latest/binaries/linux-i586/bin/java TestSCTP
SCTP supported
aerrowa: cat TestSCTP.java
TestSCTP.class TestSCTP.java
public class TestSCTP
{
public static void main(String[] args) throws Exception {
com.sun.nio.sctp.SctpChannel sc =
com.sun.nio.sctp.SctpChannel.open();
System.out.println("SCTP supported");
}
}
-Chris.
On 01/03/2010 09:36, Dennis Hjort wrote:
> Hi again !
>
> I've now tested JDK7 B83 (had problems downloading B84 for some reason), and
> have the same problem using SCTP on Linux 32 bit systems.
>
> eodenns at ltesim01:~/SockIO_Sctp/src$ java -version
> java version "1.7.0-ea"
> Java(TM) SE Runtime Environment (build 1.7.0-ea-b83)
> Java HotSpot(TM) Server VM (build 17.0-b09, mixed mode)
>
> eodenns at ltesim01:~/SockIO_Sctp/src$ uname -a
> Linux ltesim01 2.6.16.60-0.39.3-bigsmp #1 SMP Mon May 11 11:46:34 UTC 2009
> i686 athlon i386 GNU/Linux
>
>
> Something that has been missed ?
>
> With kind regards
>
> // Dennis
>
>
>> -----Original Message-----
>> From: sctp-dev-bounces at openjdk.java.net
>> [mailto:sctp-dev-bounces at openjdk.java.net] On Behalf Of Dennis Hjort
>> Sent: den 1 mars 2010 10:09
>> To: Christopher.Hegarty at Sun.COM
>> Cc: sctp-dev at openjdk.java.net
>> Subject: Re: [sctp-dev] FW: Use SCTP with Java 1.6?
>>
>> Hi Christopher !
>>
>> Here we have one problem it seems. When running the hacked
>> sctp lib on the
>> i386 platform, I get this exception:
>> I pretty sure I use the correct lib and a native sctp
>>
>> eodenns at ltesim01:~$ java
>> -Xbootclasspath/a:/usr/java/default/jre/lib/sctp6.jar
>> TestSCTP Exception in thread "main" java.net.SocketException:
>> Protocol not supported
>> at sun.nio.ch.SctpNet.socket0(Native Method)
>> at sun.nio.ch.SctpNet.socket(SctpNet.java:84)
>> at sun.nio.ch.SctpChannelImpl.<init>(SctpChannelImpl.java:131)
>> at com.sun.nio.sctp.SctpChannel.open(SctpChannel.java:165)
>> at TestSCTP.main(TestSCTP.java:4)
>>
>> I compared the lib in our JDK patched with libsctp with a
>> newly downloaded libsctp for Linux i386 libsctp.so, and it
>> seems as if it's the correct binary.
>>
>> eodenns at ltesim01:~$ ls
>> /usr/java/default/jre/lib/i386/libsctp.so -al -rwxr-xr-x 1
>> root root 24149 2010-02-26 12:25
>> /usr/java/default/jre/lib/i386/libsctp.so
>> eodenns at ltesim01:~$ ls -al libsctp*
>> -rwxrwxrwx 1 eodenns ltesim 24149 2010-03-01 10:05 libsctp (2).so
>>
>>
>> So, why does it not support the SCTP Impl. ?
>>
>> With kind regards
>>
>> // D
>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: checksctp
Type: application/octet-stream
Size: 5396 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/sctp-dev/attachments/20100301/0c59c0e1/attachment-0001.obj
More information about the sctp-dev
mailing list