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