`build': undefined method `new' for ExceptionNotifier:Module (NoMethodError) when executing rails s

Titouan de Bailleul

I just upgraded to Mac OSX Mavericks and to Ruby 1.9.3-p392 and now when I try to run rails s in one of my app I get the following error:

=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/stack.rb:43:in `build': undefined method `new' for ExceptionNotifier:Module (NoMethodError)
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/stack.rb:113:in `block in build'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/stack.rb:113:in `each'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/stack.rb:113:in `inject'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/stack.rb:113:in `build'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/engine.rb:470:in `app'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/application/finisher.rb:31:in `block in <module:Finisher>'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
    from /Users/titouanvanbelle/Documents/workspace/paymy/config/environment.rb:5:in `<top (required)>'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
    from /Users/titouanvanbelle/Documents/workspace/paymy/config.ru:3:in `block in <main>'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
    from /Users/titouanvanbelle/Documents/workspace/paymy/config.ru:in `new'
    from /Users/titouanvanbelle/Documents/workspace/paymy/config.ru:in `<main>'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands/server.rb:46:in `app'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands/server.rb:70:in `start'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
    from /Users/titouanvanbelle/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

This is my Gemfile:

source 'https://rubygems.org'

gem 'rails', '3.2.13'
gem 'bcrypt-ruby', "3.0.1"

# Database support:
gem 'pg'

# Use native JSON extension:
gem 'json'

# Use RABL to build API responses:
gem 'rabl'

# HTML parsing for press page
gem 'nokogiri'

# Authentication & authorization:
gem 'omniauth-facebook'
gem 'consul'
gem 'omniauth-identity'

# Pagination
gem 'will_paginate'
gem 'will_paginate-bootstrap'
gem 'foundation-will_paginate'

# Facebook
gem 'koala'

# Utility
gem 'modularity'
gem 'has_defaults'
gem 'andand'
gem 'gibberish'
gem 'state_machine'
gem 'exception_notification'
gem 'edge_rider'
gem 'rest-client'

gem 'haml-rails'
gem 'bootstrap-sass', '~> 2.1.1.0'
gem 'zurb-foundation', '~> 4.1.6'
gem 'compass-rails'
gem 'jquery-rails'
gem 'inherited_resources'

# GUI
gem 'simple_form'

# background processing
gem 'delayed_job_active_record'

# Payment
gem 'king_dtaus'

group :deploy do
  # cron
  gem 'whenever', require: false
end


# Gems used for development and testing
# and not required in production.
group :development, :test do
  gem 'machinist', '<2'
  gem 'machinist_callbacks'
  gem 'faker'
  gem 'rspec-rails'
  gem 'cucumber-rails', require: false
  gem 'cucumber_factory'
  gem 'database_cleaner'
  gem 'timecop'
  gem 'capybara', '<2'
  gem 'spreewald'
  gem 'cucumber_spinner'
  gem 'launchy'
  gem 'rspec_candy'
  gem 'pry'
  gem 'debugger'
  gem 'quiet_assets'
  gem 'letter_opener'
  gem 'poltergeist'
  gem 'guard-rspec'
  gem 'guard-cucumber'
  gem 'parallel_tests'
end

group :test do
  gem 'shoulda-matchers'
end

# Gems used only for assets and not required
# in production environments by default.
# group :assets do
#   gem 'sass-rails'
#   gem 'coffee-rails'
#   gem 'uglifier'
# end
group :assets do
  gem 'sass-rails', '~> 3.1'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'uglifier', '>= 1.0.3'
  gem 'execjs'
  gem 'therubyracer'
end

group :development do
  gem 'better_errors'
  gem 'meta_request'
  gem 'binding_of_caller'
  gem 'ruby-graphviz', '<= 1.0.8'
end

# Sencha theming with compass:
gem 'compass', group: :development


group :deployment do
  gem 'capistrano'
  gem 'capistrano_colors'
  gem 'rvm-capistrano'
end

group :server do
  gem 'god'
  gem 'daemons'
end

Versions I am using are:

Ruby: ruby-1.9.3-p392 Rails: Rails 3.2.13

Not sure what else to tell you, but just ask. I'll add as much information as I can.

Fabrício

The issue is with "exception_notification" gem, you have had updated to version 4.x.

You must change:

YOUR_APP::Application.config.middleware.use ExceptionNotifier
to

YOUR_APP::Application.config.middleware.use ExceptionNotification::Rack

More info: https://github.com/smartinez87/exception_notification#upgrading-to-4x-version

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

`build': undefined method `new' for ExceptionNotifier:Module (NoMethodError) when executing rails s

From Dev

Rails - NoMethodError - undefined method 'scoped' for AccessToFinance:Module

