Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Mar 2009 12:29:12 -0400 (EDT)
From:      "Mike Jakubik" <mikej@rogers.com>
To:        freebsd-java@freebsd.org
Subject:   Problem with Java NIO  (java.nio.channels.IllegalBlockingModeException)
Message-ID:  <cee3c13c1458da0928d97bb521cfafce.squirrel@wettoast.dyndns.org>

next in thread | raw e-mail | index | archive | help
Greetings java users,

I have been experiencing a randomly occurring problem with one of my java
applications. The application is question is a simple network chat
service, used with an online flash game. This application is known to have
worked without this problem on Linux for over 2 years now, in multiple
deployments. This leads me to believe that either the Linux JDK/network is
lax on error checks or there is a problem with the FreeBSD JDK/network
implementation. Below is the error that causes the application to stop
responding to network requests.

---
INFO   | jvm 1    | 2009/03/08 21:04:25 | Exception in thread "Thread-0"
java.nio.channels.IllegalBlockingModeException
INFO   | jvm 1    | 2009/03/08 21:04:25 | 	at
sun.nio.ch.ServerSocketAdaptor.accept(ServerSocketAdaptor.java:104)
INFO   | jvm 1    | 2009/03/08 21:04:25 | 	at
com.precyse.chat.service.connector.ServerSocketChannelConnector.registerSelection(ServerSocketChannelConnector.java:404)
INFO   | jvm 1    | 2009/03/08 21:04:25 | 	at
com.precyse.chat.service.connector.ServerSocketChannelConnector.run(ServerSocketChannelConnector.java:148)
---


http://java.sun.com/j2se/1.4.2/docs/api/java/nio/channels/SelectableChannel.html


Unfortunately i do not have access to the source code of this app. I have
tried diablo JDK 1.5 and 1.6, as well as the OpenJDK 1.6 port. I am
running a recent build of 7.1-AMD64. Any help would be greatly
appreciated, i would hate to have to switch to linux because of this.

Thank you.





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