You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Assen Sharlandjiev (JIRA)" <ji...@apache.org> on 2014/01/01 21:26:50 UTC
[jira] [Updated] (KARAF-2663) client fails with
NullPointerException
[ 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)