This project is archived and is in readonly mode.

#5176 ✓invalid
Sean McCleary

ActiveSupport method_missing 'set_exception' on Nil

Reported by Sean McCleary | July 21st, 2010 @ 10:14 PM

I keep getting this error with Ruby 1.9.1-p378 and 1.9.2-rc2

/Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/activesupport-3.0.0.beta4/lib/active_support/whiny_nil.rb:48:in method_missing': undefined methodset_exception' for nil:NilClass (NoMethodError)

    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/hooks.rb:39:in `rescue in run_in'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/hooks.rb:35:in `run_in'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/hooks.rb:76:in `run_all!'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/hooks.rb:111:in `run_hook!'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/example_group.rb:176:in `block in eval_after_alls'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/example_group.rb:176:in `each'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/example_group.rb:176:in `eval_after_alls'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/example_group.rb:189:in `run'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/example_group.rb:186:in `block in run'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/example_group.rb:186:in `map'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/example_group.rb:186:in `run'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/command_line.rb:42:in `block in run_examples'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/command_line.rb:42:in `each'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/command_line.rb:42:in `inject'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/command_line.rb:42:in `run_examples'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/command_line.rb:25:in `block in run'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/formatters/base_formatter.rb:37:in `block in report'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/formatters/base_formatter.rb:156:in `sync_output'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/formatters/base_formatter.rb:34:in `report'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/command_line.rb:22:in `run'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/runner.rb:46:in `run_in_process'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/runner.rb:37:in `run'
    from /Users/sean/.rvm/gems/ruby-1.9.2-rc2/gems/rspec-core-2.0.0.beta.17/lib/rspec/core/runner.rb:10:in `block in autorun'</code>



Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages