Hi, I just gave Mongrel a try on my Rails app. After running ''mongrel_rails start'' everything seems fine. Yet, when I start a request I get the following error message on the console: ERROR: You have a nil object when you didn''t expect it! The error occured while evaluating nil.readpartial That''s it. The application works fine with Webrick and Apache/fcgid. Mongrel happily serves other Rails apps on my system. Is there a way to get a complete stack trace from Mongrel, so I can figure out what''s causing the problem? Thanks, Andy
On 13.10.2006, at 01:25, Zed A. Shaw wrote:>> ERROR: You have a nil object when you didn''t expect it! >> The error occured while evaluating nil.readpartial > > Hmm, that should happen.You''re actually right. If it messes around with the Thread class, this is exactly what it deserves. I''m doing such silly things sometimes, it frightens me.> killall -USR1 mongrel_rails > > When you do this it toggles "USR1 Debugging" which dumps more stack > traces and information.Thanks Zed - that did the trick. Cheers, Andy
On Thu, 12 Oct 2006 21:57:23 +0200 Andreas Korth <andreas.korth at gmx.net> wrote:> Hi, > > I just gave Mongrel a try on my Rails app. After running > ''mongrel_rails start'' everything seems fine. Yet, when I start a > request I get the following error message on the console: > > ERROR: You have a nil object when you didn''t expect it! > The error occured while evaluating nil.readpartial >Hmm, that should happen. What version of Mongrel and Ruby. Also, try running your mongrel then do: killall -USR1 mongrel_rails When you do this it toggles "USR1 Debugging" which dumps more stack traces and information. -- Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.
On Thu, 12 Oct 2006 16:25:36 -0700 "Zed A. Shaw" <zedshaw at zedshaw.com> wrote:> On Thu, 12 Oct 2006 21:57:23 +0200 > Andreas Korth <andreas.korth at gmx.net> wrote: > > > Hi, > > > > I just gave Mongrel a try on my Rails app. After running > > ''mongrel_rails start'' everything seems fine. Yet, when I start a > > request I get the following error message on the console: > > > > ERROR: You have a nil object when you didn''t expect it! > > The error occured while evaluating nil.readpartial > > > > Hmm, that should happen. What version of Mongrel and Ruby. Also, try running your mongrel then do: >Correction: "should not happen" -- Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.