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

SSH server fails during bundle update

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.14.0
    • None

    Description

      When updating a large number of bundles (including sshd, felix, aries, karaf, etc) a NPE from felix can kill the whole SSH server with an exception like:

      22:47:59,979 | INFO | agent-1-thread-1 | SshServerFactory | 49 - org.apache.karaf.shell.ssh - 2.3.0.redhat-610394 | Error updating SSH server
      java.lang.NullPointerException
      at org.apache.felix.framework.BundleRevisionImpl.getResourcesLocal(BundleRevisionImpl.java:571)
      at org.apache.felix.framework.BundleWiringImpl.findResourcesByDelegation(BundleWiringImpl.java:1173)
      at org.apache.felix.framework.BundleWiringImpl.getResourcesByDelegation(BundleWiringImpl.java:1083)
      at org.apache.felix.framework.BundleWiringImpl$BundleClassLoaderJava5.getResources(BundleWiringImpl.java:1870)
      at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:340)[:1.7.0_71]
      at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:439)[:1.7.0_71]
      at org.apache.sshd.common.io.DefaultIoServiceFactoryFactory.tryLoad(DefaultIoServiceFactoryFactory.java:72)
      at org.apache.sshd.common.io.DefaultIoServiceFactoryFactory.newInstance(DefaultIoServiceFactoryFactory.java:56)
      at org.apache.sshd.common.io.DefaultIoServiceFactoryFactory.getFactory(DefaultIoServiceFactoryFactory.java:43)
      at org.apache.sshd.common.io.DefaultIoServiceFactoryFactory.create(DefaultIoServiceFactoryFactory.java:37)
      at org.apache.sshd.common.AbstractFactoryManager.getIoServiceFactory(AbstractFactoryManager.java:73)
      at org.apache.sshd.SshServer.createAcceptor(SshServer.java:409)
      at org.apache.sshd.SshServer.start(SshServer.java:325)
      at org.apache.karaf.shell.ssh.SshServerFactory.start(SshServerFactory.java:58)
      ...

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            janstey Jonathan Anstey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: