You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Emmanuel Lécharny <el...@apache.org> on 2010/01/15 18:49:15 UTC

Re: Problem closing a session

Leandro Casadei a écrit :
>
>> The real problem is that calling dispose() in the listener is not
>> necessarilly a good idea,
>>     
>
>
> I'm not calling it inside the listener.
> I've added the timeout:
>
> future.awaitUninterruptibly(5, TimeUnit.SECONDS);
>
> And threw this exception:
>
> java.lang.IllegalStateException: DEAD LOCK: IoFuture.await() was invoked
> from an I/O processor thread.  Please use IoFutureListener or configure a
> proper thread model alternatively.
>   

Where in your code is the disconnect() method called ?


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com