You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by cyliao <cy...@gmail.com> on 2007/08/07 03:52:26 UTC

why my client show nothing

i run the example in "http://mina.apache.org/quick-start-guide.html".
below is the log at server:
MINA Time server started.
2007-8-7 1:44:04 org.apache.mina.util.SessionLog info
信息: [/127.0.0.1:2006] CREATED
2007-8-7 1:44:04 org.apache.mina.util.SessionLog info
信息: [/127.0.0.1:2006] OPENED
Session created...
2007-8-7 1:44:06 org.apache.mina.util.SessionLog info
信息: [/127.0.0.1:2006] RECEIVED: HeapBuffer[pos=0 lim=4 cap=2048: 6C 6C 0D
0A]
2007-8-7 1:44:06 org.apache.mina.util.SessionLog info
信息: [/127.0.0.1:2006] WRITE: HeapBuffer[pos=0 lim=29 cap=32: 54 75 65 20 41
75 67 20 30 37 20 30 31 3A 34 34 3A 30 36 20 47 4D 54 20 32 30 30 37 0A]
2007-8-7 1:44:06 org.apache.mina.util.SessionLog info
信息: [/127.0.0.1:2006] SENT: HeapBuffer[pos=0 lim=29 cap=32: 54 75 65 20 41
75 67 20 30 37 20 30 31 3A 34 34 3A 30 36 20 47 4D 54 20 32 30 30 37 0A]
2007-8-7 1:44:06 org.apache.mina.util.SessionLog info
信息: [/127.0.0.1:2006] SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
Message written...
2007-8-7 1:44:07 org.apache.mina.util.SessionLog info
信息: [/127.0.0.1:2006] RECEIVED: HeapBuffer[pos=0 lim=4 cap=2048: 64 64 0D
0A]
2007-8-7 1:44:07 org.apache.mina.util.SessionLog info
信息: [/127.0.0.1:2006] WRITE: HeapBuffer[pos=0 lim=29 cap=32: 54 75 65 20 41
75 67 20 30 37 20 30 31 3A 34 34 3A 30 37 20 47 4D 54 20 32 30 30 37 0A]
2007-8-7 1:44:07 org.apache.mina.util.SessionLog info
信息: [/127.0.0.1:2006] SENT: HeapBuffer[pos=0 lim=29 cap=32: 54 75 65 20 41
75 67 20 30 37 20 30 31 3A 34 34 3A 30 37 20 47 4D 54 20 32 30 30 37 0A]
2007-8-7 1:44:07 org.apache.mina.util.SessionLog info
信息: [/127.0.0.1:2006] SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
Message written...

but the client show nothing,why?
-- 
View this message in context: http://www.nabble.com/why-my-client-show-nothing-tf4227599s16868.html#a12027237
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.


Re: why my client show nothing

Posted by Trustin Lee <tr...@gmail.com>.
On 8/7/07, cyliao <cy...@gmail.com> wrote:
>
>
> i use windows xp,the client is cmd.exe
>
> by the way ,use putty,choose raw connection,it shows the input ,but no show
> output.

That's weird.  I ran the time server example on my Windows XP, used
PuTTY and Cygwin telnet client to test the server, and was able to get
the correct response.  Java version was 1.6.0_02-b06.

Could you try to change "UTF-8" to something else such as "US-ASCII"
or "ISO-8859-1" just in case something's wrong with your system
settings?

Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Re: why my client show nothing

Posted by cyliao <cy...@gmail.com>.

i use windows xp,the client is cmd.exe

by the way ,use putty,choose raw connection,it shows the input ,but no show
output.
-- 
View this message in context: http://www.nabble.com/why-my-client-show-nothing-tf4227599s16868.html#a12027929
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.


Re: why my client show nothing

Posted by Trustin Lee <tr...@gmail.com>.
On 8/7/07, cyliao <cy...@gmail.com> wrote:
>
> i run the example in "http://mina.apache.org/quick-start-guide.html".
> below is the log at server:
> MINA Time server started.
> 2007-8-7 1:44:04 org.apache.mina.util.SessionLog info
> 信息: [/127.0.0.1:2006] CREATED
> 2007-8-7 1:44:04 org.apache.mina.util.SessionLog info
> 信息: [/127.0.0.1:2006] OPENED
> Session created...
> 2007-8-7 1:44:06 org.apache.mina.util.SessionLog info
> 信息: [/127.0.0.1:2006] RECEIVED: HeapBuffer[pos=0 lim=4 cap=2048: 6C 6C 0D
> 0A]
> 2007-8-7 1:44:06 org.apache.mina.util.SessionLog info
> 信息: [/127.0.0.1:2006] WRITE: HeapBuffer[pos=0 lim=29 cap=32: 54 75 65 20 41
> 75 67 20 30 37 20 30 31 3A 34 34 3A 30 36 20 47 4D 54 20 32 30 30 37 0A]
> 2007-8-7 1:44:06 org.apache.mina.util.SessionLog info
> 信息: [/127.0.0.1:2006] SENT: HeapBuffer[pos=0 lim=29 cap=32: 54 75 65 20 41
> 75 67 20 30 37 20 30 31 3A 34 34 3A 30 36 20 47 4D 54 20 32 30 30 37 0A]
> 2007-8-7 1:44:06 org.apache.mina.util.SessionLog info
> 信息: [/127.0.0.1:2006] SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
> Message written...
> 2007-8-7 1:44:07 org.apache.mina.util.SessionLog info
> 信息: [/127.0.0.1:2006] RECEIVED: HeapBuffer[pos=0 lim=4 cap=2048: 64 64 0D
> 0A]
> 2007-8-7 1:44:07 org.apache.mina.util.SessionLog info
> 信息: [/127.0.0.1:2006] WRITE: HeapBuffer[pos=0 lim=29 cap=32: 54 75 65 20 41
> 75 67 20 30 37 20 30 31 3A 34 34 3A 30 37 20 47 4D 54 20 32 30 30 37 0A]
> 2007-8-7 1:44:07 org.apache.mina.util.SessionLog info
> 信息: [/127.0.0.1:2006] SENT: HeapBuffer[pos=0 lim=29 cap=32: 54 75 65 20 41
> 75 67 20 30 37 20 30 31 3A 34 34 3A 30 37 20 47 4D 54 20 32 30 30 37 0A]
> 2007-8-7 1:44:07 org.apache.mina.util.SessionLog info
> 信息: [/127.0.0.1:2006] SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
> Message written...
>
> but the client show nothing,why?

What client software are you using? Are you on Windows or *NIX?
Please try PuTTY (choose raw connection) if you are using Windows.

HTH,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6