mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hieu Phan Thanh" <hie...@Cybersoft-VN.com>
Subject [MINA] Exception in thread "SocketAcceptor-1" java.nio.channels.CancelledKeyException (MINA 0.8.2)
Date Mon, 02 Oct 2006 10:14:26 GMT
Hello,

I found a problem when testing my software (a kind of DataCollection
app).
Running environment: Unix (Asianux) with Service Wrapper.

The details of the exception is below:
------------------------------------------------------------------------
---------------------------main    | 2006/10/02 09:18:04 | 2006-10-02
09:18:04:284 [Wrapper-Connection] [com.yokogawa.toshibaks:99] INFO
[][][] - DC is stopping.
main    | 2006/10/02 09:18:04 | 2006-10-02 09:18:04:305
[Wrapper-Connection] [com.yokogawa.toshibaks:285] INFO  [][][] - Stop
listening on all Data ports and close all data sessions...
main    | 2006/10/02 09:18:05 | Exception in thread "SocketAcceptor-1"
java.nio.channels.CancelledKeyException
main    | 2006/10/02 09:18:05 | 	at
sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:55)
main    | 2006/10/02 09:18:05 | 	at
sun.nio.ch.SelectionKeyImpl.readyOps(SelectionKeyImpl.java:69)
main    | 2006/10/02 09:18:05 | 	at
java.nio.channels.SelectionKey.isAcceptable(SelectionKey.java:342)
main    | 2006/10/02 09:18:05 | 	at
org.apache.mina.io.socket.SocketAcceptor$Worker.processSessions(SocketAc
ceptor.java:297)
main    | 2006/10/02 09:18:05 | 	at
org.apache.mina.io.socket.SocketAcceptor$Worker.run(SocketAcceptor.java:
244)
------------------------------------------------------------------------
---------------------------

This error occurrect when I tried to stop the service (./deamon.sh
stop).
=> result: I could not stop the application.

I found the acticle:
http://silicongalaxy.org/linux/programming/libraries/apache-mina-0-8-1./
they told that "CancelledKeyException is not thrown anymore.", is it
corrrect?
I could reproduce this issue for 3 times.
If you have any idea to handle the problem, please give me some advice.

Thanks & best regards,
Hieu Phan.



Mime
View raw message