Vijay T wrote:
hi, i have configured my NioSocketAcceptor class with SSL based...im getting
ClassCastException when writing message to client as String (ie..
iosession.write(str))...
actually SSLFilter expects the message in IoBuffer...
also my SSLFilter is on top, before ProtocolCodecFilter..

does it mean that if we are using SSL we should not write message as String?
plz help me.
Vijay,

Regardless of whether you're using SSLFilter or not, all objects that get passed to IoSession.write() have to get converted to an IoBuffer somewhere in the filter chain. This is typically done in MINA using a codec. http://mina.apache.org/tutorial-on-protocolcodecfilter-for-mina-2x.html

-Mike

Reply via email to