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