Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why Jruby-9.0.3.0 RubyKernel.java throws exceptions 'LoadError/ NameError' when -Xcli.debug=true? #3556

Closed
b1tfury opened this issue Dec 21, 2015 · 4 comments
Milestone

Comments

@b1tfury
Copy link
Contributor

b1tfury commented Dec 21, 2015

Following is complete list of exceptions

Exception `LoadError' at org/jruby/RubyKernel.java:939 - no such file to load -- pg_array_parser
Exception `LoadError' at org/jruby/RubyKernel.java:939 - no such file to load -- rspec-http
Exception `LoadError' at org/jruby/RubyKernel.java:939 - no such file to load -- strong_parameters
Exception `NameError' at /usr/local/Cellar/rbenv/0.4.0/versions/jruby-9.0.3.0/lib/ruby/gems/shared/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:534 - uninitialized constant Addressable
Exception `LoadError' at org/jruby/RubyKernel.java:939 - no such file to load -- idn
Exception `LoadError' at org/jruby/RubyKernel.java:939 - no such file to load -- idn
Exception `LoadError' at org/jruby/RubyKernel.java:939 - no such file to load -- http
Exception `LoadError' at org/jruby/RubyKernel.java:939 - no such file to load -- httpclient
Exception `LoadError' at org/jruby/RubyKernel.java:939 - no such file to load -- patron
Exception `LoadError' at org/jruby/RubyKernel.java:939 - no such file to load -- curb
Exception `LoadError' at org/jruby/RubyKernel.java:939 - no such file to load -- em-http-request
Exception `NameError' at /usr/local/Cellar/rbenv/0.4.0/versions/jruby-9.0.3.0/lib/ruby/gems/shared/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:534 - uninitialized constant EventMachine
Exception `NameError' at /usr/local/Cellar/rbenv/0.4.0/versions/jruby-9.0.3.0/lib/ruby/gems/shared/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:534 - uninitialized constant EventMachine
Exception `LoadError' at org/jruby/RubyKernel.java:939 - no such file to load -- typhoeus
Exception `LoadError' at org/jruby/RubyKernel.java:939 - no such file to load -- excon
Exception `LoadError' at org/jruby/RubyKernel.java:939 - no such file to load -- manticore
Exception `LoadError' at org/jruby/RubyKernel.java:939 - no such file to load -- tzinfo/data
Exception `LoadError' at org/jruby/RubyKernel.java:939 - no such file to load -- action_view/test_case/test_helper
Exception `LoadError' at org/jruby/RubyKernel.java:939 - no such file to load -- action_view/test_case/test_helper
Exception `LoadError' at org/jruby/RubyKernel.java:939 - No such file to load -- action_view/test_case/test_helper
Exception `AbstractController::Helpers::MissingHelperError' at /usr/local/Cellar/rbenv/0.4.0/versions/jruby-9.0.3.0/lib/ruby/gems/shared/gems/actionpack-4.2.5/lib/abstract_controller/helpers.rb:151 - Missing helper file helpers/action_view/test_case/test_helper.rb
Exception `LoadError' at org/jruby/RubyKernel.java:939 - no such file to load -- capybara/rspec
Exception `LoadError' at org/jruby/RubyKernel.java:939 - no such file to load -- capybara/rails
@kares
Copy link
Member

kares commented Dec 21, 2015

these are exceptions going on in the runtime (since you requested debug) - but seems like none of these actually bubble-up (all of them are rescued). so its not actually an issue but simply a misunderstanding of what's going - with Rails quite a lot :) ... or did a I miss something?

@kares kares added this to the Won't Fix milestone Dec 21, 2015
@b1tfury
Copy link
Contributor Author

b1tfury commented Dec 21, 2015

@kares thanks for the reply.
I got your point that all these exceptions are going on in the runtime and all of them are rescued.
But I want to know why RubyKernel.java is raising these exceptions even after I have installed all the required gems ?

@kares kares closed this as completed Dec 21, 2015
@kares
Copy link
Member

kares commented Dec 21, 2015

generally due code such as begin require 'xxx'; ... rescue LoadError in gems. just review the line numbers or simply try -Xlog.backtraces=true to get more details on where error traces are generated.

@b1tfury
Copy link
Contributor Author

b1tfury commented Dec 21, 2015

@kares Does Jruby log all the exceptions of rescue block when we set -Xcli.debug = true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants