users@grizzly.java.net

Re: New null pointer error

From: Mark Hig <mark.higginbottom_at_gmail.com>
Date: Mon, 15 Sep 2008 02:18:43 -0700 (PDT)

The new stack trace is:

java.lang.NullPointerException: SelectionKey parameter is null
        at com.sun.grizzly.TCPSelectorHandler.register(TCPSelectorHandler.java:495)
        at com.sun.grizzly.http.SelectorThread.registerKey(SelectorThread.java:603)
        at
com.sun.grizzly.arp.AsyncProtocolFilter.taskEvent(AsyncProtocolFilter.java:193)
        at com.sun.grizzly.http.TaskBase.fireTaskEvent(TaskBase.java:243)
        at
com.sun.grizzly.http.DefaultProcessorTask.terminateProcess(DefaultProcessorTask.java:762)


Oleksiy Stashok wrote:
>
> Mark,
> please try the latest Grizzly 1.8.6-RC1 (see email from Jeanfrancois)
> and let me know.
> You'll probably see the NPE with the different stacktrace, which will
> help us to figure out who registers null SelectionKey.
>
> Thanks.
>
> WBR,
> Alexey.
>
>
>
> On Sep 11, 2008, at 15:03 , Mark Hig wrote:
>
>>
>>
>> Apologies but we have just got the NPE with version 1.8.5.3. We know
>> for
>> sure that this issue did not appear in 1.8.3. The exception is pasted
>> below...
>>
>>
>> 11-Sep-2008 13:59:33 com.sun.grizzly.Controller doSelect
>> SEVERE: doSelect exception
>> java.lang.NullPointerException
>> at
>> com
>> .sun
>> .grizzly
>> .DefaultSelectionKeyHandler.register(DefaultSelectionKeyHandler.java:
>> 160)
>> at
>> com.sun.grizzly.TCPSelectorHandler.onReadOp(TCPSelectorHandler.java:
>> 393)
>> at
>> com
>> .sun
>> .grizzly
>> .TCPSelectorHandler.processPendingOperations(TCPSelectorHandler.java:
>> 371)
>> at
>> com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:
>> 353)
>> at com.sun.grizzly.Controller.doSelect(Controller.java:367)
>> at
>> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:
>> 82)
>> at
>> com
>> .sun.grizzly.Controller.startSelectorHandlerRunner(Controller.java:
>> 1136)
>> at com.sun.grizzly.Controller.start(Controller.java:943)
>> at
>> com
>> .fujitsu
>> .poa.bal.grizzly.entrypoint.ListenerGrizzly.run(ListenerGrizzly.java:
>> 242)
>>
>>
>>
>>
>>
>> Yes our code works fine with 1.8.5.3.
>>
>> Controller code as requested:
>>
>> --
>> View this message in context:
>> http://www.nabble.com/New-null-pointer-error-tp19430618p19434317.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
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>
>
>

-- 
View this message in context: http://www.nabble.com/New-null-pointer-error-tp19430618p19489567.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.