Here is a typical stack dump I get. It's looking for a log method on a
nil class. none of it is in my code.
This is a sinatra app. Sinatra seems to not do a good job of tracing
compared to rails is my experience thus far
Application Error
org.jruby.exceptions.RaiseException: (NoMethodError) undefined method
`log' for
nil:NilClass
at ServletLog.write(file:c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/
jruby-rac
k-1.1.1/lib/jruby-rack-1.1.1.jar!/jruby/rack/servlet_log.rb:18)
at CommonLogger.log(c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/
rack-1.3.1/lib
/rack/commonlogger.rb:39)
at CommonLogger.call(c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/
rack-1.3.1/li
b/rack/commonlogger.rb:22)
at org.jruby.RubyProc.call(org/jruby/RubyProc.java:270)
at org.jruby.RubyProc.call(org/jruby/RubyProc.java:220)
at BodyProxy.close(c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/
rack-1.3.1/lib/
rack/body_proxy.rb:16)
at Response.write_body(file:c:/jruby-1.6.7/lib/ruby/gems/1.8/
gems/jruby-
rack-1.1.1/lib/jruby-rack-1.1.1.jar!/jruby/rack/response.rb:111)
at Response.respond(file:c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/
jruby-rac
k-1.1.1/lib/jruby-rack-1.1.1.jar!/jruby/rack/response.rb:50)
org.jruby.exceptions.RaiseException: (NoMethodError) undefined method
`log' for
nil:NilClass
at ServletLog.write(file:c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/
jruby-rac
k-1.1.1/lib/jruby-rack-1.1.1.jar!/jruby/rack/servlet_log.rb:18)
at CommonLogger.log(c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/
rack-1.3.1/lib
/rack/commonlogger.rb:39)
at CommonLogger.call(c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/
rack-1.3.1/li
b/rack/commonlogger.rb:22)
at org.jruby.RubyProc.call(org/jruby/RubyProc.java:270)
at org.jruby.RubyProc.call(org/jruby/RubyProc.java:220)
at BodyProxy.close(c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/
rack-1.3.1/lib/
rack/body_proxy.rb:16)
at Response.write_body(file:c:/jruby-1.6.7/lib/ruby/gems/1.8/
gems/jruby-
rack-1.1.1/lib/jruby-rack-1.1.1.jar!/jruby/rack/response.rb:111)
at Response.respond(file:c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/
jruby-rac
k-1.1.1/lib/jruby-rack-1.1.1.jar!/jruby/rack/response.rb:50)
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment