Here's a thought: If it's Ajax and your are POSTing from jQuery, check to see you have params. Some clients are sketchy about filling in a body of a POST by themselves.
On Dec 15, 2008, at 6:10 AM, Jay wrote: > > I am trying to debug an issue with Rails 2.2.2... I am running a load > test where I am logging in and out 20 users, and I am occasionally > seeing this error, in my logs: (see stack trace below) it appears > that the body of some of my requests are null... I'm trying to figure > out if a) it's a rails issue, b) is it a jruby/rack issue or c) is it > an issue with caching (which is turned on but I wouldn't think should > be an issue on a login/logout scenario). any one have any thoughts on > where I Could check to see why the body is null? I'm off to try and > turn off caching to see what happens but this issue is a pretty big > issue and we need to resolve it asap. We see it in normal usage of > our website too. It appears to be timing related but I'm not sure why > or how yet. > > I'm not necessarily looking for THE answer but any general help of > "check xxx" would be great. > > Thanks! > Jay > > > > > > > [#|2008-12-11T16:14:13.299-0500|INFO|sun-appserver9.1| > javax.enterprise.system.container.web| > _ThreadID=16;_ThreadName=httpWorkerThread-8081-1;|PWC1412: WebModule[] > ServletContext.log():/!\ FAILSAFE /!\ Thu Dec 11 16:14:13 -0500 2008 > Status: 500 Internal Server Error > undefined method `[]' for nil:NilClass > /Applications/NetBeans/glassfish-v2ur2/domains/domain1/ > applications/j2ee-modules/WebSite/WEB-INF/gems/gems/actionpack-2.2.2/ > lib/action_controller/request.rb:597:in `clean_up_ajax_request_body!' > /Applications/NetBeans/glassfish-v2ur2/domains/domain1/ > applications/j2ee-modules/WebSite/WEB-INF/gems/gems/actionpack-2.2.2/ > lib/action_controller/request.rb:508:in > `parse_formatted_request_parameters' > /Applications/NetBeans/glassfish-v2ur2/domains/domain1/ > applications/j2ee-modules/WebSite/WEB-INF/gems/gems/actionpack-2.2.2/ > lib/action_controller/request.rb:441:in `request_parameters' > /Applications/NetBeans/glassfish-v2ur2/domains/domain1/ > applications/j2ee-modules/WebSite/WEB-INF/gems/gems/actionpack-2.2.2/ > lib/action_controller/request.rb:392:in `parameters' > /Applications/NetBeans/glassfish-v2ur2/domains/domain1/ > applications/j2ee-modules/WebSite/WEB-INF/gems/gems/actionpack-2.2.2/ > lib/action_controller/request.rb:30:in `request_method' > /Applications/NetBeans/glassfish-v2ur2/domains/domain1/ > applications/j2ee-modules/WebSite/WEB-INF/gems/gems/ > activesupport-2.2.2/lib/active_support/memoizable.rb:86:in > `request_method' > /Applications/NetBeans/glassfish-v2ur2/domains/domain1/ > applications/j2ee-modules/WebSite/WEB-INF/gems/gems/actionpack-2.2.2/ > lib/action_controller/request.rb:40:in `method' > /Applications/NetBeans/glassfish-v2ur2/domains/domain1/ > applications/j2ee-modules/WebSite/WEB-INF/gems/gems/actionpack-2.2.2/ > lib/action_controller/routing/route_set.rb:433:in > `extract_request_environment' > /Applications/NetBeans/glassfish-v2ur2/domains/domain1/ > applications/j2ee-modules/WebSite/WEB-INF/gems/gems/actionpack-2.2.2/ > lib/action_controller/routing/route_set.rb:386:in `recognize' > /Applications/NetBeans/glassfish-v2ur2/domains/domain1/ > applications/j2ee-modules/WebSite/WEB-INF/gems/gems/actionpack-2.2.2/ > lib/action_controller/dispatcher.rb:182:in `handle_request' > /Applications/NetBeans/glassfish-v2ur2/domains/domain1/ > applications/j2ee-modules/WebSite/WEB-INF/gems/gems/actionpack-2.2.2/ > lib/action_controller/dispatcher.rb:110:in `dispatch_unlocked' > /Applications/NetBeans/glassfish-v2ur2/domains/domain1/ > applications/j2ee-modules/WebSite/WEB-INF/gems/gems/actionpack-2.2.2/ > lib/action_controller/dispatcher.rb:120:in `dispatch' > /Applications/NetBeans/glassfish-v2ur2/domains/domain1/ > applications/j2ee-modules/WebSite/WEB-INF/gems/gems/actionpack-2.2.2/ > lib/action_controller/dispatcher.rb:132:in `dispatch_cgi' > /Applications/NetBeans/glassfish-v2ur2/domains/domain1/ > applications/j2ee-modules/WebSite/WEB-INF/gems/gems/actionpack-2.2.2/ > lib/action_controller/dispatcher.rb:39:in `dispatch' > /Applications/NetBeans/glassfish-v2ur2/domains/domain1/generated/ > jsp/j2ee-modules/WebSite/loader/rack/adapter/rails.rb:37:in > `serve_rails' > /Applications/NetBeans/glassfish-v2ur2/domains/domain1/generated/ > jsp/j2ee-modules/WebSite/loader/rack/adapter/rails.rb:44:in `call' > /Applications/NetBeans/glassfish-v2ur2/domains/domain1/generated/ > jsp/j2ee-modules/WebSite/loader/jruby/rack/rails.rb:145:in `call' > /Applications/NetBeans/glassfish-v2ur2/domains/domain1/generated/ > jsp/j2ee-modules/WebSite/loader/rack/handler/servlet.rb:17:in `call':1 > |#] > > > --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

