users@grizzly.java.net

Re: Grizzly server : Uncatched Exception GRAVE: WorkerThreadImpl unexpected exception:

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Mon, 01 Dec 2008 13:58:08 +0100

Hi,

can you pls. show the code? Seems there is async write preprocessor,
which returns null.

Thanks.

WBR,
Alexey.

On Nov 28, 2008, at 20:30 , Survivant 00 wrote:

> I'm doing a a test with breakpoint. The client send requests to the
> server and after few seconds the client close the connection.
>
> I receive this error in the console of my server.
>
> 2008-11-28 14:25:36 com.sun.grizzly.util.WorkerThreadImpl run
> GRAVE: WorkerThreadImpl unexpected exception:
> java.lang.NullPointerException
> at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:322)
> at
> com
> .sun
> .grizzly.async.TCPAsyncQueueWriter.doWrite(TCPAsyncQueueWriter.java:
> 88)
> at
> com
> .sun
> .grizzly
> .async
> .AbstractAsyncQueueWriter.doWrite(AbstractAsyncQueueWriter.java:397)
> at
> com
> .sun
> .grizzly
> .async
> .AbstractAsyncQueueWriter.onWrite(AbstractAsyncQueueWriter.java:303)
> at
> com
> .sun
> .grizzly
> .async
> .AsyncQueueWriterContextTask.doCall(AsyncQueueWriterContextTask.java:
> 86)
> at
> com
> .sun
> .grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
> at
> com
> .sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:
> 335)
> at
> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:194)
>
>
> There is a way to catch this exception ?