NoMethodError being thrown for defined application method
---------------------------------------------------------
Key: JRUBY-3547
URL: http://jira.codehaus.org/browse/JRUBY-3547
Project: JRuby
Issue Type: Bug
Components: Application Error
Affects Versions: JRuby 1.2
Environment: mongrel / glassfish gem / glassfishv3 on solaris 10
Reporter: Eileen Loh
Latest version of oliorails benchmark can be found here:
http://incubator.apache.org/olio/downloads.html
The oliorails code runs without error with both thin & mongrel on MRI ruby, but
throws the following error with jruby on mongrel / gf gem or gf v3. The app
code has method 'outgoing_invite_ids' defined in show, so I don't think its an
app issue.
NoMethodError (undefined method `outgoing_invite_ids' for nil:NilClass):
/app/controllers/users_controller.rb:211:in `invites_for_friend_links'
/app/controllers/users_controller.rb:43:in `show'
/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:1166:in
`perform_action'
/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:579:in
`call_filters'
/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:572:in
`perform_action_with_filters'
/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_with_benchmark'
/export/rubyperf/jruby/jruby-latest/lib/ruby/1.8/benchmark.rb:293:in
`measure'
/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/benchmarking.rb:68:in
`perform_action_with_benchmark'
/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/rescue.rb:201:in
`perform_action_with_rescue'
/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/caching/sql_cache.rb:13:in
`perform_action_with_caching'
/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in
`cache'
/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/query_cache.rb:8:in
`cache'
/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/caching/sql_cache.rb:12:in
`perform_action_with_caching'
/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:529:in
`process'
/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/filters.rb:568:in
`process_with_filters'
/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/session_management.rb:130:in
`process_with_session_management_support'
/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/base.rb:389:in
`process'
/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:149:in
`handle_request'
/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:107:in
`dispatch'
/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:104:in
`dispatch'
/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:120:in
`dispatch_cgi'
/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:35:in
`dispatch'
file:/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/glassfish-0.9.2-universal-java/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:82:in
`serve_rails'
file:/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/glassfish-0.9.2-universal-java/modules/grizzly-jruby.jar!/rack/adapter/rails.rb:106:in
`call'
file:/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/glassfish-0.9.2-universal-java/modules/grizzly-jruby.jar!/jruby/rack/rails.rb:81:in
`call'
file:/export/rubyperf/jruby/jruby-1.2.0/lib/ruby/gems/1.8/gems/glassfish-0.9.2-universal-java/modules/grizzly-jruby.jar!/rack/handler/grizzly.rb:55:in
`call'
:1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email