Hi all you guys,
To solve this problem, I think that we should review the source code
more carefully.
I don't know exactly.
But IMO in the "unbind" method we have the "request.wait()" here.
What will happened if the "notify" thread is happened before the "wait"
thread? The "unbind" method will be never returned?
--BEGIN--
synchronized( request )
{
while( !request.done )
{
try
{
request.wait();
}
catch( InterruptedException e )
{
ExceptionMonitor.getInstance().exceptionCaught( e );
}
}
}
--END--
Thanks & best regards,
Hieu Phan.
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 01, 2006 4:27 PM
> To: [email protected]
> Subject: Re: [MINA 0.8.3] Could not stop listening on Port
>
> 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: <[email protected]>
> 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: [email protected]
> > 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
>
>