You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Vincent MATHON (JIRA)" <ji...@apache.org> on 2016/03/22 14:54:25 UTC

[jira] [Created] (KARAF-4433) Unable to connect to a child instance with instance:connect

Vincent MATHON created KARAF-4433:
-------------------------------------

             Summary: Unable to connect to a child instance with instance:connect
                 Key: KARAF-4433
                 URL: https://issues.apache.org/jira/browse/KARAF-4433
             Project: Karaf
          Issue Type: Bug
          Components: karaf-instance
    Affects Versions: 4.0.4
         Environment: Windows 7, Oracle JDK 1.8.0_74
            Reporter: Vincent MATHON


Steps to reproduce:
1/ install a fresh karaf distribution
2/ launch karaf.bat
3/ root()> instance:create test
4/ root()> instance:start test
5/ root()> instance:connect test
Connecting to host localhost on port 8103
Connecting to unknown server. Automatically adding to known hosts.
Storing the server key in known_hosts.
Password:  *****
Connected
Error executing command: Channel opening failed

Note that 
6/ root()> instance:connect test info

works perfectly, thus, the problem arises when no command is specified.

The stacktrace looks like :
2016-03-22 14:45:17,203 | ERROR | nsole user karaf | ShellUtil                        | 44 - org.apache.karaf.shell.core - 4.0.4 | Exception caught while executing command
org.apache.sshd.common.SshException: Channel opening failed at org.apache.sshd.client.future.DefaultOpenFuture.verify(DefaultOpenFuture.java:43)[1:org.apache.sshd.core:0.14.0] at org.apache.karaf.shell.ssh.SshAction.execute(SshAction.java:241)[45:org.apache.karaf.shell.ssh:4.0.4]
......
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_74]
Caused by: java.lang.NullPointerException
	at org.apache.sshd.common.util.Buffer.putString(Buffer.java:435)





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