[ https://issues.apache.org/jira/browse/DIRMINA-679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12683897#action_12683897 ]
John J. Franey commented on DIRMINA-679: ---------------------------------------- Thanks for addressing the problem. This trace is probably moot, but I'm not certain. This is stack trace of the problem while running from trunk, revision:756463 org.apache.mina.filter.codec.ProtocolEncoderException: java.lang.NullPointerException at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:312) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:506) at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1400(DefaultIoFilterChain.java:48) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:814) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:740) at org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:506) at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:498) at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:428) at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:369) .... Caused by: java.lang.NullPointerException at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:297) at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:814) at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:741) at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:498) at org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:369) ... > NullPointerException in ProtocolCodecFilter.filterWrite > ------------------------------------------------------- > > Key: DIRMINA-679 > URL: https://issues.apache.org/jira/browse/DIRMINA-679 > Project: MINA > Issue Type: Bug > Affects Versions: 2.0.0-M4 > Reporter: John J. Franey > Fix For: 2.0.0-RC1 > > > Looks like filterWrite obtains a reference from the session's attributes, but > the desired attribute is not there. > I am running max of 250 datagram sockets under load test for my application. > Connections last about 60 seconds and released. A new connection is made to > keep the total number of active connections up to 250. > Over a period of two hours running this load test, this exception occured > twice. > org.apache.mina.filter.codec.ProtocolEncoderException: > java.lang.NullPointerException > at > org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:312) > at > org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:506) > at > org.apache.mina.core.filterchain.DefaultIoFilterChain.access$7(DefaultIoFilterChain.java:501) > at > org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:814) > at > org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:740) > at > org.apache.mina.core.filterchain.DefaultIoFilterChain.callPreviousFilterWrite(DefaultIoFilterChain.java:506) > at > org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:498) > at > org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:418) > at > org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:359) > .... > Caused by: java.lang.NullPointerException > at > org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:297) > at > org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.filterWrite(DefaultIoFilterChain.java:814) > at > org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.filterWrite(DefaultIoFilterChain.java:741) > at > org.apache.mina.core.filterchain.DefaultIoFilterChain.fireFilterWrite(DefaultIoFilterChain.java:498) > at > org.apache.mina.core.session.AbstractIoSession.write(AbstractIoSession.java:359) > .... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.