Skip to content

Instantly share code, notes, and snippets.

@ololo-psh
Created November 12, 2015 17:26
Show Gist options
  • Save ololo-psh/787726db1b879d3ad133 to your computer and use it in GitHub Desktop.
Save ololo-psh/787726db1b879d3ad133 to your computer and use it in GitHub Desktop.
Error occures randomly on different routes. Cleared after server restart.
ruby -v jruby 9.0.1.0 (2.2.2) 2015-09-02 583f336 OpenJDK 64-Bit Server VM 24.79-b02 on 1.7.0_79-b14 +jit [linux-amd64]
server puma-2.14.0-java
rails -v Rails 4.2.4
NoMethodError (undefined method `names' for nil:NilClass):
vendor/bundle/jruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:116:in `block in find_routes'
org/jruby/RubyArray.java:2332:in `map!'
vendor/bundle/jruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:113:in `find_routes'
vendor/bundle/jruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve'
vendor/bundle/jruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/rack/agent_hooks.rb:30:in `traced_call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/rack/browser_monitoring.rb:32:in `traced_call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/prerender_rails-1.2.0/lib/prerender_rails.rb:101:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
org/jruby/RubyKernel.java:1098:in `catch'
vendor/bundle/jruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:25:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context'
vendor/bundle/jruby/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
vendor/bundle/jruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__'
vendor/bundle/jruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
vendor/bundle/jruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks'
vendor/bundle/jruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/lograge-0.3.4/lib/lograge/rails_ext/rack/logger.rb:15:in `call_app'
vendor/bundle/jruby/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call'
vendor/bundle/jruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged'
vendor/bundle/jruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged'
vendor/bundle/jruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged'
vendor/bundle/jruby/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/rack-cors-0.4.0/lib/rack/cors.rb:80:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call'
vendor/bundle/jruby/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call'
vendor/bundle/jruby/2.2.0/gems/newrelic_rpm-3.14.0.305/lib/new_relic/agent/instrumentation/middleware_tracing.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/puma-2.14.0-java/lib/puma/configuration.rb:78:in `call'
vendor/bundle/jruby/2.2.0/gems/puma-2.14.0-java/lib/puma/server.rb:541:in `handle_request'
vendor/bundle/jruby/2.2.0/gems/puma-2.14.0-java/lib/puma/server.rb:388:in `process_client'
vendor/bundle/jruby/2.2.0/gems/puma-2.14.0-java/lib/puma/server.rb:270:in `block in run'
org/jruby/RubyProc.java:308:in `call'
vendor/bundle/jruby/2.2.0/gems/puma-2.14.0-java/lib/puma/thread_pool.rb:106:in `block in spawn_thread'
@richtmat
Copy link

I just have that behaviour on my machine, running jruby 9.1.5.0 on a wildfly 10 server. Could you find out what was going on?

@rahul8sharma
Copy link

I am having the same issue. Did you find any solution?

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