[sctp-dev] FW: Use SCTP with Java 1.6?
Christopher Hegarty - Sun Microsystems Ireland
Christopher.Hegarty at Sun.COM
Mon Mar 1 05:41:53 PST 2010
On 01/03/2010 11:35, Dennis Hjort wrote:
> Again, sorry.
>
> Found the problem, and found another server to act as build-server that
> handles this. :-)
For reference, can you tell us what the problem was.
-Chris.
>
> Thanks again.
>
> // D
>
>> -----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 12:12
>> To: Christopher.Hegarty at Sun.COM
>> Cc: sctp-dev at openjdk.java.net
>> Subject: Re: [sctp-dev] FW: Use SCTP with Java 1.6?
>>
>> Still no go:
>>
>> eodenns at ltesim01:~$ java
>> -Xbootclasspath/a:/proj/ltesim/usr/eodenns/jdk6i86classes/sctp
>> 6.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) eodenns at ltesim01:~$
>> rpm -qa | grep sctp
>> lksctp-tools-devel-1.0.11-1
>> lksctp-tools-1.0.11-1
>>
>> // Dennis
>>
>>> -----Original Message-----
>>> From: Christopher.Hegarty at Sun.COM
>>> [mailto:Christopher.Hegarty at Sun.COM]
>>> Sent: den 1 mars 2010 11:05
>>> To: Dennis Hjort
>>> Cc: sctp-dev at openjdk.java.net
>>> Subject: Re: [sctp-dev] FW: Use SCTP with Java 1.6?
>>>
>>> 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
>>>>>
>>>
>>
More information about the sctp-dev
mailing list