Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4C128107E1 for ; Wed, 1 Jan 2014 20:26:50 +0000 (UTC) Received: (qmail 26655 invoked by uid 500); 1 Jan 2014 20:26:50 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 26632 invoked by uid 500); 1 Jan 2014 20:26:50 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 26624 invoked by uid 99); 1 Jan 2014 20:26:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jan 2014 20:26:50 +0000 Date: Wed, 1 Jan 2014 20:26:50 +0000 (UTC) From: "Assen Sharlandjiev (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KARAF-2663) client fails with NullPointerException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-2663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Assen Sharlandjiev updated KARAF-2663: -------------------------------------- Description: Hi. I'm trying to provision Karaf 3.0.0 with chef, as flows: {code} 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 {code} however, the client fails with the flowing error: {code} [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" ---- {code} was: Hi. I'm trying to provision Karaf 3.0.0 with chef, as flows: {code} 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 {code} 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" ---- > client fails with NullPointerException > -------------------------------------- > > Key: KARAF-2663 > URL: https://issues.apache.org/jira/browse/KARAF-2663 > Project: Karaf > Issue Type: Bug > Components: karaf-core > Affects Versions: 3.0.0 > Environment: karaf@root()> info > Karaf > Karaf version 3.0.0 > Karaf home /usr/local/apache-karaf-3.0.0 > Karaf base /usr/local/apache-karaf-3.0.0 > OSGi Framework org.apache.felix.framework - 4.2.1 > JVM > Java Virtual Machine Java HotSpot(TM) 64-Bit Server VM version 23.25-b01 > Version 1.7.0_25 > Vendor Oracle Corporation > Uptime 9 minutes > Total compile time 14.164 seconds > Threads > Live threads 35 > Daemon threads 27 > Peak 35 > Total started 44 > Memory > Current heap size 50,858 kbytes > Maximum heap size 1,013,632 kbytes > Committed heap size 126,848 kbytes > Pending objects 0 > Garbage collector Name = 'Copy', Collections = 7, Time = 0.111 seconds > Garbage collector Name = 'MarkSweepCompact', Collections = 1, Time = 0.052 seconds > Classes > Current classes loaded 4,433 > Total classes loaded 4,434 > Total classes unloaded 1 > Operating system > Name Linux version 3.2.0-29-generic > Architecture amd64 > Processors 1 > Reporter: Assen Sharlandjiev > > Hi. > I'm trying to provision Karaf 3.0.0 with chef, as flows: > {code} > 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 > {code} > however, the client fails with the flowing error: > {code} > [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" ---- > {code} -- This message was sent by Atlassian JIRA (v6.1.5#6160)