dsp-admin@dsp-node:~$ uname -a
Linux dsp-node 2.6.32-24-generic-pae #39-Ubuntu SMP Wed Jul 28 07:39:26 UTC
2010 i686 GNU/Linux
dsp-admin@dsp-node:~$ java -version
java version 1.6.0_20
OpenJDK Runtime Environment (IcedTea6 1.9.9) (6b20-1.9.9-0ubuntu1~10.04.2)
OpenJDK Client VM (build 19.0-b09, mixed mode, sharing)
I haven't done anything special (other than try to use an SSL connection
inside a wrapped node).
I can reproduce this on my system by downloading the current karaf-2.2.2
distribution, creating a wrapper using features:install wrapper;
wrapper:install -s AUTO_START -n Test. Then stopping karaf, relaunching
with ./bin/Test-service start and trying to connect via SSH. I get an
immediate failure with what I assume is the same underlying error about not
being able to negotiate keys:
12:27:39,071 | INFO | NioProcessor-2 | ServerSession|
shd.server.session.ServerSession 87 | 16 - sshd-core - 0.5.0 | Session
created...
12:27:39,163 | INFO | NioProcessor-2 | ServerSession|
shd.server.session.ServerSession 307 | 16 - sshd-core - 0.5.0 | Client
version string: SSH-2.0-SSHD-CORE-0.5.0
12:27:39,164 | INFO | NioProcessor-2 | ServerSession|
shd.server.session.ServerSession 149 | 16 - sshd-core - 0.5.0 | Received
SSH_MSG_KEXINIT
12:27:39,165 | WARN | NioProcessor-2 | ServerSession|
d.common.session.AbstractSession 253 | 16 - sshd-core - 0.5.0 | Exception
caught
java.lang.IllegalStateException: Unable to negociate key exchange for item 2
at
org.apache.sshd.common.session.AbstractSession.negociate(AbstractSession.java:886)
at
org.apache.sshd.server.session.ServerSession.handleMessage(ServerSession.java:151)
at
org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:522)
at
org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:225)
Sorry I can't clean up this report more, I'll try to clean it up and post a
JIRA later today.
Thanks,
Sam Hendley
On Mon, Aug 15, 2011 at 3:58 AM, Andreas Pieber anpie...@gmail.com wrote:
Hey Sam,
Do you use the sun/oracle JVM or openjdk? What is your platform? Did you do
anything special that I can reproduce the problem? If there is a way this
can be reproduced can you please create a JIRA issue?
Thank you and kind regards,
Andreas
On Fri, Aug 12, 2011 at 21:55, Sam Hendley
shend...@greenenergycorp.comwrote:
I am trying to use the wrapper script to run my application on boot up and
have run into an issue with java security providers. If I run my app using
./bin/start or ./bin/karaf it works correctly. If I run the
./bin/service-wrapper script generated by the wrapper feature i get the
following failures:
Caused by: java.security.NoSuchAlgorithmException:
SunTlsRsaPremasterSecret KeyGenerator not available
Some googling has led me to believe that the issue is usually fixed by
adding /jre/lib/ext to the java classpath. As far as I can tell the
service_wrapper script is setting that the same way as the bin/karaf and
./bin/start scripts.
Any pointers on what I can do to furthur understand and debug this issue?
Thanks alot
Sam Hendley