Hi Trustin, thanks for the info. I managed to get everything working fine on Linux so I'd assumed it was a Mac JVM issue, but a fix will be great if it means I can develop on Mac.

Best wishes
Igor

On 24 Mar 2008, at 07:13, 이희승 (Trustin Lee) wrote:

It's a known issue in MINA 2.0.0-M1, and the fix already has been
applied to trunk.  The fix will be included in 2.0.0-M2.

2008-03-20 (목), 00:36 +0900, Igor Clark 쓰시길:
Sorry, should have added that that's using "JVM 1.5.0 (Mac OS X
Default)":

[EMAIL PROTECTED] ~ 543]$ java -version
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-
b05-237)
Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)

On 19 Mar 2008, at 15:30, Igor Clark wrote:

Hi there,

I just set up the first MinaTimeServer example from the 2.0.0-M1
archive. It compiles and runs but doesn't seem to work as expected.

The client (telnet) issues a "quit" command, at which point the
server logs INFO: CLOSED and doesn't accept any more input, but
according to the client, the connection is not closed until the
server process is killed. Full output of client/server session is
below.

I've literally copied and pasted the MinaTimeServer and
TimeServerHandler classes from 
http://mina.apache.org/mina-v20-quick-start-guide.html
and only modified acceptor.setLocalAddress() to
setDefaultLocalAddress() as it caused compile errors.

Any ideas why this might be happening? I'm using Eclipse Version:
3.3.1.1 on Mac OS X 10.5.2/Intel.

Many thanks
Igor


[EMAIL PROTECTED] ~ 542]$ telnet localhost 9123
Trying ::1...
Connected to localhost.
Escape character is '^]'.

Wed Mar 19 15:25:55 GMT 2008

Wed Mar 19 15:25:56 GMT 2008

Wed Mar 19 15:25:57 GMT 2008
quit
quit

quit
quit
Connection closed by foreign host.

Server log:

Mar 19, 2008 3:25:54 PM org.apache.mina.filter.logging.LogLevel$4 log
INFO: CREATED
Mar 19, 2008 3:25:54 PM org.apache.mina.filter.logging.LogLevel$4 log
INFO: OPENED
Mar 19, 2008 3:25:55 PM org.apache.mina.filter.logging.LogLevel$4 log
INFO: RECEIVED: HeapBuffer[pos=0 lim=2 cap=2048: 0D 0A]
Mar 19, 2008 3:25:55 PM org.apache.mina.filter.logging.LogLevel$4 log
INFO: SENT: HeapBuffer[pos=0 lim=29 cap=30: 57 65 64 20 4D 61 72 20
31 39 20 31 35 3A 32 35...]
Mar 19, 2008 3:25:55 PM org.apache.mina.filter.logging.LogLevel$4 log
INFO: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
Message written...
Mar 19, 2008 3:25:56 PM org.apache.mina.filter.logging.LogLevel$4 log
INFO: RECEIVED: HeapBuffer[pos=0 lim=2 cap=2048: 0D 0A]
Message written...
Mar 19, 2008 3:25:56 PM org.apache.mina.filter.logging.LogLevel$4 log
INFO: SENT: HeapBuffer[pos=0 lim=29 cap=30: 57 65 64 20 4D 61 72 20
31 39 20 31 35 3A 32 35...]
Mar 19, 2008 3:25:56 PM org.apache.mina.filter.logging.LogLevel$4 log
INFO: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
Mar 19, 2008 3:25:57 PM org.apache.mina.filter.logging.LogLevel$4 log
INFO: RECEIVED: HeapBuffer[pos=0 lim=2 cap=1024: 0D 0A]
Message written...
Mar 19, 2008 3:25:57 PM org.apache.mina.filter.logging.LogLevel$4 log
INFO: SENT: HeapBuffer[pos=0 lim=29 cap=30: 57 65 64 20 4D 61 72 20
31 39 20 31 35 3A 32 35...]
Mar 19, 2008 3:25:57 PM org.apache.mina.filter.logging.LogLevel$4 log
INFO: SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
Mar 19, 2008 3:25:58 PM org.apache.mina.filter.logging.LogLevel$4 log
INFO: RECEIVED: HeapBuffer[pos=0 lim=6 cap=1024: 71 75 69 74 0D 0A]
Mar 19, 2008 3:25:58 PM org.apache.mina.filter.logging.LogLevel$4 log
INFO: CLOSED
[killed]

--
Igor Clark // POKE // 10 Redchurch Street // E2 7DD // +44 (0)20
7749 5355 // www.pokelondon.com





--
Igor Clark // POKE // 10 Redchurch Street // E2 7DD // +44 (0)20 7749
5355 // www.pokelondon.com




--
Trustin Lee - Principal Software Engineer, JBoss, Red Hat
--
what we call human nature is actually human habit
--
http://gleamynode.net/

--
Igor Clark // POKE // 10 Redchurch Street // E2 7DD // +44 (0)20 7749 5355 // www.pokelondon.com




Reply via email to