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

client fails with NullPointerException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 3.0.1
    • Fix Version/s: 3.0.1
    • Component/s: karaf
    • Labels:
      None
    • Environment:

      Description

      Hi.
      I'm trying to provision Karaf 3.0.0 with chef, as flows:

      bash "install_wrapper" do
          user    'karaf'
          cwd     '/usr/local/apache-karaf'
          code <<-EOF
              /usr/local/apache-karaf/bin/start
              /usr/local/apache-karaf/bin/client -v -a 8101 -h 127.0.0.1 -r 10 -d 5 -u karaf feature:install wrapper
          EOF
          creates '/usr/local/apache-karaf/bin/karaf-service'
          returns 0
      end
      

      however, the client fails with the flowing error:

      [2014-01-01T20:13:02+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: bash[install_wrapper] (apache-karaf-cookbook::default line 68) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
      ---- Begin output of "bash"  "/tmp/chef-script20140101-6721-xkkp96" ----
      STDOUT: retrying (attempt 1) ...
      retrying (attempt 2) ...
      STDERR: 206 [main] INFO org.apache.sshd.common.util.SecurityUtils - Trying to register BouncyCastle as a JCE provider
      216 [main] INFO org.apache.sshd.common.util.SecurityUtils - BouncyCastle not registered, using the default JCE provider
      10875 [pool-2-thread-1] INFO org.apache.sshd.client.session.ClientSessionImpl - Session created...
      java.lang.NullPointerException
      	at org.apache.karaf.client.Main.main(Main.java:83)
      ---- End output of "bash"  "/tmp/chef-script20140101-6721-xkkp96" ----
      

        Attachments

          Activity

            People

            • Assignee:
              ffang Freeman Fang
              Reporter:
              assens Assen Sharlandjiev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: