[ https://issues.apache.org/jira/browse/KARAF-4433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré updated KARAF-4433: ---------------------------------------- Fix Version/s: 4.0.5 4.1.0 > 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 > Fix For: 4.1.0, 4.0.5 > > > 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)