开发者

rake aborted! undefined method `closed?' for nil:NilClass

rake solr:开发者_如何学JAVAstart throws this error

rake aborted!
undefined method `closed?' for nil:NilClass


I have google around and got frustrated. I found the answer

http://redmine.ruby-lang.org/issues/show/2708

you have to go in /lib/ruby/1.8/net

and download the patch and add that additional check into http.rb and you are done

http://redmine.ruby-lang.org/attachments/download/835

Thanks everyone


One simple answer is that you may have not started your sunspot solr. Try running

rake sunspot:solr:start

Another possible answer is related to ipv4 vs ipv6. Check out this thread for more info: Solr / Sunspot / Rails 3 error: undefined method `closed?' for nil:NilClass

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