From Dev

Rails Undefined Method - NoMethodError

From Dev

NoMethodError in TasksController#new undefined method `tasks', Rails 4

From Dev

Getting NoMethodError (undefined method `id' for nil:NilClass) on Rails Json API when trying to create new article from rails frontend site

From Dev

Rails: NoMethodError - undefined method 'save'

From Dev

rails NoMethodError: undefined method `hotel'

From Dev

Undefined Method when .build new Object

From Dev

NoMethodError: undefined method for String with custom module in Hanami

From Dev

Rails undefined method for Module

From Dev

Rails 2.2.2 issue: undefined method `activate_bin_path' for Gem:Module (NoMethodError)

From Dev

undefined method `input' for "NoMethodError in Revisers#new "

From Dev

Android Volley Rails: NoMethodError (undefined method `+@' for "":String)

From Dev

Rails Delayed Jobs NoMethodError: Undefined Method `prefix

From Dev

Rails project: NoMethodError: undefined method `identifier' for String

From Dev

Rails NoMethodError: undefined method `compact' error

From Dev

Rails - NoMethodError: undefined method `configure' for #<FirstApp

From Dev

Ruby on Rails NoMethodError "undefined method `translates'"

From Dev

'NoMethodError: undefined method' in Ruby on Rails Model

From Dev

Rails DateTime - NoMethodError (undefined method `[]' for nil:NilClass)

From Dev

Rails project: NoMethodError: undefined method `identifier' for String

From Dev

Heroku + Rails: NoMethodError (undefined method `/' for nil:NilClass)

From Dev

Ruby on Rails Rspec NoMethodError: undefined method 'not_to'

From Dev

'NoMethodError: undefined method' in Ruby on Rails Model

From Dev

Android Volley Rails: NoMethodError (undefined method `+@' for "":String)

From Dev

Rails Delayed Jobs NoMethodError: Undefined Method `prefix

From Dev

NoMethodError Undefined Method FixNum - Rails 4

From Dev

Rails 4 Error: NoMethodError - undefined method `itemfavorites'

From Dev

Rails, Omniauth: NoMethodError - undefined method `persisted?'

Related Related

  1. 1

    `build': undefined method `new' for ExceptionNotifier:Module (NoMethodError) when executing rails s

  2. 2

    Rails - NoMethodError - undefined method 'scoped' for AccessToFinance:Module

  3. 3

    Rails Undefined Method - NoMethodError

  4. 4

    NoMethodError in TasksController#new undefined method `tasks', Rails 4

  5. 5

    Getting NoMethodError (undefined method `id' for nil:NilClass) on Rails Json API when trying to create new article from rails frontend site

  6. 6

    Rails: NoMethodError - undefined method 'save'

  7. 7

    rails NoMethodError: undefined method `hotel'

  8. 8

    Undefined Method when .build new Object

  9. 9

    NoMethodError: undefined method for String with custom module in Hanami

  10. 10

    Rails undefined method for Module

  11. 11

    Rails 2.2.2 issue: undefined method `activate_bin_path' for Gem:Module (NoMethodError)

  12. 12

    undefined method `input' for "NoMethodError in Revisers#new "

  13. 13

    Android Volley Rails: NoMethodError (undefined method `+@' for "":String)

  14. 14

    Rails Delayed Jobs NoMethodError: Undefined Method `prefix

  15. 15

    Rails project: NoMethodError: undefined method `identifier' for String

  16. 16

    Rails NoMethodError: undefined method `compact' error

  17. 17

    Rails - NoMethodError: undefined method `configure' for #<FirstApp

  18. 18

    Ruby on Rails NoMethodError "undefined method `translates'"

  19. 19

    'NoMethodError: undefined method' in Ruby on Rails Model

  20. 20

    Rails DateTime - NoMethodError (undefined method `[]' for nil:NilClass)

  21. 21

    Rails project: NoMethodError: undefined method `identifier' for String

  22. 22

    Heroku + Rails: NoMethodError (undefined method `/' for nil:NilClass)

  23. 23

    Ruby on Rails Rspec NoMethodError: undefined method 'not_to'

  24. 24

    'NoMethodError: undefined method' in Ruby on Rails Model

  25. 25

    Android Volley Rails: NoMethodError (undefined method `+@' for "":String)

  26. 26

    Rails Delayed Jobs NoMethodError: Undefined Method `prefix

  27. 27

    NoMethodError Undefined Method FixNum - Rails 4

  28. 28

    Rails 4 Error: NoMethodError - undefined method `itemfavorites'

  29. 29

    Rails, Omniauth: NoMethodError - undefined method `persisted?'

HotTag

Archive