- From: Christopher Hahn <
>
- To:
- Subject: [chef] Re: Error running Java Recipe: undefined method `split' for nil:NilClass
- Date: Thu, 30 Apr 2015 10:53:00 -0700
Thank you very much for taking the time…
Yeah…I resisted adding to my post that I am restricted in what I can edit…my berkshelf is loaded very run and my edits are over-written when I run again.
The line that is crashing is here:
def parse_app_dir_name url file_name = url.split('/')[-1] <-----
I am going to get access to the repo in which we are storing this provider code so that I can add some prints to the failing call.
I was just hoping that someone might have recognized the situation….I expect that it might stem from a version mismatch.
I will post more info as I get at it.
Christopher
On Apr 30, 2015, at 7:32 AM, Daniel DeLeo <
">
> wrote:
On Wednesday, April 29, 2015 at 3:54 PM, Christopher Hahn wrote:
Hello all,
I am running a java recipe that is checked out from a Repository that I do not have write access to, and so I am using my cookbooks attributes file to change how the software is installed.
We are using Chef 10.14.4 with Vagrant 1.4.3 (versions fixed and out of my control)
I was asked to change the recipe to install Java version 8.
snip...
NoMethodError ------------- undefined method `split' for nil:NilClass
Cookbook Trace: --------------- /tmp/vagrant-chef-1/chef-solo-2/cookbooks/java/providers/ark.rb:25:in `parse_app_dir_name'
You’ll want to see what this code is doing to help figure out what’s going on.
I would be arguing that we need to try upgrading, but this deployment works on some system but not on others....I am thinking that I have some gem version mismatch but am not clear on how I might determine this....
All apologies if this is documented....I looked.
Thank you,
Christopher
-- Daniel DeLeo
|
Archive powered by MHonArc 2.6.16.