|
@@ -77,17 +77,13 @@ public class NIOServerCnxn implements Watcher, ServerCnxn {
|
|
|
LOG.error("Thread " + t + " died", e);
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
/**
|
|
|
* this is to avoid the jvm bug:
|
|
|
* NullPointerException in Selector.open()
|
|
|
* http://bugs.sun.com/view_bug.do?bug_id=6427854
|
|
|
*/
|
|
|
- try {
|
|
|
- Selector.open().close();
|
|
|
- } catch(IOException ie) {
|
|
|
- LOG.error("Exception while opening a selector", ie);
|
|
|
- }
|
|
|
+ System.setProperty("sun.nio.ch.bugLevel",
|
|
|
+ System.getProperty("sun.nio.ch.bugLevel",""));
|
|
|
}
|
|
|
|
|
|
static public class Factory extends Thread {
|