mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SSHD-370) SSHD-CORE component declaring dependencies for OSGi as optional
Date Tue, 18 Nov 2014 07:52:33 GMT

     [ https://issues.apache.org/jira/browse/SSHD-370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Guillaume Nodet resolved SSHD-370.
----------------------------------
    Resolution: Won't Fix

> SSHD-CORE component declaring dependencies for OSGi as optional
> ---------------------------------------------------------------
>
>                 Key: SSHD-370
>                 URL: https://issues.apache.org/jira/browse/SSHD-370
>             Project: MINA SSHD
>          Issue Type: Bug
>         Environment: OSGi container with sshd-core bundle
>            Reporter: Maros Marsalek
>            Priority: Minor
>
> The import-package instructions that are present in the MANIFEST for sshd-core are declared
as optional. Is this correct ? I use the class PEMGeneratorHostKeyProvider to generate/read
the PEM file. This class directly uses classes from bouncycastle bundle. In case the bouncycastle
bundle is not present or resolved I get following exception:
> 2014-11-11 11:10:41,423 | WARN  | o-group-thread-1 | Nio2Acceptor                   
 | 208 - org.apache.sshd.core - 0.12.0 | Caught exception while accepting incoming connection
> java.lang.NoClassDefFoundError: org/bouncycastle/openssl/PEMParser
>         at org.apache.sshd.server.keyprovider.PEMGeneratorHostKeyProvider.doReadKeyPair(PEMGeneratorHostKeyProvider.java:58)[208:org.apache.sshd.core:0.12.0]
>         at org.apache.sshd.server.keyprovider.AbstractGeneratorHostKeyProvider.readKeyPair(AbstractGeneratorHostKeyProvider.java:128)[208:org.apache.sshd.core:0.12.0]
>         at org.apache.sshd.server.keyprovider.AbstractGeneratorHostKeyProvider.loadKeys(AbstractGeneratorHostKeyProvider.java:108)[208:org.apache.sshd.core:0.12.0]
>         at org.apache.sshd.common.keyprovider.AbstractKeyPairProvider.getKeyTypes(AbstractKeyPairProvider.java:53)[208:org.apache.sshd.core:0.12.0]
>         at org.apache.sshd.server.session.ServerSession.sendKexInit(ServerSession.java:127)[208:org.apache.sshd.core:0.12.0]
>         at org.apache.sshd.server.session.ServerSession.<init>(ServerSession.java:60)[208:org.apache.sshd.core:0.12.0]
>         at org.apache.sshd.server.session.SessionFactory.doCreateSession(SessionFactory.java:43)
> I would expect the bundle to fail in the dependency resolution phase to prevent runtime
errors.
> I am on version 0.12 but I think this is present in the newer version as well.



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

Mime
View raw message