dev@grizzly.java.net

Re: Issue No. 534

From: Minoru Nitta <minoru.nitta_at_jp.fujitsu.com>
Date: Thu, 28 May 2009 09:01:49 +0900

Hi Alexey,



You are quite right. It's my mistake. XD
You have been very helpful. Thank you for your time again.


Minoru

> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net