dev@grizzly.java.net

Re: Issue No. 534

From: Minoru Nitta <minoru.nitta_at_jp.fujitsu.com>
Date: Mon, 27 Apr 2009 10:35:31 +0900

Hi Alexey,


 I tested my program with grizzly-framework-1.9.15-20090423.170629-3.jar
and grizzly-utils-1.9.15-20090423.170629-3.jar. Unfortunately the result
was as same as before. I investigated the problem a little, and I found
out that instance of SelectionKeyContextTask was actually a
CallbackHandlerContextTask.

 CallbacHandlerContextTask is executed in a separate thread in principle.
So I think SelectionKeyContextTask.call method must be thread safe
(synchronized method). I modified the source code of Grizzly and tested it,
then, NullPointerException did not occur.

 Does this make sense?

Thanks,

Minoru

> Hi Minoru,
>
> can you pls. try the latest 1.9.15 built from sources (cause I'm not
> sure when snapshot will become available on maven)
>
> WBR,
> Alexey.
>