[jira] Commented: (DIRMINA-742) When session is closed, DefaultIoFilterChain is in deadlock.
[ https://issues.apache.org/jira/browse/DIRMINA-742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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.
[ 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] 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-714) Packet sequence is unordered in multi thread.
[ https://issues.apache.org/jira/browse/DIRMINA-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12724037#action_12724037 ] ncanis2 commented on DIRMINA-714: - Thanks for your reply. I would check DIRMINA-679 .. maybe. Packet sequence is unordered in multi thread. - Key: DIRMINA-714 URL: https://issues.apache.org/jira/browse/DIRMINA-714 Project: MINA Issue Type: Bug Components: Filter Affects Versions: 2.0.0-M5 Environment: xp Reporter: ncanis2 Assignee: Edouard De Oliveira Fix For: 2.0.0-M7 Attachments: mina_m6_seq_test_src.zip, org.zip Hi. Packet sequence is unordered. = Server Client = chain.addLast(codec, new ProtocolCodecFilter(rcf)); chain.addLast(executor, getExecuteFilter());= OrderedThreadPoolExecutor c = new OrderedThreadPoolExecutor(20,100); If server send 1,2,3,4,5,6 , client receive 1,2,3,4,6 from server. Clients : 100. where I am wrong? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRMINA-714) Packet sequence is unordered in multi thread.
[ https://issues.apache.org/jira/browse/DIRMINA-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12723835#action_12723835 ] ncanis2 commented on DIRMINA-714: - I was right.. I have still NullPointerException in DefaultIoFilterChain.java. in my source,nothing changed except ExecutorFilter class = org.apache.mina.filter.codec.ProtocolEncoderException: java.lang.NullPointerException at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:316) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:505) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$7(DefaultIoFilterChain.java:500) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:813) at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:79) at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:801) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:793) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:735) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.NullPointerException at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:301) ... 9 more Packet sequence is unordered in multi thread. - Key: DIRMINA-714 URL: https://issues.apache.org/jira/browse/DIRMINA-714 Project: MINA Issue Type: Bug Components: Filter Affects Versions: 2.0.0-M5 Environment: xp Reporter: ncanis2 Assignee: Edouard De Oliveira Fix For: 2.0.0-M7 Attachments: mina_m6_seq_test_src.zip, org.zip Hi. Packet sequence is unordered. = Server Client = chain.addLast(codec, new ProtocolCodecFilter(rcf)); chain.addLast(executor, getExecuteFilter());= OrderedThreadPoolExecutor c = new OrderedThreadPoolExecutor(20,100); If server send 1,2,3,4,5,6 , client receive 1,2,3,4,6 from server. Clients : 100. where I am wrong? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Reopened: (DIRMINA-714) Packet sequence is unordered in multi thread.
[ https://issues.apache.org/jira/browse/DIRMINA-714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ncanis2 reopened DIRMINA-714: - After I patched ExecutorFilter, I got follow Exception. = org.apache.mina.filter.codec.ProtocolEncoderException: java.lang.NullPointerException at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:316) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:505) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$7(DefaultIoFilterChain.java:500) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:813) at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:79) at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:801) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:793) at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:735) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.NullPointerException at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:301) ... 9 more Packet sequence is unordered in multi thread. - Key: DIRMINA-714 URL: https://issues.apache.org/jira/browse/DIRMINA-714 Project: MINA Issue Type: Bug Components: Filter Affects Versions: 2.0.0-M5 Environment: xp Reporter: ncanis2 Assignee: Edouard De Oliveira Fix For: 2.0.0-M7 Attachments: mina_m6_seq_test_src.zip, org.zip Hi. Packet sequence is unordered. = Server Client = chain.addLast(codec, new ProtocolCodecFilter(rcf)); chain.addLast(executor, getExecuteFilter());= OrderedThreadPoolExecutor c = new OrderedThreadPoolExecutor(20,100); If server send 1,2,3,4,5,6 , client receive 1,2,3,4,6 from server. Clients : 100. where I am wrong? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRMINA-714) Packet sequence is unordered in multi thread.
[ https://issues.apache.org/jira/browse/DIRMINA-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12723375#action_12723375 ] ncanis2 commented on DIRMINA-714: - I have question. I already said, after I received new ExecutorFilter, I got new error. But I didn't update like this. I only updated ExecotorFilter.java Should I change my Filters like this: ? // filter RomiProtocolCodecFactory rcf = new RomiProtocolCodecFactory(true); chain.addLast(executorWrite, new ExecutorFilter(20, 100, IoEventType.WRITE, IoEventType.CLOSE, IoEventType.EXCEPTION_CAUGHT, IoEventType.MESSAGE_RECEIVED, IoEventType.MESSAGE_SENT)); chain.addLast(codec, new ProtocolCodecFilter(rcf)); chain.addLast(executorAfter, new ExecutorFilter(20, 100, IoEventType.WRITE, IoEventType.CLOSE, IoEventType.EXCEPTION_CAUGHT, IoEventType.MESSAGE_RECEIVED, IoEventType.MESSAGE_SENT)); Packet sequence is unordered in multi thread. - Key: DIRMINA-714 URL: https://issues.apache.org/jira/browse/DIRMINA-714 Project: MINA Issue Type: Bug Components: Filter Affects Versions: 2.0.0-M5 Environment: xp Reporter: ncanis2 Assignee: Edouard De Oliveira Fix For: 2.0.0-M7 Attachments: mina_m6_seq_test_src.zip, org.zip Hi. Packet sequence is unordered. = Server Client = chain.addLast(codec, new ProtocolCodecFilter(rcf)); chain.addLast(executor, getExecuteFilter());= OrderedThreadPoolExecutor c = new OrderedThreadPoolExecutor(20,100); If server send 1,2,3,4,5,6 , client receive 1,2,3,4,6 from server. Clients : 100. where I am wrong? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRMINA-714) Packet sequence is unordered in multi thread.
[ https://issues.apache.org/jira/browse/DIRMINA-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12722899#action_12722899 ] ncanis2 commented on DIRMINA-714: - Thank you so much. It worked perfectly for 2 hours. I'll test more for long time. after that I'll comment again. Packet sequence is unordered in multi thread. - Key: DIRMINA-714 URL: https://issues.apache.org/jira/browse/DIRMINA-714 Project: MINA Issue Type: Bug Components: Filter Affects Versions: 2.0.0-M5 Environment: xp Reporter: ncanis2 Assignee: Edouard De Oliveira Fix For: 2.0.0-M7 Attachments: mina_m6_seq_test_src.zip, org.zip Hi. Packet sequence is unordered. = Server Client = chain.addLast(codec, new ProtocolCodecFilter(rcf)); chain.addLast(executor, getExecuteFilter());= OrderedThreadPoolExecutor c = new OrderedThreadPoolExecutor(20,100); If server send 1,2,3,4,5,6 , client receive 1,2,3,4,6 from server. Clients : 100. where I am wrong? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRMINA-718) Sometimes AbstractIoSession.toString() invoked java.net.SocketException
[ https://issues.apache.org/jira/browse/DIRMINA-718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12719961#action_12719961 ] ncanis2 commented on DIRMINA-718: - Yes. I see them. But, this problem invoked on MINA-M6. Sometimes AbstractIoSession.toString() invoked java.net.SocketException --- Key: DIRMINA-718 URL: https://issues.apache.org/jira/browse/DIRMINA-718 Project: MINA Issue Type: Bug Components: Core Affects Versions: 2.0.0-M6 Environment: xp Reporter: ncanis2 Assignee: Edouard De Oliveira Sometimes AbstractIoSession.toString() method invoked java.net.SocketException. That was java.lang.Error. so my program was exited. I think this problem was continuing since 2.0M2 or 3 === java.lang.Error: java.net.SocketException: Socket operation on nonsocket: getsockname at sun.nio.ch.Net.localAddress(Net.java:125) at sun.nio.ch.SocketChannelImpl.localAddress(SocketChannelImpl.java:430) at sun.nio.ch.SocketAdaptor.getLocalAddress(SocketAdaptor.java:147) at java.net.Socket.getLocalSocketAddress(Socket.java:697) at org.apache.mina.transport.socket.nio.NioSocketSession.getLocalAddress(NioSocketSession.java:158) at org.apache.mina.transport.socket.nio.NioSocketSession.getLocalAddress(NioSocketSession.java:1) at org.apache.mina.core.session.AbstractIoSession.toString(AbstractIoSession.java:1147) at java.lang.String.valueOf(String.java:2827) at java.lang.StringBuilder.append(StringBuilder.java:115) at com.rontab.bake.net.ClientEventAbstract.sendServer(ClientEventAbstract.java:256) at com.rontab.bake.net.ClientEventAbstract.send(ClientEventAbstract.java:241) at com.rontab.bake.net.protocols.room.PCreateRoom.sendMakeRoom(PCreateRoom.java:193) at com.rontab.bake.bui.comp.roomlist.createroom.CreateRoomEventProcessor.makeRoom(CreateRoomEventProcessor.java:53) at com.rontab.bake.bui.comp.roomlist.createroom.CreateRoomCont.roomSetting(CreateRoomCont.java:371) at com.rontab.bake.bui.comp.roomlist.createroom.CreateRoomCont.createRoom(CreateRoomCont.java:383) at com.rontab.bake.bui.comp.roomlist.createroom.CreateRoomCont$3.mouseReleased(CreateRoomCont.java:219) at com.jmex.bui.event.MouseEvent.dispatch(MouseEvent.java:209) at com.jmex.bui.BComponent.dispatchEvent(BComponent.java:789) at com.jmex.bui.BRootNode.dispatchEvent(BRootNode.java:469) at com.jmex.bui.PolledRootNode$2.dispatchEvent(PolledRootNode.java:268) at com.jmex.bui.PolledRootNode$2.onButton(PolledRootNode.java:237) at com.jme.input.lwjgl.LWJGLMouseInput.update(LWJGLMouseInput.java:233) at com.jme.input.InputSystem.update(InputSystem.java:67) at com.rontab.bim.app.RontabGame.start(RontabGame.java:78) at com.rontab.bake.Bake.main(Bake.java:177) Caused by: java.net.SocketException: Socket operation on nonsocket: getsockname at sun.nio.ch.Net.localInetAddress(Native Method) at sun.nio.ch.Net.localAddress(Net.java:122) ... 24 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (DIRMINA-718) Sometimes AbstractIoSession.toString() invoked java.net.SocketException
[ https://issues.apache.org/jira/browse/DIRMINA-718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12719961#action_12719961 ] ncanis2 edited comment on DIRMINA-718 at 6/16/09 12:28 AM: --- Yes. I saw that But, this problem invoked on MINA-M6. was (Author: ncanis2): Yes. I see them. But, this problem invoked on MINA-M6. Sometimes AbstractIoSession.toString() invoked java.net.SocketException --- Key: DIRMINA-718 URL: https://issues.apache.org/jira/browse/DIRMINA-718 Project: MINA Issue Type: Bug Components: Core Affects Versions: 2.0.0-M6 Environment: xp Reporter: ncanis2 Assignee: Edouard De Oliveira Sometimes AbstractIoSession.toString() method invoked java.net.SocketException. That was java.lang.Error. so my program was exited. I think this problem was continuing since 2.0M2 or 3 === java.lang.Error: java.net.SocketException: Socket operation on nonsocket: getsockname at sun.nio.ch.Net.localAddress(Net.java:125) at sun.nio.ch.SocketChannelImpl.localAddress(SocketChannelImpl.java:430) at sun.nio.ch.SocketAdaptor.getLocalAddress(SocketAdaptor.java:147) at java.net.Socket.getLocalSocketAddress(Socket.java:697) at org.apache.mina.transport.socket.nio.NioSocketSession.getLocalAddress(NioSocketSession.java:158) at org.apache.mina.transport.socket.nio.NioSocketSession.getLocalAddress(NioSocketSession.java:1) at org.apache.mina.core.session.AbstractIoSession.toString(AbstractIoSession.java:1147) at java.lang.String.valueOf(String.java:2827) at java.lang.StringBuilder.append(StringBuilder.java:115) at com.rontab.bake.net.ClientEventAbstract.sendServer(ClientEventAbstract.java:256) at com.rontab.bake.net.ClientEventAbstract.send(ClientEventAbstract.java:241) at com.rontab.bake.net.protocols.room.PCreateRoom.sendMakeRoom(PCreateRoom.java:193) at com.rontab.bake.bui.comp.roomlist.createroom.CreateRoomEventProcessor.makeRoom(CreateRoomEventProcessor.java:53) at com.rontab.bake.bui.comp.roomlist.createroom.CreateRoomCont.roomSetting(CreateRoomCont.java:371) at com.rontab.bake.bui.comp.roomlist.createroom.CreateRoomCont.createRoom(CreateRoomCont.java:383) at com.rontab.bake.bui.comp.roomlist.createroom.CreateRoomCont$3.mouseReleased(CreateRoomCont.java:219) at com.jmex.bui.event.MouseEvent.dispatch(MouseEvent.java:209) at com.jmex.bui.BComponent.dispatchEvent(BComponent.java:789) at com.jmex.bui.BRootNode.dispatchEvent(BRootNode.java:469) at com.jmex.bui.PolledRootNode$2.dispatchEvent(PolledRootNode.java:268) at com.jmex.bui.PolledRootNode$2.onButton(PolledRootNode.java:237) at com.jme.input.lwjgl.LWJGLMouseInput.update(LWJGLMouseInput.java:233) at com.jme.input.InputSystem.update(InputSystem.java:67) at com.rontab.bim.app.RontabGame.start(RontabGame.java:78) at com.rontab.bake.Bake.main(Bake.java:177) Caused by: java.net.SocketException: Socket operation on nonsocket: getsockname at sun.nio.ch.Net.localInetAddress(Native Method) at sun.nio.ch.Net.localAddress(Net.java:122) ... 24 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRMINA-718) Sometimes AbstractIoSession.toString() invoked java.net.SocketException
[ https://issues.apache.org/jira/browse/DIRMINA-718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12720419#action_12720419 ] ncanis2 commented on DIRMINA-718: - Thanks. I applied the patch. Sometimes AbstractIoSession.toString() invoked java.net.SocketException --- Key: DIRMINA-718 URL: https://issues.apache.org/jira/browse/DIRMINA-718 Project: MINA Issue Type: Bug Components: Core Affects Versions: 2.0.0-M6 Environment: xp Reporter: ncanis2 Assignee: Emmanuel Lecharny Sometimes AbstractIoSession.toString() method invoked java.net.SocketException. That was java.lang.Error. so my program was exited. I think this problem was continuing since 2.0M2 or 3 === java.lang.Error: java.net.SocketException: Socket operation on nonsocket: getsockname at sun.nio.ch.Net.localAddress(Net.java:125) at sun.nio.ch.SocketChannelImpl.localAddress(SocketChannelImpl.java:430) at sun.nio.ch.SocketAdaptor.getLocalAddress(SocketAdaptor.java:147) at java.net.Socket.getLocalSocketAddress(Socket.java:697) at org.apache.mina.transport.socket.nio.NioSocketSession.getLocalAddress(NioSocketSession.java:158) at org.apache.mina.transport.socket.nio.NioSocketSession.getLocalAddress(NioSocketSession.java:1) at org.apache.mina.core.session.AbstractIoSession.toString(AbstractIoSession.java:1147) at java.lang.String.valueOf(String.java:2827) at java.lang.StringBuilder.append(StringBuilder.java:115) at com.rontab.bake.net.ClientEventAbstract.sendServer(ClientEventAbstract.java:256) at com.rontab.bake.net.ClientEventAbstract.send(ClientEventAbstract.java:241) at com.rontab.bake.net.protocols.room.PCreateRoom.sendMakeRoom(PCreateRoom.java:193) at com.rontab.bake.bui.comp.roomlist.createroom.CreateRoomEventProcessor.makeRoom(CreateRoomEventProcessor.java:53) at com.rontab.bake.bui.comp.roomlist.createroom.CreateRoomCont.roomSetting(CreateRoomCont.java:371) at com.rontab.bake.bui.comp.roomlist.createroom.CreateRoomCont.createRoom(CreateRoomCont.java:383) at com.rontab.bake.bui.comp.roomlist.createroom.CreateRoomCont$3.mouseReleased(CreateRoomCont.java:219) at com.jmex.bui.event.MouseEvent.dispatch(MouseEvent.java:209) at com.jmex.bui.BComponent.dispatchEvent(BComponent.java:789) at com.jmex.bui.BRootNode.dispatchEvent(BRootNode.java:469) at com.jmex.bui.PolledRootNode$2.dispatchEvent(PolledRootNode.java:268) at com.jmex.bui.PolledRootNode$2.onButton(PolledRootNode.java:237) at com.jme.input.lwjgl.LWJGLMouseInput.update(LWJGLMouseInput.java:233) at com.jme.input.InputSystem.update(InputSystem.java:67) at com.rontab.bim.app.RontabGame.start(RontabGame.java:78) at com.rontab.bake.Bake.main(Bake.java:177) Caused by: java.net.SocketException: Socket operation on nonsocket: getsockname at sun.nio.ch.Net.localInetAddress(Native Method) at sun.nio.ch.Net.localAddress(Net.java:122) ... 24 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Created: (DIRMINA-718) Sometimes AbstractIoSession.toString() invoked java.net.SocketException
Sometimes AbstractIoSession.toString() invoked java.net.SocketException --- Key: DIRMINA-718 URL: https://issues.apache.org/jira/browse/DIRMINA-718 Project: MINA Issue Type: Bug Components: Core Affects Versions: 2.0.0-M6 Environment: xp Reporter: ncanis2 Sometimes AbstractIoSession.toString() method invoked java.net.SocketException. That was java.lang.Error. so my program was exited. I think this problem was continuing since 2.0M2 or 3 === java.lang.Error: java.net.SocketException: Socket operation on nonsocket: getsockname at sun.nio.ch.Net.localAddress(Net.java:125) at sun.nio.ch.SocketChannelImpl.localAddress(SocketChannelImpl.java:430) at sun.nio.ch.SocketAdaptor.getLocalAddress(SocketAdaptor.java:147) at java.net.Socket.getLocalSocketAddress(Socket.java:697) at org.apache.mina.transport.socket.nio.NioSocketSession.getLocalAddress(NioSocketSession.java:158) at org.apache.mina.transport.socket.nio.NioSocketSession.getLocalAddress(NioSocketSession.java:1) at org.apache.mina.core.session.AbstractIoSession.toString(AbstractIoSession.java:1147) at java.lang.String.valueOf(String.java:2827) at java.lang.StringBuilder.append(StringBuilder.java:115) at com.rontab.bake.net.ClientEventAbstract.sendServer(ClientEventAbstract.java:256) at com.rontab.bake.net.ClientEventAbstract.send(ClientEventAbstract.java:241) at com.rontab.bake.net.protocols.room.PCreateRoom.sendMakeRoom(PCreateRoom.java:193) at com.rontab.bake.bui.comp.roomlist.createroom.CreateRoomEventProcessor.makeRoom(CreateRoomEventProcessor.java:53) at com.rontab.bake.bui.comp.roomlist.createroom.CreateRoomCont.roomSetting(CreateRoomCont.java:371) at com.rontab.bake.bui.comp.roomlist.createroom.CreateRoomCont.createRoom(CreateRoomCont.java:383) at com.rontab.bake.bui.comp.roomlist.createroom.CreateRoomCont$3.mouseReleased(CreateRoomCont.java:219) at com.jmex.bui.event.MouseEvent.dispatch(MouseEvent.java:209) at com.jmex.bui.BComponent.dispatchEvent(BComponent.java:789) at com.jmex.bui.BRootNode.dispatchEvent(BRootNode.java:469) at com.jmex.bui.PolledRootNode$2.dispatchEvent(PolledRootNode.java:268) at com.jmex.bui.PolledRootNode$2.onButton(PolledRootNode.java:237) at com.jme.input.lwjgl.LWJGLMouseInput.update(LWJGLMouseInput.java:233) at com.jme.input.InputSystem.update(InputSystem.java:67) at com.rontab.bim.app.RontabGame.start(RontabGame.java:78) at com.rontab.bake.Bake.main(Bake.java:177) Caused by: java.net.SocketException: Socket operation on nonsocket: getsockname at sun.nio.ch.Net.localInetAddress(Native Method) at sun.nio.ch.Net.localAddress(Net.java:122) ... 24 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (DIRMINA-714) Packet sequence is unordered in multi thread.
[ https://issues.apache.org/jira/browse/DIRMINA-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12715410#action_12715410 ] ncanis2 edited comment on DIRMINA-714 at 6/2/09 1:12 AM: - Thank you for your reply. But I have still something bug. === After I read your reply, received the newest source from svn(mina). But, I still had problem in heavy load server. ( about 500 clients ) This is server log [16:51]-S[DemuxRomiDecoder(decodeBody:162)]:Trace Log =MSG Recv seq=140, protocol=14 [16:51]-S[DemuxRomiDecoder(decodeBody:162)]:Trace Log =MSG Recv seq=141, protocol=13 [16:51]-S[DemuxRomiDecoder(decodeBody:162)]:Trace Log =MSG Recv seq=142, protocol=14 [16:51]-S[DemuxRomiDecoder(decodeBody:162)]:Trace Log =MSG Recv seq=144, protocol=19 This is client log [2009-06-02 16:51] ERROR [GameEventFilter(close:108)] :Trace Log =Really MSG Sent= protocol=13, seq=141 [2009-06-02 16:51] ERROR [GameEventFilter(close:108)] :Trace Log =Really MSG Sent= protocol=14, seq=142 [2009-06-02 16:51] ERROR [GameEventFilter(close:108)] :Trace Log =Really MSG Sent= protocol=19, seq=144 [2009-06-02 16:51] ERROR [GameEventFilter(close:108)] :Trace Log =Really MSG Sent= protocol=14, seq=143 in Server. If I send 141,142,143,144,I receive 141,142,144,143 in messageSent method. So client can't receive right packet from server. = This is my encoder source.. - MessageEncoder @Override public void encode(IoSession session, Object message, ProtocolEncoderOutput out) throws Exception { RomiMessage msg = (RomiMessage) message; IoBuffer buf_in = msg.getBuf(); IoBuffer buf_out = IoBuffer.allocate(buf_in.limit()+4).sweep(); buf_out.setAutoExpand(true); // Enable auto-expand for easier encoding encodeBody(session,msg, buf_out); buf_out.flip(); out.write(buf_out); msg = null; } = This is my decoder source.. - MessageDecoder @Override public MessageDecoderResult decodable(IoSession session, IoBuffer in) { if (in.prefixedDataAvailable(HEADER_SIZE, MAX_LENGTH)) { return MessageDecoderResult.OK; } else { return MessageDecoderResult.NEED_DATA; } // Return NOT_OK if not matches. // return MessageDecoderResult.NOT_OK; } @Override public MessageDecoderResult decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) throws Exception { MessageDecoderResult result = decodable(session,in); if(result!=MessageDecoderResult.OK) return result; IoBuffer buf = decodeBody(session, in); if (buf == null) { return MessageDecoderResult.NOT_OK; } else { out.write(buf); } return MessageDecoderResult.OK; } was (Author: ncanis2): Thank you for your reply. But I have still something bug. === After I read this, received newest source from svn(mina). But, I had problem in heavy load server. This is server log [16:51]-S[DemuxRomiDecoder(decodeBody:162)]:Trace Log =MSG Recv seq=140, protocol=14 [16:51]-S[DemuxRomiDecoder(decodeBody:162)]:Trace Log =MSG Recv seq=141, protocol=13 [16:51]-S[DemuxRomiDecoder(decodeBody:162)]:Trace Log =MSG Recv seq=142, protocol=14 [16:51]-S[DemuxRomiDecoder(decodeBody:162)]:Trace Log =MSG Recv seq=144, protocol=19 This is client log [2009-06-02 16:51] ERROR [GameEventFilter(close:108)] :Trace Log =Really MSG Sent= protocol=13, seq=141 [2009-06-02 16:51] ERROR [GameEventFilter(close:108)] :Trace Log =Really MSG Sent= protocol=14, seq=142 [2009-06-02 16:51] ERROR [GameEventFilter(close:108)] :Trace Log =Really MSG Sent= protocol=19, seq=144 [2009-06-02 16:51] ERROR [GameEventFilter(close:108)] :Trace Log =Really MSG Sent= protocol=14, seq=143 in Server. If I send 141,142,143,144,I receive 141,142,144,143 in messageSent method. So client can't receive right packet from server. = This is my encoder source.. - MessageEncoder @Override public void encode(IoSession session, Object message, ProtocolEncoderOutput out) throws Exception { RomiMessage msg = (RomiMessage) message; IoBuffer buf_in = msg.getBuf(); IoBuffer buf_out =
[jira] Commented: (DIRMINA-714) Packet sequence is unordered in multi thread.
[ https://issues.apache.org/jira/browse/DIRMINA-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12715420#action_12715420 ] ncanis2 commented on DIRMINA-714: - I tested it, but I have still problem .. What should I do? Server sent still strange sequence. example 1,3,2 Packet sequence is unordered in multi thread. - Key: DIRMINA-714 URL: https://issues.apache.org/jira/browse/DIRMINA-714 Project: MINA Issue Type: Bug Components: Filter Affects Versions: 2.0.0-M5 Environment: xp Reporter: ncanis2 Fix For: 2.0.0-M6 Hi. Packet sequence is unordered. = Server Client = chain.addLast(codec, new ProtocolCodecFilter(rcf)); chain.addLast(executor, getExecuteFilter());= OrderedThreadPoolExecutor c = new OrderedThreadPoolExecutor(20,100); If server send 1,2,3,4,5,6 , client receive 1,2,3,4,6 from server. Clients : 100. where I am wrong? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRMINA-714) Packet sequence is unordered in multi thread.
[ https://issues.apache.org/jira/browse/DIRMINA-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12715423#action_12715423 ] ncanis2 commented on DIRMINA-714: - Can I solve this bug using another version? (ex 2.0rc1 ~ rc5) Packet sequence is unordered in multi thread. - Key: DIRMINA-714 URL: https://issues.apache.org/jira/browse/DIRMINA-714 Project: MINA Issue Type: Bug Components: Filter Affects Versions: 2.0.0-M5 Environment: xp Reporter: ncanis2 Fix For: 2.0.0-M6 Hi. Packet sequence is unordered. = Server Client = chain.addLast(codec, new ProtocolCodecFilter(rcf)); chain.addLast(executor, getExecuteFilter());= OrderedThreadPoolExecutor c = new OrderedThreadPoolExecutor(20,100); If server send 1,2,3,4,5,6 , client receive 1,2,3,4,6 from server. Clients : 100. where I am wrong? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (DIRMINA-714) Packet sequence is unordered in multi thread.
[ https://issues.apache.org/jira/browse/DIRMINA-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12715423#action_12715423 ] ncanis2 edited comment on DIRMINA-714 at 6/2/09 1:45 AM: - Can I solve this bug using another version? (ex 2.0m1 ~ rm5) was (Author: ncanis2): Can I solve this bug using another version? (ex 2.0rc1 ~ rc5) Packet sequence is unordered in multi thread. - Key: DIRMINA-714 URL: https://issues.apache.org/jira/browse/DIRMINA-714 Project: MINA Issue Type: Bug Components: Filter Affects Versions: 2.0.0-M5 Environment: xp Reporter: ncanis2 Fix For: 2.0.0-M6 Hi. Packet sequence is unordered. = Server Client = chain.addLast(codec, new ProtocolCodecFilter(rcf)); chain.addLast(executor, getExecuteFilter());= OrderedThreadPoolExecutor c = new OrderedThreadPoolExecutor(20,100); If server send 1,2,3,4,5,6 , client receive 1,2,3,4,6 from server. Clients : 100. where I am wrong? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (DIRMINA-714) Packet sequence is unordered in multi thread.
[ https://issues.apache.org/jira/browse/DIRMINA-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12715423#action_12715423 ] ncanis2 edited comment on DIRMINA-714 at 6/2/09 1:45 AM: - Can I solve this bug using another version? (ex 2.0m1 ~ m5) was (Author: ncanis2): Can I solve this bug using another version? (ex 2.0m1 ~ rm5) Packet sequence is unordered in multi thread. - Key: DIRMINA-714 URL: https://issues.apache.org/jira/browse/DIRMINA-714 Project: MINA Issue Type: Bug Components: Filter Affects Versions: 2.0.0-M5 Environment: xp Reporter: ncanis2 Fix For: 2.0.0-M6 Hi. Packet sequence is unordered. = Server Client = chain.addLast(codec, new ProtocolCodecFilter(rcf)); chain.addLast(executor, getExecuteFilter());= OrderedThreadPoolExecutor c = new OrderedThreadPoolExecutor(20,100); If server send 1,2,3,4,5,6 , client receive 1,2,3,4,6 from server. Clients : 100. where I am wrong? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRMINA-714) Packet sequence is unordered in multi thread.
[ https://issues.apache.org/jira/browse/DIRMINA-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12715472#action_12715472 ] ncanis2 commented on DIRMINA-714: - Yes. I have tested the lastest version. I've still this bug.. Packet sequence is unordered in multi thread. - Key: DIRMINA-714 URL: https://issues.apache.org/jira/browse/DIRMINA-714 Project: MINA Issue Type: Bug Components: Filter Affects Versions: 2.0.0-M5 Environment: xp Reporter: ncanis2 Fix For: 2.0.0-M6 Hi. Packet sequence is unordered. = Server Client = chain.addLast(codec, new ProtocolCodecFilter(rcf)); chain.addLast(executor, getExecuteFilter());= OrderedThreadPoolExecutor c = new OrderedThreadPoolExecutor(20,100); If server send 1,2,3,4,5,6 , client receive 1,2,3,4,6 from server. Clients : 100. where I am wrong? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRMINA-714) Packet sequence is unordered in multi thread.
[ https://issues.apache.org/jira/browse/DIRMINA-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12715776#action_12715776 ] ncanis2 commented on DIRMINA-714: - Ok. I'll try to make it. Packet sequence is unordered in multi thread. - Key: DIRMINA-714 URL: https://issues.apache.org/jira/browse/DIRMINA-714 Project: MINA Issue Type: Bug Components: Filter Affects Versions: 2.0.0-M5 Environment: xp Reporter: ncanis2 Fix For: 2.0.0-M7 Hi. Packet sequence is unordered. = Server Client = chain.addLast(codec, new ProtocolCodecFilter(rcf)); chain.addLast(executor, getExecuteFilter());= OrderedThreadPoolExecutor c = new OrderedThreadPoolExecutor(20,100); If server send 1,2,3,4,5,6 , client receive 1,2,3,4,6 from server. Clients : 100. where I am wrong? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Updated: (DIRMINA-714) Packet sequence is unordered in multi thread.
[ https://issues.apache.org/jira/browse/DIRMINA-714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ncanis2 updated DIRMINA-714: Attachment: mina_m6_seq_test_src.zip - All Logger level set ERROR - When packet sequence is wrong, server would close the client session. then saved sequence info logs wil be shown on console. = I made sample program you want. I think this sample has some bugs. sorry about that. but, it has same the bug that I talked you. When I run this program.. [11:1]-S[SeqServerHandler(sessionClosed:35)]:Sent Trace log=[4] Really MSG Sent= seq=0 [11:1]-S[SeqServerHandler(sessionClosed:35)]:Sent Trace log=[4] Really MSG Sent= seq=1 [11:1]-S[SeqServerHandler(sessionClosed:35)]:Sent Trace log=[4] Really MSG Sent= seq=2 [11:1]-S[SeqServerHandler(sessionClosed:35)]:Sent Trace log=[4] Really MSG Sent= seq=3 [11:1]-S[SeqServerHandler(sessionClosed:35)]:Sent Trace log=[4] Really MSG Sent= seq=4 [11:1]-S[SeqServerHandler(sessionClosed:35)]:Sent Trace log=[4] Really MSG Sent= seq=5 [11:1]-S[SeqServerHandler(sessionClosed:35)]:Sent Trace log=[4] Really MSG Sent= seq=6 [11:1]-S[SeqServerHandler(sessionClosed:35)]:Sent Trace log=[4] Really MSG Sent= seq=8 [11:1]-S[SeqServerHandler(sessionClosed:35)]:Sent Trace log=[4] Really MSG Sent= seq=7 Packet sequence is unordered in multi thread. - Key: DIRMINA-714 URL: https://issues.apache.org/jira/browse/DIRMINA-714 Project: MINA Issue Type: Bug Components: Filter Affects Versions: 2.0.0-M5 Environment: xp Reporter: ncanis2 Fix For: 2.0.0-M7 Attachments: mina_m6_seq_test_src.zip Hi. Packet sequence is unordered. = Server Client = chain.addLast(codec, new ProtocolCodecFilter(rcf)); chain.addLast(executor, getExecuteFilter());= OrderedThreadPoolExecutor c = new OrderedThreadPoolExecutor(20,100); If server send 1,2,3,4,5,6 , client receive 1,2,3,4,6 from server. Clients : 100. where I am wrong? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRMINA-714) Packet sequence is unordered in multi thread.
[ https://issues.apache.org/jira/browse/DIRMINA-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12715790#action_12715790 ] ncanis2 commented on DIRMINA-714: - please check follow issue number. https://cwiki.apache.org/jira/browse/DIRMINA-653 in my case.. Synchronizing on the session.write makes the problem go away for 1 hour.; synchronized (session) { future = session.write(message); } I thing you should check that. I'll test more for long time with synchronized write. Thank you. Packet sequence is unordered in multi thread. - Key: DIRMINA-714 URL: https://issues.apache.org/jira/browse/DIRMINA-714 Project: MINA Issue Type: Bug Components: Filter Affects Versions: 2.0.0-M5 Environment: xp Reporter: ncanis2 Fix For: 2.0.0-M7 Attachments: mina_m6_seq_test_src.zip Hi. Packet sequence is unordered. = Server Client = chain.addLast(codec, new ProtocolCodecFilter(rcf)); chain.addLast(executor, getExecuteFilter());= OrderedThreadPoolExecutor c = new OrderedThreadPoolExecutor(20,100); If server send 1,2,3,4,5,6 , client receive 1,2,3,4,6 from server. Clients : 100. where I am wrong? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (DIRMINA-714) Packet sequence is unordered in multi thread.
[ https://issues.apache.org/jira/browse/DIRMINA-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12715790#action_12715790 ] ncanis2 edited comment on DIRMINA-714 at 6/2/09 8:58 PM: - please check follow issue number. https://cwiki.apache.org/jira/browse/DIRMINA-653 in my case.. Synchronizing on the session.write makes the problem go away for 1 hour.; synchronized (session) { future = session.write(message); } I think you should check DIRMINA-653 also. I'll test more for long time with synchronized write. Thank you. was (Author: ncanis2): please check follow issue number. https://cwiki.apache.org/jira/browse/DIRMINA-653 in my case.. Synchronizing on the session.write makes the problem go away for 1 hour.; synchronized (session) { future = session.write(message); } I thing you should check that. I'll test more for long time with synchronized write. Thank you. Packet sequence is unordered in multi thread. - Key: DIRMINA-714 URL: https://issues.apache.org/jira/browse/DIRMINA-714 Project: MINA Issue Type: Bug Components: Filter Affects Versions: 2.0.0-M5 Environment: xp Reporter: ncanis2 Fix For: 2.0.0-M7 Attachments: mina_m6_seq_test_src.zip Hi. Packet sequence is unordered. = Server Client = chain.addLast(codec, new ProtocolCodecFilter(rcf)); chain.addLast(executor, getExecuteFilter());= OrderedThreadPoolExecutor c = new OrderedThreadPoolExecutor(20,100); If server send 1,2,3,4,5,6 , client receive 1,2,3,4,6 from server. Clients : 100. where I am wrong? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (DIRMINA-714) Packet sequence is unordered in multi thread.
[ https://issues.apache.org/jira/browse/DIRMINA-714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12715790#action_12715790 ] ncanis2 edited comment on DIRMINA-714 at 6/2/09 9:00 PM: - please check follow issue number. https://cwiki.apache.org/jira/browse/DIRMINA-653 in my case.. Synchronizing on the session.write makes the problem go away for 1 hour.; synchronized (session) { future = session.write(message); } I think you should check DIRMINA-653 also. I'll test more for long time with (synchronized session.write) Thank you. was (Author: ncanis2): please check follow issue number. https://cwiki.apache.org/jira/browse/DIRMINA-653 in my case.. Synchronizing on the session.write makes the problem go away for 1 hour.; synchronized (session) { future = session.write(message); } I think you should check DIRMINA-653 also. I'll test more for long time with synchronized write. Thank you. Packet sequence is unordered in multi thread. - Key: DIRMINA-714 URL: https://issues.apache.org/jira/browse/DIRMINA-714 Project: MINA Issue Type: Bug Components: Filter Affects Versions: 2.0.0-M5 Environment: xp Reporter: ncanis2 Fix For: 2.0.0-M7 Attachments: mina_m6_seq_test_src.zip Hi. Packet sequence is unordered. = Server Client = chain.addLast(codec, new ProtocolCodecFilter(rcf)); chain.addLast(executor, getExecuteFilter());= OrderedThreadPoolExecutor c = new OrderedThreadPoolExecutor(20,100); If server send 1,2,3,4,5,6 , client receive 1,2,3,4,6 from server. Clients : 100. where I am wrong? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.