You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/12/12 16:58:13 UTC

[jira] [Commented] (SSHD-388) SSH server fails during bundle update

    [ https://issues.apache.org/jira/browse/SSHD-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14244304#comment-14244304 ] 

ASF GitHub Bot commented on SSHD-388:
-------------------------------------

GitHub user janstey opened a pull request:

    https://github.com/apache/mina-sshd/pull/8

    SSHD-388 - SSH server fails during bundle update

    Simple fix is the catch the NPE coming from the updating felix framework. The server seems to be able to gracefully handle this condition.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/janstey/mina-sshd SSHD-388

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/mina-sshd/pull/8.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #8
    
----
commit fb80d0e5241ea45f949bb1a830933d1798c6e94b
Author: Jonathan Anstey <ja...@gmail.com>
Date:   2014-12-12T15:55:09Z

    SSHD-388 - SSH server fails during bundle update

----


> SSH server fails during bundle update
> -------------------------------------
>
>                 Key: SSHD-388
>                 URL: https://issues.apache.org/jira/browse/SSHD-388
>             Project: MINA SSHD
>          Issue Type: Bug
>            Reporter: Jonathan Anstey
>
> 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)
> ...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)