You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by LuisLo <he...@gmail.com> on 2020/01/21 13:23:33 UTC

karaf & activemq: ssh fails

Hi.
We have an application developed on karaf 4.2.7 (own assembly) that does not
give any problem when we connect by ssh, however, when we add the
activemq-broker (5.15.11) feature as a boot feature to the assembly, we
cannot connect by ssh and get the following log :

2020-01-21T14:04:18,620 | INFO  | sshd-SshServer[4b8c5253]-nio2-thread-2 |
OpenSSHKeyPairGenerator          | 157 - org.apache.karaf.shell.ssh - 4.2.7
| generateKeyPair(RSA) generating host key - size=2048
2020-01-21T14:04:19,244 | WARN  | sshd-SshServer[4b8c5253]-nio2-thread-2 |
ServerSessionImpl                | 182 - org.apache.sshd.core - 1.7.0 |
exceptionCaught(ServerSessionImpl[null@/127.0.0.1:58635])[state=Opened]
InvalidAlgorithmParameterException: parameter object not a ECParameterSpec
2020-01-21T14:04:33,996 | WARN  | sshd-SshServer[4b8c5253]-nio2-thread-1 |
ServerSessionImpl                | 182 - org.apache.sshd.core - 1.7.0 |
exceptionCaught(ServerSessionImpl[null@/127.0.0.1:58638])[state=Opened]
InvalidAlgorithmParameterException: parameter object not a ECParameterSpec
2020-01-21T14:04:45,602 | WARN  | sshd-SshServer[4b8c5253]-nio2-thread-2 |
ServerSessionImpl                | 182 - org.apache.sshd.core - 1.7.0 |
exceptionCaught(ServerSessionImpl[null@/127.0.0.1:58641])[state=Opened]
InvalidAlgorithmParameterException: parameter object not a ECParameterSpec


Some help?



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: karaf & activemq: ssh fails

Posted by LuisLo <he...@gmail.com>.
Hi.
Thanks for the help.
We have used activemq-broker



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: karaf & activemq: ssh fails

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

yeah, the culprit is certainly bcprov conflicting with the one of Karaf.

In this feature, you should use <bundle dependency="true"/>. It would
avoid the conflict.

Regards
JB

On 22/01/2020 08:37, LuisLo wrote:
> Good Morning.
> In case this can help someone, the problem has been solved by eliminating
> the following bundles of a jasperreports feature that we used:
> 
> <bundle>wrap:mvn:bouncycastle/bcmail-jdk14/138</bundle>
> <bundle>wrap:mvn:bouncycastle/bcprov-jdk14/138</bundle>
> <bundle>wrap:mvn:org.bouncycastle/bctsp-jdk14/1.38</bundle>
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: karaf & activemq: ssh fails

Posted by LuisLo <he...@gmail.com>.
Good Morning.
In case this can help someone, the problem has been solved by eliminating
the following bundles of a jasperreports feature that we used:

<bundle>wrap:mvn:bouncycastle/bcmail-jdk14/138</bundle>
<bundle>wrap:mvn:bouncycastle/bcprov-jdk14/138</bundle>
<bundle>wrap:mvn:org.bouncycastle/bctsp-jdk14/1.38</bundle>



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: karaf & activemq: ssh fails

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

Which activemq feature do you use as boot features ? activemq-broker-noweb ?

It's possible that the ActiveMQ feature install a bundle providing a
package "interfering" with SSHD.

Let me try to reproduce.

Regards
JB

On 21/01/2020 14:23, LuisLo wrote:
> Hi.
> We have an application developed on karaf 4.2.7 (own assembly) that does not
> give any problem when we connect by ssh, however, when we add the
> activemq-broker (5.15.11) feature as a boot feature to the assembly, we
> cannot connect by ssh and get the following log :
> 
> 2020-01-21T14:04:18,620 | INFO  | sshd-SshServer[4b8c5253]-nio2-thread-2 |
> OpenSSHKeyPairGenerator          | 157 - org.apache.karaf.shell.ssh - 4.2.7
> | generateKeyPair(RSA) generating host key - size=2048
> 2020-01-21T14:04:19,244 | WARN  | sshd-SshServer[4b8c5253]-nio2-thread-2 |
> ServerSessionImpl                | 182 - org.apache.sshd.core - 1.7.0 |
> exceptionCaught(ServerSessionImpl[null@/127.0.0.1:58635])[state=Opened]
> InvalidAlgorithmParameterException: parameter object not a ECParameterSpec
> 2020-01-21T14:04:33,996 | WARN  | sshd-SshServer[4b8c5253]-nio2-thread-1 |
> ServerSessionImpl                | 182 - org.apache.sshd.core - 1.7.0 |
> exceptionCaught(ServerSessionImpl[null@/127.0.0.1:58638])[state=Opened]
> InvalidAlgorithmParameterException: parameter object not a ECParameterSpec
> 2020-01-21T14:04:45,602 | WARN  | sshd-SshServer[4b8c5253]-nio2-thread-2 |
> ServerSessionImpl                | 182 - org.apache.sshd.core - 1.7.0 |
> exceptionCaught(ServerSessionImpl[null@/127.0.0.1:58641])[state=Opened]
> InvalidAlgorithmParameterException: parameter object not a ECParameterSpec
> 
> 
> Some help?
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com