Skip to content

Instantly share code, notes, and snippets.

@tazsingh
Created October 24, 2012 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tazsingh/3948385 to your computer and use it in GitHub Desktop.
Save tazsingh/3948385 to your computer and use it in GitHub Desktop.
TorqueBox javascript_expansions error
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `each' for nil:NilClass
org.torquebox.web.servlet.RackFilter.doRack(RackFilter.java:117)
org.torquebox.web.servlet.RackFilter.doFilter(RackFilter.java:101)
org.torquebox.web.servlet.RackFilter.doFilter(RackFilter.java:72)
root cause
org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `each' for nil:NilClass
RUBY.register_javascript_expansion(/Users/tsingh/.rvm/gems/jruby-1.7.0@pricechopper/gems/actionpack-3.2.8/lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb:68)
RUBY.Railtie(/Users/tsingh/.rvm/gems/jruby-1.7.0@pricechopper/gems/actionpack-3.2.8/lib/action_view/railtie.rb:29)
org.jruby.RubyBasicObject.instance_eval(org/jruby/RubyBasicObject.java:1699)
Module.execute_hook(/Users/tsingh/.rvm/gems/jruby-1.7.0@pricechopper/gems/activesupport-3.2.8/lib/active_support/lazy_load_hooks.rb:36)
Module.on_load(/Users/tsingh/.rvm/gems/jruby-1.7.0@pricechopper/gems/activesupport-3.2.8/lib/active_support/lazy_load_hooks.rb:26)
org.jruby.RubyArray.each(org/jruby/RubyArray.java:1612)
Module.on_load(/Users/tsingh/.rvm/gems/jruby-1.7.0@pricechopper/gems/activesupport-3.2.8/lib/active_support/lazy_load_hooks.rb:25)
RUBY.Railtie(/Users/tsingh/.rvm/gems/jruby-1.7.0@pricechopper/gems/actionpack-3.2.8/lib/action_view/railtie.rb:28)
org.jruby.RubyBasicObject.instance_exec(org/jruby/RubyBasicObject.java:1728)
Rails::Initializable::Initializer.run(/Users/tsingh/.rvm/gems/jruby-1.7.0@pricechopper/gems/railties-3.2.8/lib/rails/initializable.rb:30)
RUBY.run_initializers(/Users/tsingh/.rvm/gems/jruby-1.7.0@pricechopper/gems/railties-3.2.8/lib/rails/initializable.rb:55)
org.jruby.RubyArray.each(org/jruby/RubyArray.java:1612)
RUBY.run_initializers(/Users/tsingh/.rvm/gems/jruby-1.7.0@pricechopper/gems/railties-3.2.8/lib/rails/initializable.rb:54)
RUBY.initialize!(/Users/tsingh/.rvm/gems/jruby-1.7.0@pricechopper/gems/railties-3.2.8/lib/rails/application.rb:136)
Class.method_added(file:/Users/tsingh/.rvm/gems/jruby-1.7.0@pricechopper/gems/torquebox-server-2.1.2-java/jboss/modules/org/torquebox/web/main/torquebox-web.jar!/org/torquebox/web/rails/boot.rb:92)
org.jruby.RubyBasicObject.__send__(org/jruby/RubyBasicObject.java:1667)
org.jruby.RubyKernel.send(org/jruby/RubyKernel.java:2077)
RUBY.method_missing(/Users/tsingh/.rvm/gems/jruby-1.7.0@pricechopper/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30)
RUBY.(root)(/Users/tsingh/Documents/Code/mercatus/pricechopper/config/environment.rb:5)
org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1019)
ActiveSupport::Dependencies::Loadable.require(/Users/tsingh/.rvm/gems/jruby-1.7.0@pricechopper/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251)
ActiveSupport::Dependencies::Loadable.load_dependency(/Users/tsingh/.rvm/gems/jruby-1.7.0@pricechopper/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236)
ActiveSupport::Dependencies::Loadable.require(/Users/tsingh/.rvm/gems/jruby-1.7.0@pricechopper/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251)
RUBY.(root)(/Users/tsingh/Documents/Code/mercatus/pricechopper/config.ru:1)
org.jruby.RubyBasicObject.instance_eval(org/jruby/RubyBasicObject.java:1699)
RUBY.(root)(/Users/tsingh/Documents/Code/mercatus/pricechopper/config.ru:5)
RUBY.initialize(/Users/tsingh/.rvm/gems/jruby-1.7.0@pricechopper/gems/rack-1.4.1/lib/rack/builder.rb:51)
note The full stack trace of the root cause is available in the JBoss Web/7.0.16.Final logs.
JBoss Web/7.0.16.Final
@cue232s
Copy link

cue232s commented Sep 10, 2014

Did you ever resolve this issue? If so, what was the problem?
Thanks,

  • Edu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment