Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-307

NPE in org.apache.sshd.common.session.AbstractSession.getSession

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0
    • Fix Version/s: 0.11.0
    • Labels:
      None
    • Environment:
      Apache 2.2.15 , RHEL 6.5

      Description

      We are running gerrit 2.7 and this is packaged with SSHD 0.9.0. We see NPE in and also at a certain point all SSH commands hang. CPUs maxed out. There are no outofmemory errors.

      2014-03-31 12:25:55,339|WARN |NioProcessor-4|AbstractSession| Exception caught
      java.lang.NullPointerException
      at org.apache.sshd.common.session.AbstractSession.getSession(AbstractSession.java:184)
      at org.apache.sshd.server.session.ServerSession.getActiveSessionCountForUser(ServerSession.java:564)
      at org.apache.sshd.server.session.ServerSession.userAuth(ServerSession.java:482)
      at org.apache.sshd.server.session.ServerSession.handleMessage(ServerSession.java:212)
      at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:587)
      at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:253)
      at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)
      at org.apache.sshd.common.io.mina.MinaService.messageReceived(MinaService.java:94)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:690)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765)
      at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:410)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:710)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:664)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:653)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1124)
      at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:724)

        Attachments

          Activity

            People

            • Assignee:
              gnt Guillaume Nodet
              Reporter:
              domenic13 Domenic Alessi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: