Hi,
I used Wireshark to see the exchanges between my application and the server
and I've seen that the server has sent the answer back to the cleint and
then closes the session.
My request contains the NEW_LINE at the end of the message string.
Can someone explains me why this causes an exception during the TCP/IP
exchanges.

Thanks a lot
Hamid
What I did not understand is : why I

On Mon, Aug 16, 2010 at 3:57 PM, Emmanuel Lécharny <[email protected]>wrote:

>  On 8/16/10 3:46 PM, Hamid wrote:
>
>> Hi,
>> Thanks to Emmanuel for your help.
>>
>> I added the LoggingFilter before my codec and I got the following logs :
>> 2010-08-16 15:11:02,988 | INFO  | NioProcessor-6 | LoggingFilter
>> | org.apache.mina.filter.logging.LoggingFilter        140 | SENT:
>> HeapBuffer[pos=0 lim=254 cap=254: 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E
>> 3D
>> 22 31...]
>> 2010-08-16 15:11:02,988 | INFO  | NioProcessor-6 | LoggingFilter
>> | org.apache.mina.filter.logging.LoggingFilter        140 | SENT:
>> HeapBuffer[pos=0 lim=0 cap=0: empty]
>> 2010-08-16 15:11:03,051 | WARN  | NioProcessor-6 | LoggingFilter
>> | org.apache.mina.filter.logging.LoggingFilter        122 | EXCEPTION :
>> Session closed....
>>
>> After that I investigated and I discovered that the request message has a
>> RETURN_LINE character (\n or \r) at the end of the request.
>>
>
> Makes sense... It can block everything, sure.
>
>
>  I just trimmed the message before send it to the server and I got the
>> right
>> response.
>>
> Good !
>
>  Thanks a lot for your ideas.
>>
> You're welcome !
>
>
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>
>

Reply via email to