Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: Yellow Pages Pilot
    • Fix Version/s: Demo Scenario
    • Labels:
      None

      Description

      I get:

      NoMethodError in AvatarsController#new

      You have a nil object when you didn't expect it!
      You might have expected an instance of ActiveRecord::Base.
      The error occurred while evaluating nil.[]

      RAILS_ROOT: /local/development/ruby/seek-hub
      Application Trace | Framework Trace | Full Trace

      app/controllers/avatars_controller.rb:262:in `store_unsaved_person_proj_inst_data_to_session'
      app/controllers/avatars_controller.rb:13:in `new'

      vendor/rails/actionpack/lib/action_controller/base.rb:1253:in `send'
      vendor/rails/actionpack/lib/action_controller/base.rb:1253:in `perform_action_without_filters'
      vendor/rails/actionpack/lib/action_controller/filters.rb:617:in `call_filters'
      vendor/rails/actionpack/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
      vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
      /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
      vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
      vendor/rails/actionpack/lib/action_controller/rescue.rb:136:in `perform_action_without_caching'
      vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
      vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
      vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
      vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
      vendor/rails/actionpack/lib/action_controller/base.rb:524:in `send'
      vendor/rails/actionpack/lib/action_controller/base.rb:524:in `process_without_filters'
      vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process_without_session_management_support'
      vendor/rails/actionpack/lib/action_controller/session_management.rb:134:in `process'
      vendor/rails/actionpack/lib/action_controller/base.rb:392:in `process'
      vendor/rails/actionpack/lib/action_controller/dispatcher.rb:183:in `handle_request'
      vendor/rails/actionpack/lib/action_controller/dispatcher.rb:110:in `dispatch_unlocked'
      vendor/rails/actionpack/lib/action_controller/dispatcher.rb:123:in `dispatch'
      vendor/rails/actionpack/lib/action_controller/dispatcher.rb:122:in `synchronize'
      vendor/rails/actionpack/lib/action_controller/dispatcher.rb:122:in `dispatch'
      vendor/rails/actionpack/lib/action_controller/dispatcher.rb:132:in `dispatch_cgi'
      vendor/rails/actionpack/lib/action_controller/dispatcher.rb:39:in `dispatch'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:76:in `process'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `synchronize'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `process'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
      vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load_without_new_constant_marking'
      vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load'
      vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
      vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load'
      vendor/rails/railties/lib/commands/servers/mongrel.rb:64
      /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
      /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
      vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
      vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
      vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
      vendor/rails/railties/lib/commands/server.rb:49
      /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
      /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
      script/server:3

      app/controllers/avatars_controller.rb:262:in `store_unsaved_person_proj_inst_data_to_session'
      app/controllers/avatars_controller.rb:13:in `new'
      vendor/rails/actionpack/lib/action_controller/base.rb:1253:in `send'
      vendor/rails/actionpack/lib/action_controller/base.rb:1253:in `perform_action_without_filters'
      vendor/rails/actionpack/lib/action_controller/filters.rb:617:in `call_filters'
      vendor/rails/actionpack/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
      vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
      /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
      vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
      vendor/rails/actionpack/lib/action_controller/rescue.rb:136:in `perform_action_without_caching'
      vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
      vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
      vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
      vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
      vendor/rails/actionpack/lib/action_controller/base.rb:524:in `send'
      vendor/rails/actionpack/lib/action_controller/base.rb:524:in `process_without_filters'
      vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process_without_session_management_support'
      vendor/rails/actionpack/lib/action_controller/session_management.rb:134:in `process'
      vendor/rails/actionpack/lib/action_controller/base.rb:392:in `process'
      vendor/rails/actionpack/lib/action_controller/dispatcher.rb:183:in `handle_request'
      vendor/rails/actionpack/lib/action_controller/dispatcher.rb:110:in `dispatch_unlocked'
      vendor/rails/actionpack/lib/action_controller/dispatcher.rb:123:in `dispatch'
      vendor/rails/actionpack/lib/action_controller/dispatcher.rb:122:in `synchronize'
      vendor/rails/actionpack/lib/action_controller/dispatcher.rb:122:in `dispatch'
      vendor/rails/actionpack/lib/action_controller/dispatcher.rb:132:in `dispatch_cgi'
      vendor/rails/actionpack/lib/action_controller/dispatcher.rb:39:in `dispatch'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:76:in `process'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `synchronize'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `process'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in `run'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `each'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in `run'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:212:in `run'
      /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
      vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load_without_new_constant_marking'
      vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load'
      vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
      vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load'
      vendor/rails/railties/lib/commands/servers/mongrel.rb:64
      /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
      /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
      vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
      vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
      vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
      vendor/rails/railties/lib/commands/server.rb:49
      /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
      /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
      script/server:3

      Request

      Parameters:

      {"person_id"=>"134"}

      Show session dump


      :csrf_id: 7716db8d3b648e35baf2d994bac0afb8
      :return_to: /
      :user_id: 2
      flash: !map:ActionController::Flash::FlashHash {}

      Response

      Headers:

      {"cookie"=>[], "Content-Type"=>"", "Cache-Control"=>"no-cache"}

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Stuart Owen
            Reporter:
            Stuart Owen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: