Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-1043

NullPointerException after upgrade to mina 2.0.14

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.14
    • Fix Version/s: 2.0.15
    • Component/s: Core
    • Labels:
      None
    • Environment:
      linux

      Description

      After we upgraded to mina 2.0.14, we see a number of these exceptions. At this point we have not found a negative impact on our application but some important cleanup instructions may be skipped within mina.

      2016-09-06T00:03:24,965 WARN ([]) [NioProcessor-3198613] org.apache.mina.filter.logging.LoggingFilter - EXCEPTION :
      java.lang.NullPointerException
      at org.apache.mina.core.session.AbstractIoSession.destroy(AbstractIoSession.java:369)
      at org.apache.mina.core.session.AbstractIoSession.closeNow(AbstractIoSession.java:350)
      at org.apache.mina.core.service.IoHandlerAdapter.inputClosed(IoHandlerAdapter.java:93)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.inputClosed(DefaultIoFilterChain.java:838)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextInputClosed(DefaultIoFilterChain.java:615)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:48)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.inputClosed(DefaultIoFilterChain.java:942)
      at org.apache.mina.core.filterchain.IoFilterAdapter.inputClosed(IoFilterAdapter.java:137)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextInputClosed(DefaultIoFilterChain.java:615)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:48)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.inputClosed(DefaultIoFilterChain.java:942)
      at org.apache.mina.core.filterchain.IoFilterAdapter.inputClosed(IoFilterAdapter.java:137)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextInputClosed(DefaultIoFilterChain.java:615)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:48)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.inputClosed(DefaultIoFilterChain.java:942)
      at org.apache.mina.core.filterchain.IoFilterAdapter.inputClosed(IoFilterAdapter.java:137)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextInputClosed(DefaultIoFilterChain.java:615)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireInputClosed(DefaultIoFilterChain.java:608)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:717)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:659)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:648)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:68)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1120)
      at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

        Activity

        Hide
        elecharny Emmanuel Lecharny added a comment -

        Thanks for the report. There is obviously something wrong that needs to be fixed. Will have a look at it as soon as I get back a decent computer...

        Show
        elecharny Emmanuel Lecharny added a comment - Thanks for the report. There is obviously something wrong that needs to be fixed. Will have a look at it as soon as I get back a decent computer...
        Hide
        elecharny Emmanuel Lecharny added a comment -

        The NPE should be fixed : in specific cases, the WriteRequest future was null, leading to a NPE when doing things like :

        writeRequest.getFuture().setWritten();
        
        Show
        elecharny Emmanuel Lecharny added a comment - The NPE should be fixed : in specific cases, the WriteRequest future was null, leading to a NPE when doing things like : writeRequest.getFuture().setWritten();

          People

          • Assignee:
            Unassigned
            Reporter:
            elapierre Eric Lapierre
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development