[jira] [Commented] (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2014-09-10 Thread Emmanuel Lecharny (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14129675#comment-14129675
 ] 

Emmanuel Lecharny commented on DIRMINA-379:
---

Postponed. Someone with a Window machine has to run the tests case.

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara
 Fix For: 2.0.9

 Attachments: MultiConnectTest.java


 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2012-03-15 Thread Brett Wooldridge (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13230025#comment-13230025
 ] 

Brett Wooldridge commented on DIRMINA-379:
--

Another data point.  This error is not limited to Windows, we just saw this on 
Mac OS X 10.7 (Lion).


 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara
 Attachments: MultiConnectTest.java


 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2011-11-15 Thread Rob Eden (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13150877#comment-13150877
 ] 

Rob Eden commented on DIRMINA-379:
--

I'm seeing this problem on Windows 7 with MINA 2.0.3.

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara

 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2011-11-15 Thread Rob Eden (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13150892#comment-13150892
 ] 

Rob Eden commented on DIRMINA-379:
--

Note for the above I added the MultiConnectTest.java attachment.

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara
 Attachments: MultiConnectTest.java


 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2011-11-15 Thread Rob Eden (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13150902#comment-13150902
 ] 

Rob Eden commented on DIRMINA-379:
--

FYI, I do still see this on Java 1.7.0_01.

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara
 Attachments: MultiConnectTest.java


 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2011-09-21 Thread Suhas Sutar (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13109432#comment-13109432
 ] 

Suhas Sutar commented on DIRMINA-379:
-

Guys, 
I am using v1.1.7 and need to address this issue for my application. I cannot 
upgrade because of my timelines but upgrading is not going to help as this seem 
to be still unresolved. I am looking for some suggestions. 
Thanks in advance!

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara

 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2011-09-21 Thread Edouard De Oliveira (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13109520#comment-13109520
 ] 

Edouard De Oliveira commented on DIRMINA-379:
-

according to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7058336
it may be due to a jdk 1.5  1.6 bug it says jdk 1.7 has a rewritten Socket 
adaptator
maybe you can try jdk 1.7 to check if it solves the issue 
dirty hack would be to try to delay as much as possible the socket options 
setting to prevent options to be set on a non open socket  

please note we are not releasing 1.x versions anymore

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara

 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2011-09-21 Thread Suhas Sutar (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13112189#comment-13112189
 ] 

Suhas Sutar commented on DIRMINA-379:
-

Appreciate the prompt reply. Can you please confirm that this issue has not 
been fixed in latest versions of MINA?

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara

 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2011-03-01 Thread christopher kingsbury (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13000770#comment-13000770
 ] 

christopher kingsbury commented on DIRMINA-379:
---

FYI, I see this issue with 2.0.1 on windows 7.  Disabling SocketTcpNoDelay 
resolves the issue, but I suspect will hurt performance in my particular case 
when running on Windows.

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara

 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2010-01-19 Thread Julien Vermillard (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12802257#action_12802257
 ] 

Julien Vermillard commented on DIRMINA-379:
---

is it still a problem with 2.0.0 RC1 ?

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara

 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2009-10-14 Thread Barry Kaplan (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12765602#action_12765602
 ] 

Barry Kaplan commented on DIRMINA-379:
--

Is there any workaround for this with the 1.1.7 ??

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara

 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2008-05-14 Thread Stefano Bagnara (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12596681#action_12596681
 ] 

Stefano Bagnara commented on DIRMINA-379:
-

I see it in a Vista box, never saw it Linux Windows XP.

The *weird* thing is that if I remove any call to keepAlive, reuseAddress and 
tcpNoDelay the application works fine without exception and at full speed under 
vista!!

I hope mina can do something to make my app working in Vista without having to 
run my own hacked mina version. Unfortunately I don't really have the needed 
skills (network knowledge) to provide a good patch (my patch simply remove all 
the set/get for the above properties).

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara

 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2008-05-14 Thread Trustin Lee (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12596796#action_12596796
 ] 

Trustin Lee commented on DIRMINA-379:
-

Stefano, you are using MINA 1.x, right?  MINA 2 has optimized the system calls 
related with socket parameters for fater initialization, so it shouldn't have 
this issue unless you changed any socket parameters.

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara

 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2008-05-13 Thread Sangjin Lee (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12596598#action_12596598
 ] 

Sangjin Lee commented on DIRMINA-379:
-

I also see this issue on Windows 2003 Server...  Which makes me curious.  Is 
this a cross-platform issue or specific to some flavors of Windows?  From Alan 
B's comments, it sounds like a generic issue with these methods?

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara

 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2008-04-24 Thread Daniel Wirtz (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12592065#action_12592065
 ] 

Daniel Wirtz commented on DIRMINA-379:
--

I can confirm this bug under Windows Vista with JRE 1.6.0 Update 3. As far as I 
know it is caused by the JRE, not Mina. I'll try upgrading to Update 5 and 
check if it still exist.

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara
Assignee: Trustin Lee

 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2008-04-24 Thread Daniel Wirtz (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12592088#action_12592088
 ] 

Daniel Wirtz commented on DIRMINA-379:
--

Fully updated Windows Vista, JRE 1.6.0_06 and it is still there:

org.apache.mina.common.RuntimeIoException: java.net.SocketException: Invalid 
argument: sun.nio.ch.Net.setIntOption
at 
org.apache.mina.transport.socket.nio.NioSocketSession$SessionConfigImpl.setKeepAlive(NioSocketSession.java:146)
at 
org.apache.mina.transport.socket.AbstractSocketSessionConfig.doSetAll(AbstractSocketSessionConfig.java:39)
at 
org.apache.mina.common.AbstractIoSessionConfig.setAll(AbstractIoSessionConfig.java:59)
at 
org.apache.mina.transport.socket.nio.NioSocketSession.init(NioSocketSession.java:77)
at 
org.apache.mina.transport.socket.nio.NioSocketConnector.newSession(NioSocketConnector.java:154)
at 
org.apache.mina.transport.socket.nio.NioSocketConnector.newSession(NioSocketConnector.java:45)
at 
org.apache.mina.common.AbstractPollingIoConnector.processSessions(AbstractPollingIoConnector.java:255)
at 
org.apache.mina.common.AbstractPollingIoConnector.access$500(AbstractPollingIoConnector.java:41)
at 
org.apache.mina.common.AbstractPollingIoConnector$Worker.run(AbstractPollingIoConnector.java:299)
at 
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
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:154)
at sun.nio.ch.SocketChannelImpl$1.setInt(SocketChannelImpl.java:406)
at sun.nio.ch.SocketOptsImpl.setBoolean(SocketOptsImpl.java:38)
at sun.nio.ch.SocketOptsImpl.keepAlive(SocketOptsImpl.java:92)
at sun.nio.ch.SocketOptsImpl$IP$TCP.keepAlive(SocketOptsImpl.java:268)
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.NioSocketSession$SessionConfigImpl.setKeepAlive(NioSocketSession.java:144)
... 12 more

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara
Assignee: Trustin Lee

 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let 

