From dennis.hjort at ericsson.com Mon Mar 1 01:09:25 2010 From: dennis.hjort at ericsson.com (Dennis Hjort) Date: Mon, 1 Mar 2010 10:09:25 +0100 Subject: [sctp-dev] FW: Use SCTP with Java 1.6? In-Reply-To: <4B5594EE.9030608@sun.com> References: <4B544C5B.1010602@sun.com> <4B5594EE.9030608@sun.com> Message-ID: <7720E77D7815164CAC9354C262441919035F7766@ESESSCMS0359.eemea.ericsson.se> A non-text attachment was scrubbed... Name: smime.p7m Type: application/x-pkcs7-mime Size: 6131 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/sctp-dev/attachments/20100301/9ae450d4/attachment.bin From dennis.hjort at ericsson.com Mon Mar 1 01:36:30 2010 From: dennis.hjort at ericsson.com (Dennis Hjort) Date: Mon, 1 Mar 2010 10:36:30 +0100 Subject: [sctp-dev] FW: Use SCTP with Java 1.6? In-Reply-To: <7720E77D7815164CAC9354C262441919035F7766@ESESSCMS0359.eemea.ericsson.se> References: <4B544C5B.1010602@sun.com> <4B5594EE.9030608@sun.com> <7720E77D7815164CAC9354C262441919035F7766@ESESSCMS0359.eemea.ericsson.se> Message-ID: <7720E77D7815164CAC9354C262441919035F77CC@ESESSCMS0359.eemea.ericsson.se> A non-text attachment was scrubbed... Name: smime.p7m Type: application/x-pkcs7-mime Size: 7090 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/sctp-dev/attachments/20100301/557dc66f/attachment.bin From Christopher.Hegarty at Sun.COM Mon Mar 1 02:04:49 2010 From: Christopher.Hegarty at Sun.COM (Christopher Hegarty - Sun Microsystems Ireland) Date: Mon, 01 Mar 2010 10:04:49 +0000 Subject: [sctp-dev] FW: Use SCTP with Java 1.6? In-Reply-To: <7720E77D7815164CAC9354C262441919035F77CC@ESESSCMS0359.eemea.ericsson.se> References: <4B544C5B.1010602@sun.com> <4B5594EE.9030608@sun.com> <7720E77D7815164CAC9354C262441919035F7766@ESESSCMS0359.eemea.ericsson.se> <7720E77D7815164CAC9354C262441919035F77CC@ESESSCMS0359.eemea.ericsson.se> Message-ID: <4B8B9141.3010508@Sun.COM> 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.(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 From dennis.hjort at ericsson.com Mon Mar 1 02:12:06 2010 From: dennis.hjort at ericsson.com (Dennis Hjort) Date: Mon, 1 Mar 2010 11:12:06 +0100 Subject: [sctp-dev] FW: Use SCTP with Java 1.6? In-Reply-To: <4B8B9141.3010508@Sun.COM> References: <4B544C5B.1010602@sun.com> <4B5594EE.9030608@sun.com> <7720E77D7815164CAC9354C262441919035F7766@ESESSCMS0359.eemea.ericsson.se> <7720E77D7815164CAC9354C262441919035F77CC@ESESSCMS0359.eemea.ericsson.se> <4B8B9141.3010508@Sun.COM> Message-ID: <7720E77D7815164CAC9354C262441919035F7848@ESESSCMS0359.eemea.ericsson.se> A non-text attachment was scrubbed... Name: smime.p7m Type: application/x-pkcs7-mime Size: 9500 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/sctp-dev/attachments/20100301/9025aa9a/attachment.bin From dennis.hjort at ericsson.com Mon Mar 1 03:11:53 2010 From: dennis.hjort at ericsson.com (Dennis Hjort) Date: Mon, 1 Mar 2010 12:11:53 +0100 Subject: [sctp-dev] FW: Use SCTP with Java 1.6? In-Reply-To: <4B8B9141.3010508@Sun.COM> References: <4B544C5B.1010602@sun.com> <4B5594EE.9030608@sun.com> <7720E77D7815164CAC9354C262441919035F7766@ESESSCMS0359.eemea.ericsson.se> <7720E77D7815164CAC9354C262441919035F77CC@ESESSCMS0359.eemea.ericsson.se> <4B8B9141.3010508@Sun.COM> Message-ID: <7720E77D7815164CAC9354C262441919035F78C9@ESESSCMS0359.eemea.ericsson.se> A non-text attachment was scrubbed... Name: smime.p7m Type: application/x-pkcs7-mime Size: 9553 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/sctp-dev/attachments/20100301/635c004f/attachment-0001.bin From dennis.hjort at ericsson.com Mon Mar 1 03:35:52 2010 From: dennis.hjort at ericsson.com (Dennis Hjort) Date: Mon, 1 Mar 2010 12:35:52 +0100 Subject: [sctp-dev] FW: Use SCTP with Java 1.6? In-Reply-To: <7720E77D7815164CAC9354C262441919035F78C9@ESESSCMS0359.eemea.ericsson.se> References: <4B544C5B.1010602@sun.com> <4B5594EE.9030608@sun.com> <7720E77D7815164CAC9354C262441919035F7766@ESESSCMS0359.eemea.ericsson.se> <7720E77D7815164CAC9354C262441919035F77CC@ESESSCMS0359.eemea.ericsson.se> <4B8B9141.3010508@Sun.COM> <7720E77D7815164CAC9354C262441919035F78C9@ESESSCMS0359.eemea.ericsson.se> Message-ID: <7720E77D7815164CAC9354C262441919035F7911@ESESSCMS0359.eemea.ericsson.se> A non-text attachment was scrubbed... Name: smime.p7m Type: application/x-pkcs7-mime Size: 10277 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/sctp-dev/attachments/20100301/fae333b2/attachment.bin From Christopher.Hegarty at Sun.COM Mon Mar 1 05:41:53 2010 From: Christopher.Hegarty at Sun.COM (Christopher Hegarty - Sun Microsystems Ireland) Date: Mon, 01 Mar 2010 13:41:53 +0000 Subject: [sctp-dev] FW: Use SCTP with Java 1.6? In-Reply-To: <7720E77D7815164CAC9354C262441919035F7911@ESESSCMS0359.eemea.ericsson.se> References: <4B544C5B.1010602@sun.com> <4B5594EE.9030608@sun.com> <7720E77D7815164CAC9354C262441919035F7766@ESESSCMS0359.eemea.ericsson.se> <7720E77D7815164CAC9354C262441919035F77CC@ESESSCMS0359.eemea.ericsson.se> <4B8B9141.3010508@Sun.COM> <7720E77D7815164CAC9354C262441919035F78C9@ESESSCMS0359.eemea.ericsson.se> <7720E77D7815164CAC9354C262441919035F7911@ESESSCMS0359.eemea.ericsson.se> Message-ID: <4B8BC421.90108@Sun.COM> 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.(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.(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 >>>>> >>> >> From dennis.hjort at ericsson.com Mon Mar 8 05:03:26 2010 From: dennis.hjort at ericsson.com (Dennis Hjort) Date: Mon, 8 Mar 2010 14:03:26 +0100 Subject: [sctp-dev] FW: Use SCTP with Java 1.6? In-Reply-To: <4B8BC421.90108@Sun.COM> References: <4B544C5B.1010602@sun.com> <4B5594EE.9030608@sun.com> <7720E77D7815164CAC9354C262441919035F7766@ESESSCMS0359.eemea.ericsson.se> <7720E77D7815164CAC9354C262441919035F77CC@ESESSCMS0359.eemea.ericsson.se> <4B8B9141.3010508@Sun.COM> <7720E77D7815164CAC9354C262441919035F78C9@ESESSCMS0359.eemea.ericsson.se> <7720E77D7815164CAC9354C262441919035F7911@ESESSCMS0359.eemea.ericsson.se> <4B8BC421.90108@Sun.COM> Message-ID: <7720E77D7815164CAC9354C26244191903668094@ESESSCMS0359.eemea.ericsson.se> A non-text attachment was scrubbed... Name: smime.p7m Type: application/x-pkcs7-mime Size: 12068 bytes Desc: not available Url : http://mail.openjdk.java.net/pipermail/sctp-dev/attachments/20100308/662fae32/attachment.bin From bruce at cran.org.uk Mon Mar 29 02:25:18 2010 From: bruce at cran.org.uk (Bruce Cran) Date: Mon, 29 Mar 2010 10:25:18 +0100 Subject: [sctp-dev] Windows port Message-ID: <201003291025.18684.bruce@cran.org.uk> On Friday 06 November 2009 16:54:52 Gili wrote: > Hi, > > Now that sctp support is more mature in JDK7, is it possible to revisit > adding Windows support? There are two mature Windows implementations at: > > http://www.sctp.de/sctp-download.html > > and > > http://old.nabble.com/%22SCTP-driver-for-Windows-XP-Vista%22%2C-a-new-versi > on-available-ts21165772.html#a21165772 I've been working on improving the SctpDrv implementation from co-conv since it appears to have been abandoned in late 2008, and have copied the code to https://svn.bluestop.org/viewvc/repos/sctpDrv/trunk/ . It's still definitely beta quality since it's relatively easy to cause Windows to crash, but since working on it I've fixed lots of bugs. It now supports 32-bit XP and both 32- bit and 64-bit versions of Windows Vista/7, and hope to find time to fix the remaining Windows-specific crashes in the next few months. The latest version can be found at http://www.bluestop.org/SctpDrv . -- Bruce Cran From gili.tzabari at gmail.com Mon Mar 29 08:33:37 2010 From: gili.tzabari at gmail.com (gili.tzabari) Date: Mon, 29 Mar 2010 11:33:37 -0400 Subject: [sctp-dev] Windows port In-Reply-To: <201003291025.18684.bruce@cran.org.uk> References: <201003291025.18684.bruce@cran.org.uk> Message-ID: <4BB0C851.4080009@gmail.com> On 29/03/2010 5:25 AM, Bruce Cran wrote: > On Friday 06 November 2009 16:54:52 Gili wrote: > >> Hi, >> >> Now that sctp support is more mature in JDK7, is it possible to revisit >> adding Windows support? There are two mature Windows implementations at: >> >> http://www.sctp.de/sctp-download.html >> >> and >> >> http://old.nabble.com/%22SCTP-driver-for-Windows-XP-Vista%22%2C-a-new-versi >> on-available-ts21165772.html#a21165772 >> > I've been working on improving the SctpDrv implementation from co-conv since > it appears to have been abandoned in late 2008, and have copied the code to > https://svn.bluestop.org/viewvc/repos/sctpDrv/trunk/ . It's still definitely > beta quality since it's relatively easy to cause Windows to crash, but since > working on it I've fixed lots of bugs. It now supports 32-bit XP and both 32- > bit and 64-bit versions of Windows Vista/7, and hope to find time to fix the > remaining Windows-specific crashes in the next few months. > > The latest version can be found at http://www.bluestop.org/SctpDrv . > > Excellent work! I am looking forward to the day we can use sctp under Windows :) Gili