Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Sep 2010 10:41:48 +0800
From:      =?GB2312?B?u8bOxLvU?= <huanghwh@gmail.com>
To:        freebsd-java@freebsd.org
Subject:   SCTP not work under openjdk7?
Message-ID:  <AANLkTimF3Vtw_P1Yw8WDtAtoRzOO2XxPpAK7YNB7etzV@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
hi,
I try to use SCTP under FreeBSD8.1+openjdk7, It seems not work.
I use sample code from http://blogs.sun.com/chegar/entry/sctp_in_java:

%/usr/local/openjdk7/bin/java -version
openjdk version "1.7.0"
OpenJDK Runtime Environment (build 1.7.0-root_2010_07_12_16_38-b00)
OpenJDK 64-Bit Server VM (build 19.0-b03, mixed mode)

%/usr/local/openjdk7/bin/java DaytimeServer
Exception in thread "main" java.lang.AssertionError: Unknown event type
    at sun.nio.ch.SctpPeerAddrChange.<init>(SctpPeerAddrChange.java:75)
    at sun.nio.ch.SctpChannelImpl.receive0(Native Method)
    at
sun.nio.ch.SctpChannelImpl.receiveIntoNativeBuffer(SctpChannelImpl.java:849)
    at sun.nio.ch.SctpChannelImpl.receive(SctpChannelImpl.java:825)
    at sun.nio.ch.SctpChannelImpl.receive(SctpChannelImpl.java:768)
    at sun.nio.ch.SctpChannelImpl.<init>(SctpChannelImpl.java:163)
    at sun.nio.ch.SctpChannelImpl.<init>(SctpChannelImpl.java:141)
    at
sun.nio.ch.SctpServerChannelImpl.accept(SctpServerChannelImpl.java:241)
    at DaytimeServer.main(DaytimeServer.java:35)


%/usr/local/openjdk7/bin/java DaytimeClient
New association setup with 10 outbound streams, and 10 inbound streams.
Exception in thread "main" java.net.SocketException: Connection reset by
peer
    at sun.nio.ch.SctpChannelImpl.receive0(Native Method)
    at
sun.nio.ch.SctpChannelImpl.receiveIntoNativeBuffer(SctpChannelImpl.java:849)
    at sun.nio.ch.SctpChannelImpl.receive(SctpChannelImpl.java:825)
    at sun.nio.ch.SctpChannelImpl.receive(SctpChannelImpl.java:768)
    at sun.nio.ch.SctpChannelImpl.receive(SctpChannelImpl.java:730)
    at DaytimeClient.main(DaytimeClient.java:35)


anyone have this problem?

--hwh



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimF3Vtw_P1Yw8WDtAtoRzOO2XxPpAK7YNB7etzV>