dev@grizzly.java.net

Re: Issue No. 534

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Wed, 27 May 2009 18:24:33 +0200

Hi Minoru,

IMHO the problem is caused by CustomThreadPool, where you execute the
same task in 2 threads simultaneously:

     @Override public void execute(Runnable command){
                if (command instanceof CallbackHandlerContextTask){
                        Context context = ((CallbackHandlerContextTask)command).getContext();
                        if (context != null && context.getCurrentOpType() ==
OpType.OP_CONNECT)
                                connectPool.execute(command);
                }
                super.execute(command);
     }

probably you supposed to add "break" in if block?

Thanks.

WBR,
Alexey.


On May 27, 2009, at 8:59 , Minoru Nitta wrote:

> Hi Alexey,
>
>
> Sorry for late reply. Please find an enclosed attachment which causes
> NullPointerException.
>
> I tested the program with Grizzly revision 3194. Actually, I modified
> Grizzly revision 3194 because it does not work well for UDP on multi
> CPU machine (issue 600).
>
> The test program simulates SIP protocol.
>
>
> UAC Grizzly UAS
> -------> ------>
> <------- <------
>
> Thank you for your help.
>
>
> Minoru
>
>> Hi Minoru,
>>
>>>>
>>>> can you pls. try rev. 3194?
>>>
>>> The result was as same as before.
>>>
>>>> You're using ARP, right?
>>>
>>> No. I am using SIP (UDP). I guess the following case is OK.
>>>
>>> request
>>> -------> Grizzly
>>> response
>>> <------
>>>
>>>
>>> The following case may be the problem.
>>>
>>> request
>>> ---------->
>>> Grizzly response
>>> <----------
>>>
>>> In client side, I am using CacheableConnectorHandlerPool (and
>>> CacheableConnectorHandler).
>> I see.
>> I'll take a look one more time there. Can I ask you to send me some
>> small testcase, which reproduces the issue? It will help a lot.
>>
>> Thank you.
>>
>> WBR,
>> Alexey.
>>
> <grizzly-
> test
> .zip
> >---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net