You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by jamesnot007 <wa...@neusoft.com> on 2007/09/13 17:33:27 UTC
ProtocolCodecFilter makes IoHandler be not called
I tried running mina's example reverser and used jmeter to send some string
to it. However, I did not get any response. After debuging mina, I found the
reason is because the code line :
cfg.getFilterChain().addLast(
"codec",
new ProtocolCodecFilter(new TextLineCodecFactory(Charset
.forName("UTF-8"))));
If I commented it out, ReverseProtocolHandler.messageReceived will be
called. I tried example echoserver too and got the same result.
I used jdk1.5.0_12 and mina 1.1.2 on WinXP. Can any body help me?
--
View this message in context: http://www.nabble.com/ProtocolCodecFilter-makes-IoHandler-be-not-called-tf4436520s16868.html#a12657323
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.
Re: ProtocolCodecFilter makes IoHandler be not called
Posted by jamesnot007 <wa...@neusoft.com>.
Maarten Bosteels-4 wrote:
>
> did you end your string with a newline or carriage return + newline ?
> Have nothing to say but thanks very much.
>
> On 9/13/07, jamesnot007 <wa...@neusoft.com> wrote:
>>
>>
>> I tried running mina's example reverser and used jmeter to send some
>> string
>> to it. However, I did not get any response. After debuging mina, I found
>> the
>> reason is because the code line :
>> cfg.getFilterChain().addLast(
>> "codec",
>> new ProtocolCodecFilter(new TextLineCodecFactory(Charset
>> .forName("UTF-8"))));
>>
>> If I commented it out, ReverseProtocolHandler.messageReceived will be
>> called. I tried example echoserver too and got the same result.
>>
>> I used jdk1.5.0_12 and mina 1.1.2 on WinXP. Can any body help me?
>> --
>> View this message in context:
>> http://www.nabble.com/ProtocolCodecFilter-makes-IoHandler-be-not-called-tf4436520s16868.html#a12657323
>> Sent from the Apache MINA Support Forum mailing list archive at
>> Nabble.com
>> .
>>
>>
>
>
--
View this message in context: http://www.nabble.com/ProtocolCodecFilter-makes-IoHandler-be-not-called-tf4436520s16868.html#a12658658
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.
Re: ProtocolCodecFilter makes IoHandler be not called
Posted by Maarten Bosteels <mb...@gmail.com>.
did you end your string with a newline or carriage return + newline ?
On 9/13/07, jamesnot007 <wa...@neusoft.com> wrote:
>
>
> I tried running mina's example reverser and used jmeter to send some
> string
> to it. However, I did not get any response. After debuging mina, I found
> the
> reason is because the code line :
> cfg.getFilterChain().addLast(
> "codec",
> new ProtocolCodecFilter(new TextLineCodecFactory(Charset
> .forName("UTF-8"))));
>
> If I commented it out, ReverseProtocolHandler.messageReceived will be
> called. I tried example echoserver too and got the same result.
>
> I used jdk1.5.0_12 and mina 1.1.2 on WinXP. Can any body help me?
> --
> View this message in context:
> http://www.nabble.com/ProtocolCodecFilter-makes-IoHandler-be-not-called-tf4436520s16868.html#a12657323
> Sent from the Apache MINA Support Forum mailing list archive at Nabble.com
> .
>
>