Salut,
this is a JDK issue:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6693490
JDK 7 b55 and up has the fix, and I'm working with the JDK team to have
it backported to JDK 6 u6.
Thanks!
-- Jeanfrancois
Marc Novakouski wrote:
> Hello,
> We are experiencing a non-fatal exception while using Grizzly 1.8.6 on a
> sporadic basis. The exception shows up with slight differences in both
> the .log file and the .out file (which captures system.out).
>
> In the .log file, we see this:
> 2009-04-24 16:05:22 INFO [pool-2-thread-1] (xServer.java:50) - Starting
> xServer...
> 2009-04-24 16:05:22 INFO [pool-3-thread-1] (PolicyServer.java:33) -
> Starting PolicyServer...
> 2009-04-24 16:05:22 INFO [pool-2-thread-1] (xServer.java:92) - xServer
> started successfully
> 2009-04-25 01:48:15 ERROR [pool-2-thread-1] (xServer.java:97) - xServer
> not started:
> java.io.IOException: File exists
> at sun.nio.ch.EPollArrayWrapper.epollCtl(Native Method)
> at sun.nio.ch.EPollArrayWrapper.updateRegistrations(Unknown Source)
> at sun.nio.ch.EPollArrayWrapper.poll(Unknown Source)
> at sun.nio.ch.EPollSelectorImpl.doSelect(Unknown Source)
> at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
> at sun.nio.ch.SelectorImpl.select(Unknown Source)
> at
> com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:469)
> at com.sun.grizzly.Controller.doSelect(Controller.java:369)
> at
> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:82)
> at
> com.sun.grizzly.Controller.startSelectorHandlerRunner(Controller.java:1136)
> at com.sun.grizzly.Controller.start(Controller.java:943)
> at
> com.playhardsports.core.gcs.controller.xServer$1.run(xServer.java:51)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
> at java.lang.Thread.run(Unknown Source)
>
> In the .out file, we see this:
> Apr 25, 2009 1:48:15 AM com.sun.grizzly.Controller doSelect
> SEVERE: doSelect exception
> java.io.IOException: File exists
> at sun.nio.ch.EPollArrayWrapper.epollCtl(Native Method)
> at sun.nio.ch.EPollArrayWrapper.updateRegistrations(Unknown Source)
> at sun.nio.ch.EPollArrayWrapper.poll(Unknown Source)
> at sun.nio.ch.EPollSelectorImpl.doSelect(Unknown Source)
> at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
> at sun.nio.ch.SelectorImpl.select(Unknown Source)
> at
> com.sun.grizzly.TCPSelectorHandler.select(TCPSelectorHandler.java:469)
> at com.sun.grizzly.Controller.doSelect(Controller.java:369)
> at
> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:82)
> at
> com.sun.grizzly.Controller.startSelectorHandlerRunner(Controller.java:1136)
> at com.sun.grizzly.Controller.start(Controller.java:943)
> at
> com.playhardsports.core.gcs.controller.xServer$1.run(xServer.java:51)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
> at java.lang.Thread.run(Unknown Source)
>
> There are the same number of exception traces in each file.
>
> As I said, this seems to be a non-fatal exception which we can continue
> to operate through, but we would of course prefer to clear it up. Any
> help that anyone can provide in figuring out what is going on would be
> much appreciated.
> Thanks,
> Marc Novakouski
>
>