You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "ncanis2 (JIRA)" <ji...@apache.org> on 2009/10/26 04:17:00 UTC
[jira] Created: (DIRMINA-742) Mina doesn't call
sessionClosed(IoSession session) method.
Mina doesn't call sessionClosed(IoSession session) method.
----------------------------------------------------------
Key: DIRMINA-742
URL: https://issues.apache.org/jira/browse/DIRMINA-742
Project: MINA
Issue Type: Bug
Components: Core
Affects Versions: 2.0.0-RC1
Environment: XP
Reporter: ncanis2
It is mina 2.0.0RC1 in my project.
My problem is:
Client was connected with server.
But, when server was exited suddenly, client couldn't call sessionClosed() method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRMINA-742) When session is closed,
DefaultIoFilterChain is in deadlock.
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12801449#action_12801449 ]
Emmanuel Lecharny commented on DIRMINA-742:
-------------------------------------------
You might have a deadlock somewhere else in your code. The DefaultIoFilterChain just switch a flag indicating that the session is now closed.
Can you provide your code ?
A thread dump could help too to know where the lock resides.
> When session is closed, DefaultIoFilterChain is in deadlock.
> ------------------------------------------------------------
>
> Key: DIRMINA-742
> URL: https://issues.apache.org/jira/browse/DIRMINA-742
> Project: MINA
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-RC1
> Environment: XP
> Reporter: ncanis2
> Fix For: 2.0.0-RC2
>
>
> It is mina 2.0.0RC1 in my project.
> My problem is:
> Client was connected with server.
> But, when server was exited suddenly, client couldn't call sessionClosed() method.
> DefaultIoFilterChain.java
> public void fireSessionClosed() {
> // Update future.
> try {
> session.getCloseFuture().setClosed(); <= This is problem. deadlock invoked..
> } catch (Throwable t) {
> fireExceptionCaught(t);
> }
> // And start the chain.
> Entry head = this.head;
> callNextSessionClosed(head, session);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DIRMINA-742) When session is closed,
DefaultIoFilterChain is in deadlock.
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny updated DIRMINA-742:
--------------------------------------
Fix Version/s: (was: 2.0.0-RC2)
2.0.0
> When session is closed, DefaultIoFilterChain is in deadlock.
> ------------------------------------------------------------
>
> Key: DIRMINA-742
> URL: https://issues.apache.org/jira/browse/DIRMINA-742
> Project: MINA
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-RC1
> Environment: XP
> Reporter: ncanis2
> Fix For: 2.0.0
>
>
> It is mina 2.0.0RC1 in my project.
> My problem is:
> Client was connected with server.
> But, when server was exited suddenly, client couldn't call sessionClosed() method.
> DefaultIoFilterChain.java
> public void fireSessionClosed() {
> // Update future.
> try {
> session.getCloseFuture().setClosed(); <= This is problem. deadlock invoked..
> } catch (Throwable t) {
> fireExceptionCaught(t);
> }
> // And start the chain.
> Entry head = this.head;
> callNextSessionClosed(head, session);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (DIRMINA-742) When session is closed,
DefaultIoFilterChain is in deadlock.
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny closed DIRMINA-742.
-------------------------------------
Resolution: Fixed
Ok thanks !
Closing the issue then.
> When session is closed, DefaultIoFilterChain is in deadlock.
> ------------------------------------------------------------
>
> Key: DIRMINA-742
> URL: https://issues.apache.org/jira/browse/DIRMINA-742
> Project: MINA
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-RC1
> Environment: XP
> Reporter: ncanis2
> Fix For: 2.0.0-RC2
>
>
> It is mina 2.0.0RC1 in my project.
> My problem is:
> Client was connected with server.
> But, when server was exited suddenly, client couldn't call sessionClosed() method.
> DefaultIoFilterChain.java
> public void fireSessionClosed() {
> // Update future.
> try {
> session.getCloseFuture().setClosed(); <= This is problem. deadlock invoked..
> } catch (Throwable t) {
> fireExceptionCaught(t);
> }
> // And start the chain.
> Entry head = this.head;
> callNextSessionClosed(head, session);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DIRMINA-742) When session is closed,
DefaultIoFilterChain is in deadlock.
Posted by "ncanis2 (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ncanis2 updated DIRMINA-742:
----------------------------
Description:
It is mina 2.0.0RC1 in my project.
My problem is:
Client was connected with server.
But, when server was exited suddenly, client couldn't call sessionClosed() method.
DefaultIoFilterChain.java
public void fireSessionClosed() {
// Update future.
try {
session.getCloseFuture().setClosed(); <= This is problem. deadlock invoked..
} catch (Throwable t) {
fireExceptionCaught(t);
}
// And start the chain.
Entry head = this.head;
callNextSessionClosed(head, session);
}
was:
It is mina 2.0.0RC1 in my project.
My problem is:
Client was connected with server.
But, when server was exited suddenly, client couldn't call sessionClosed() method.
Summary: When session is closed, DefaultIoFilterChain is in deadlock. (was: Mina doesn't call sessionClosed(IoSession session) method.)
> When session is closed, DefaultIoFilterChain is in deadlock.
> ------------------------------------------------------------
>
> Key: DIRMINA-742
> URL: https://issues.apache.org/jira/browse/DIRMINA-742
> Project: MINA
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-RC1
> Environment: XP
> Reporter: ncanis2
>
> It is mina 2.0.0RC1 in my project.
> My problem is:
> Client was connected with server.
> But, when server was exited suddenly, client couldn't call sessionClosed() method.
> DefaultIoFilterChain.java
> public void fireSessionClosed() {
> // Update future.
> try {
> session.getCloseFuture().setClosed(); <= This is problem. deadlock invoked..
> } catch (Throwable t) {
> fireExceptionCaught(t);
> }
> // And start the chain.
> Entry head = this.head;
> callNextSessionClosed(head, session);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRMINA-742) When session is closed,
DefaultIoFilterChain is in deadlock.
Posted by "ncanis2 (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12802196#action_12802196 ]
ncanis2 commented on DIRMINA-742:
---------------------------------
I think this problem was fixed.
when I used below code, the problem was invoked.
if(session!=null && session.isConnected()) {
session.getCloseFuture().addListener(new IoFutureListener() {
@Override
public void operationComplete(IoFuture future) {
if(dc.isDisposed()==false) {
dc.dispose();
}
}
});
}
Now, I delete the code, after that my problem is perfectly doing work.
You shoud close this Issue.
Thank you.
> When session is closed, DefaultIoFilterChain is in deadlock.
> ------------------------------------------------------------
>
> Key: DIRMINA-742
> URL: https://issues.apache.org/jira/browse/DIRMINA-742
> Project: MINA
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-RC1
> Environment: XP
> Reporter: ncanis2
> Fix For: 2.0.0-RC2
>
>
> It is mina 2.0.0RC1 in my project.
> My problem is:
> Client was connected with server.
> But, when server was exited suddenly, client couldn't call sessionClosed() method.
> DefaultIoFilterChain.java
> public void fireSessionClosed() {
> // Update future.
> try {
> session.getCloseFuture().setClosed(); <= This is problem. deadlock invoked..
> } catch (Throwable t) {
> fireExceptionCaught(t);
> }
> // And start the chain.
> Entry head = this.head;
> callNextSessionClosed(head, session);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DIRMINA-742) When session is closed,
DefaultIoFilterChain is in deadlock.
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRMINA-742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny updated DIRMINA-742:
--------------------------------------
Fix Version/s: 2.0.0-RC2
This need to be investigated and fixed
> When session is closed, DefaultIoFilterChain is in deadlock.
> ------------------------------------------------------------
>
> Key: DIRMINA-742
> URL: https://issues.apache.org/jira/browse/DIRMINA-742
> Project: MINA
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-RC1
> Environment: XP
> Reporter: ncanis2
> Fix For: 2.0.0-RC2
>
>
> It is mina 2.0.0RC1 in my project.
> My problem is:
> Client was connected with server.
> But, when server was exited suddenly, client couldn't call sessionClosed() method.
> DefaultIoFilterChain.java
> public void fireSessionClosed() {
> // Update future.
> try {
> session.getCloseFuture().setClosed(); <= This is problem. deadlock invoked..
> } catch (Throwable t) {
> fireExceptionCaught(t);
> }
> // And start the chain.
> Entry head = this.head;
> callNextSessionClosed(head, session);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.