[
https://issues.apache.org/jira/browse/DIRMINA-625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635661#action_12635661
]
ben commented on DIRMINA-625:
-----------------------------
session.write("...").awaitUninterruptibly();
When using synchronous operation would Anomaly have
13:00:30 WARN LoggingFilter - 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.
at
org.apache.mina.core.future.DefaultIoFuture.checkDeadLock(DefaultIoFuture.java:233)
at
org.apache.mina.core.future.DefaultIoFuture.awaitUninterruptibly(DefaultIoFuture.java:139)
at
org.apache.mina.core.future.DefaultWriteFuture.awaitUninterruptibly(DefaultWriteFuture.java:114)
The following code is the same error:
WriteFuture wf = session.write("...").awaitUninterruptibly();
wf.addListener(new IoFutureListener<WriteFuture>(){
@Override
public void operationComplete(WriteFuture future) {
// TODO Auto-generated method stub
future.notifyAll();
}
});
> How to use the function awaitUninterruptibly or await
> -----------------------------------------------------
>
> Key: DIRMINA-625
> URL: https://issues.apache.org/jira/browse/DIRMINA-625
> Project: MINA
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-M3
> Reporter: ben
>
> Always reported abnormal DEAD LOCK, How to use it.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.