users@grizzly.java.net

Re: Upgrade to 1.9; byteBuffer not set in WorkerThread

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Mon, 12 Jan 2009 10:24:44 -0500

Salut,

Sebastian Dehne wrote:
> Dear list,
>
> I've upgraded from 1.8.6 to 1.9.3 and used a ExecutorService with own
> ThreadFactoryas shown on
> http://blogs.sun.com/oleksiys/entry/grizzly_1_9_0_executorservice.
>
> However, now I run into a NPE @ ReadFilter:124 because the byteBuffer
> has never been set with this thread. I've done some source-coding
> browsing and it seems to me there is no way this buffer is ever set. The
> method WorkerThreadImpl.createByteBuffer(boolean) is only used if the
> DefaultThreadPool is used, which is not the case here.

Looks like a bug to me. Can you file an issue here so we can fix it for
our 1.9.4 releae (this week).

https://grizzly.dev.java.net/issues/

Thanks!

-- Jeanfrancois

>
> Any suggestions?
>
> Thanks & kind regards,
> Sebastian Dehne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>