users@grizzly.java.net

AsyncFilter Example fail

From: lion lion <liuxiang9770_at_msn.com>
Date: Wed, 30 Sep 2009 16:25:11 +0800

Hi, there

I am trying to run AsyncFilter example given in the post (http://www.java.net/blog/2008/07/03/extending-grizzly-http-runtime)
As a result, server can receive the request but browser can not get "Grizzly is soon cool"...
I add a system.out in Callable.call() as following:
.....
System.out.println(asyncExecutor.getProcessorTask());
asyncExecutor.execute();
......
It turned out to be processorTask is null .
Dig into source, I found one possible place to set processorTask is asyncExecutor.postExecute
With guess that there is another filter which set task to null, I set doFilter to return false.
After the change, the example works.

Can you explain what happen internally? The jar I used is grizzly-webserver-1.9.18a.jar

Thanks,
Xiang
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us