You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by El...@sita.aero on 2006/07/12 20:54:20 UTC
messageReceived() & dataRead() not called when Commons.TelnetClient sends
messages
Hello MINA Users,
I'm having a strange problem. I'm running a MINA Server that is very
similar to the echo example. When I telnet to the server to test it,
everything works fine. However, whenever I use the commons.net
TelnetClient, the server receives the message, but neither
messageReceived() or dataRead() is called. (I implemented both
messageReceived(IoSession, Object) & dataRead(IoSession, ByteBuffer)
trying to make it work, I originally only had messageReceived() and it
didn't work that way either.) I know my MINA server is receiving the
messages the TelnetClient is sending because the logger is printing out
messages like this:
17371 [AnonymousIoService-1-15] INFO
aero.sita.bbg.test.mina.examples.echoserver.EchoProtocolHandler -
[/XX.X.X.XX:3323] RECEIVED: DirectBuffer[pos=0 lim=22 cap=8192: 54 65 72
6D 69 6E 61 6C 20 23 32 3A 20 4D 65 73 73 61 67 65 20 30]
17403 [AnonymousIoService-1-14] INFO
aero.sita.bbg.test.mina.examples.echoserver.EchoProtocolHandler -
[/XX.X.X.XX:3341] RECEIVED: DirectBuffer[pos=0 lim=23 cap=8192: 54 65 72
6D 69 6E 61 6C 20 23 31 38 3A 20 4D 65 73 73 61 67 65 20 30]
(I manually replaced the IP address with X's) But the println's in message
Received() & dataRead() are not coming up. I'm using MINA version 0.9.4
and JRE 1.4.2_12. Any assistance you could provide would be greatly
appreciated.
Best Regards,
Elizabeth Clause
Re: messageReceived() & dataRead() not called when Commons.TelnetClient sends messages
Posted by peter royal <pr...@apache.org>.
On Jul 12, 2006, at 2:54 PM, Elizabeth.Clause@sita.aero wrote:
> I'm having a strange problem. I'm running a MINA Server that is
> very
> similar to the echo example. When I telnet to the server to test it,
> everything works fine. However, whenever I use the commons.net
> TelnetClient, the server receives the message, but neither
> messageReceived() or dataRead() is called.
Have you compared what the LoggingFilter outputs in each case to see
if there is a difference in the data payload?
> (I manually replaced the IP address with X's) But the println's in
> message
> Received() & dataRead() are not coming up. I'm using MINA version
> 0.9.4
> and JRE 1.4.2_12. Any assistance you could provide would be greatly
> appreciated.
Do you have any IoFilter's in the chain that could be preventing
propagation of the data?
If all else fails, could you post a small example illustrating the
problem?
thanks!
-pete
--
proyal@apache.org - http://fotap.org/~osi