users@grizzly.java.net

Re: UDP problem after restartarting Controller

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Wed, 23 Jul 2008 17:18:56 +0200

Hi,

here is the issue reason.
Please check your filter UdpFilter.processPacket() method.
There is line:

         ByteArrayInputStream bais = new
ByteArrayInputStream(buffer.array(), 0,
                 buffer.limit());

it should be changed with:

         ByteArrayInputStream bais = new
ByteArrayInputStream(buffer.array(), buffer.arrayOffset(),
                 buffer.limit());

and everything should work :)

Thanks.

WBR,
Alexey.


On Jul 22, 2008, at 17:38 , LittleBear wrote:

>
> It makes no difference, same problem occurs.
>
>
> Oleksiy Stashok wrote:
>>
>>> Oleksiy Stashok wrote:
>>>>
>>>> Hi,
>>>>
>>>> can you pls. attach the sources to reproduce the issue, or at least
>>>> Filters :)
>>>>
>>>> Thanks.
>>>>
>>>> WBR,
>>>> Alexey.
>>>>
>>
>
> --
> View this message in context: http://www.nabble.com/UDP-problem-after-restartarting-Controller-tp18568653p18592235.html
> Sent from the Grizzly - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>