Hi all you guys:
Yes,This problem defintely exists.I had already reported it,no reply yet...:(
You Mina Team is doing an excellent job.Cheer up
James
----- Original Message ----- From: "Hieu Phan Thanh" <[EMAIL PROTECTED]>
To: <mina-dev@directory.apache.org>
Sent: Wednesday, November 01, 2006 5:20 PM
Subject: RE: [MINA 0.8.3] Could not stop listening on Port


Hi Trustin,

Hi, the problem "Could not stop listening on Port" is occurred once
again today on mina-1.0.0.
I think that the SocketAcceptor.unbindAll() method sometimes is not
returned due to the infinited loop or wait forever.
This problem just occurs sometimes, so i could not reproduce frequently.

My suggestion: add the log messages (by a MinaLoggerUtil like
SessionLog) in order to detect if there is any critical problem.

BTW, when could we receive the new officially build of mina-1.0.1 or
something?

Thanks & best regards,
Hieu Phan.


-----Original Message-----
From: Trustin Lee [mailto:[EMAIL PROTECTED]
Sent: Monday, October 09, 2006 12:24 PM
To: mina-dev@directory.apache.org
Subject: Re: [MINA 0.8.3] Could not stop listening on Port

I already checked in the fix for the problem you mentioned earlier.
Please
try to build the latest snapshot from our source code repository.

On 10/9/06, Hieu Phan Thanh <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
>
>
> I'm using the MINA 0.8.3.
>
> I could not stop my software due to could not stop listening on
port:
>
>
>
> Please see the code below:
>
> =========================================================
>
> public class DCServiceRegistry implements ServiceRegistry {
>
>
>
>       private static Logger m_logger =
> Logger.getLogger(DCServiceRegistry.class);
>
>
>
>       protected final IoAcceptor socketIoAcceptor = new
> SocketAcceptor();
>
>
>
>       protected final ProtocolAcceptor socketProtocolAcceptor= new
> IoProtocolAcceptor(
>
>
> socketIoAcceptor);
>
>
>
>       protected final IoThreadPoolFilter ioThreadPoolFilter = new
> IoThreadPoolFilter();
>
>
>
>       protected final ProtocolThreadPoolFilter
protocolThreadPoolFilter
> = new ProtocolThreadPoolFilter();
>
>
>
>       private final Set services = new HashSet();
>
>
>
>
>
> /**
>
> * Stop listening on an DataPort
>
> */
>
> public synchronized void unbind(Service service) {
>
>             ProtocolAcceptor acceptor = findProtocolAcceptor(service
>
>                         .getTransportType());
>
>             try {
>
>                   String serviceString = service.toString();
>
>                   m_logger.debug("Unbinding service: " +
serviceString);
>
>                   acceptor.unbind(service.getAddress());
>
>                   services.remove(service);
>
>
>
>                   m_logger.debug("Unbind service: " + serviceString
+ "
> successfully.");
>
>                   //
>
>             } catch (Exception e) {
>
>                   m_logger.error("Exception: ", e);
>
>             }
>
>
>
>             stopThreadPools();
>
>
>
>       }
>
> =========================================================
>
>
>
> I think that this problem is inherited from the MINA 0.8.2.
>
> If you have any idea about this issue, your advice is very
appreciation.
>
>
>
> Thanks & best regards,
>
> Hieu Phan.
>
>
>
>
>


--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6


Reply via email to