users@grizzly.java.net

Re: Problem with SSL

From: John ROM <snake-john_at_gmx.de>
Date: Tue, 30 Sep 2008 17:03:11 +0200

Hi Quende,
> In ClientRegFilter I add client to the map (key ~ SelectionKey, value ~
> object, containing list of messages for the given client)
> In DispatchFilter I parse the message from WorkerThread's ByteBuffer, and
> as
> the answer
> I want to send some data back to client, by passing a callable object from
> the map to the pipeline. The Call method of this object sends one or more
> messages to the given client.
> But instead of sending i'm still getting that NullPointerException.
Just a guess:
In
DispatchFilter after SSLReader you do logically a getDefaultPipeline().execute ( {SSLOutputWriter.flushChannel(..) });

This can't work for SSL because your code will be exeuted on a new WorkerThread
which has no SSL information...


-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx