[chef] Re: Re: Error running Java Recipe: undefined method `split' for nil:NilClass


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Re: Error running Java Recipe: undefined method `split' for nil:NilClass
  • Date: Thu, 30 Apr 2015 11:47:37 -0700



On Thursday, April 30, 2015 at 10:53 AM, Christopher Hahn wrote:

>  
> 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.

If you run chef-client with `-l debug` or look at the stacktrace.out file, 
you’ll get the non-filtered stack trace, which you can use to follow the 
method calls back, which hopefully will help you track down where the bogus 
value comes from, even if you can’t add debug statements.

--  
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§