You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Stefano Bagnara <ap...@bago.org> on 2007/04/02 16:23:16 UTC
Weird exception using Windows Vista
Hi all,
I just had to switch one of my developing environment to Windows Vista
(Home Premium) and I started having problems with my Mina based projects.
I randomly (around 1 on 5 connections) get similar exceptions:
--------------------
Exception in thread "Thread-4"
org.apache.mina.common.RuntimeIOException: java.net.SocketException:
Invalid argument: sun.nio.ch.Net.setIntOption
at
org.apache.mina.transport.socket.nio.SocketSessionImpl$SessionConfigImpl.setKeepAlive(SocketSessionImpl.java:253)
at
org.apache.mina.transport.socket.nio.SocketSessionImpl.<init>(SocketSessionImpl.java:94)
at
org.apache.mina.transport.socket.nio.SocketConnector.newSession(SocketConnector.java:350)
at
org.apache.mina.transport.socket.nio.SocketConnector.processSessions(SocketConnector.java:290)
at
org.apache.mina.transport.socket.nio.SocketConnector.access$900(SocketConnector.java:53)
at
org.apache.mina.transport.socket.nio.SocketConnector$Worker.run(SocketConnector.java:395)
at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:43)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.SocketException: Invalid argument:
sun.nio.ch.Net.setIntOption
at sun.nio.ch.Net.setIntOption0(Native Method)
at sun.nio.ch.Net.setIntOption(Net.java:152)
at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:372)
at sun.nio.ch.SocketOptsImpl.setBoolean(SocketOptsImpl.java:38)
at sun.nio.ch.SocketOptsImpl.keepAlive(SocketOptsImpl.java:92)
at sun.nio.ch.OptionAdaptor.setKeepAlive(OptionAdaptor.java:139)
at sun.nio.ch.SocketAdaptor.setKeepAlive(SocketAdaptor.java:322)
at
org.apache.mina.transport.socket.nio.SocketSessionImpl$SessionConfigImpl.setKeepAlive(SocketSessionImpl.java:249)
... 7 more
-----------------
I get this error using both jdk 1.5.0_11-b03 and jdk 1.6.0-b105.
I looked the FAQ and searched google for Invalid Argument on
setIntOption but I have found few (imho useless) information.
Does anyone experienced similar issues? Any hint?
Thank you,
Stefano