[jira] Commented: (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2008-04-24 Thread Daniel Wirtz (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12592104#action_12592104
 ] 

Daniel Wirtz commented on DIRMINA-379:
--

Yes, I think this could be the reason. I tried the following now:

this.connector = new NioSocketConnector(thread_pool, new 
NioProcessor(thread_pool));
this.connector.getSessionConfig().setReuseAddress(true);
etc.

The exception is still thrown, so maybe the Mina SessionConfigImpl used in 
org.apache.mina.transport.socket.nio.NioSocketSession internally does not set 
ReuseAddress before KeepAlive as mentioned in the description you added. Maybe 
changing the internal order can fix it. I also suggest setting ReuseAddress by 
default to true, if it is not yet the default behaviour.

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara
Assignee: Trustin Lee

 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2008-04-24 Thread Stefano Bagnara (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12592132#action_12592132
 ] 

Stefano Bagnara commented on DIRMINA-379:
-

I checked out the latest 1.1 branch (1.1.8-SNAPSHOT).
The first time I ran the tests SocketBindTest failed with the usuale setInt 
exception.
Then I've never been able to reproduce that failure in mina tests.

My application still show the issue so I changed the order of the 
setReuseAddress and setKeepAlive, but my application still failed. So I also 
added a check on the keepAlive to call the setter only when the value is really 
changed and now I don't see the issue anymore.

Here is the patch I'm using:

Index: 
mina-core-1.1/src/main/java/org/apache/mina/transport/socket/nio/SocketSessionImpl.java
===
--- 
mina-core-1.1/src/main/java/org/apache/mina/transport/socket/nio/SocketSessionImpl.java
 (revision 651305)
+++ 
mina-core-1.1/src/main/java/org/apache/mina/transport/socket/nio/SocketSessionImpl.java
 (working copy)
@@ -98,10 +98,10 @@
 IoSessionConfig sessionConfig = serviceConfig.getSessionConfig();
 if (sessionConfig instanceof SocketSessionConfig) {
 SocketSessionConfig cfg = (SocketSessionConfig) sessionConfig;
+this.config.setReuseAddress(cfg.isReuseAddress());
 this.config.setKeepAlive(cfg.isKeepAlive());
 this.config.setOobInline(cfg.isOobInline());
 this.config.setReceiveBufferSize(cfg.getReceiveBufferSize());
-this.config.setReuseAddress(cfg.isReuseAddress());
 this.config.setSendBufferSize(cfg.getSendBufferSize());
 this.config.setSoLinger(cfg.getSoLinger());
 this.config.setTcpNoDelay(cfg.isTcpNoDelay());
@@ -229,7 +229,9 @@
 
 public void setKeepAlive(boolean on) {
 try {
-ch.socket().setKeepAlive(on);
+ if (ch.socket().getKeepAlive() != on) {
+   ch.socket().setKeepAlive(on);
+ }
 } catch (SocketException e) {
 throw new RuntimeIOException(e);
 }


I'll do more tests as soon as I find the time for them.

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara
Assignee: Trustin Lee

 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to 

[jira] Commented: (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2008-04-24 Thread Emmanuel Lecharny (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12592171#action_12592171
 ] 

Emmanuel Lecharny commented on DIRMINA-379:
---

Tanks guys !

Seems that we are progressing in the good direction :)

FYI, generating a diff is just as simple as typing this command :

svn diff  diff.txt

You have to be on the root of the MINA source directory (ie, if you did a svn 
co http://svn...(blah)/mina/trunk mina-2.0.0-M1, you have to be into 
mina-2.0.0-M1 directory to pass the command, so that the complete path will be 
stored into the diff file).

Thanks !

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara
Assignee: Trustin Lee

 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2007-05-23 Thread Trustin Lee (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498121
 ] 

Trustin Lee commented on DIRMINA-379:
-

I don't understand why these two sentences are causing the socket exception.  I 
don't have vista installed yet.  Let me test as soon as possible.  

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara

 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (DIRMINA-379) setKeepAlive/setTcpNoDelay and exceptions in Windows Vista

2007-05-18 Thread Stefano Bagnara (JIRA)

[ 
https://issues.apache.org/jira/browse/DIRMINA-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12497021
 ] 

Stefano Bagnara commented on DIRMINA-379:
-

The only similar issue I found on the internet searching for my exception is 
this: HTTPCORE-29
Maybe the comments to that issue make sense to some of you :-) even if it is 
not MINA related it anyway something related to the reactor pattern on nio and 
setTcpNoDelay call.

 setKeepAlive/setTcpNoDelay and exceptions in Windows Vista
 --

 Key: DIRMINA-379
 URL: https://issues.apache.org/jira/browse/DIRMINA-379
 Project: MINA
  Issue Type: Bug
  Components: Core
Affects Versions: 1.0.3, 1.1.0, 2.0.0-M1
 Environment: Windows Vista Home Premium Italian
 Java SE 1.5.0_11, Java SE 1.6 Update 1, Java SE 1.4.2_12
Reporter: Stefano Bagnara

 When I ran my application under Vista I get this exception:
 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:252)
   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:248)
   ... 7 more
 I had to remove the following lines from the SocketSessionImpl constructor:
 this.config.setKeepAlive( cfg.isKeepAlive() );
 this.config.setTcpNoDelay( cfg.isTcpNoDelay() );
 and now it works.
 No matter if I change the configuration to let them return true or false, I 
 keep getting the exception if I don't remove the call at all.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.