karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (KARAF-2663) client fails with NullPointerException
Date Thu, 02 Jan 2014 03:51:50 GMT

     [ https://issues.apache.org/jira/browse/KARAF-2663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Freeman Fang reassigned KARAF-2663:
-----------------------------------

    Assignee: Freeman Fang

> 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, 3.0.1
>         Environment: {noformat}
> 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
> {noformat}
>            Reporter: Assen Sharlandjiev
>            Assignee: Freeman Fang
>
> 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)

Mime
View raw message