SCTP not work under openjdk7?
黄文辉
huanghwh at gmail.com
Sun Sep 26 03:07:41 UTC 2010
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
More information about the freebsd-java
mailing list