Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-4433

Unable to connect to a child instance with instance:connect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.4
    • 4.1.0, 4.0.5
    • karaf
    • None
    • Windows 7, Oracle JDK 1.8.0_74

    Description

      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)

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            vmathon Vincent MATHON
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: