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

NoMethodError: undefined method `_orig_klass_name' when running in JRuby 9.1.2.0 #2066

Closed
jcarvalho opened this Issue Jul 18, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@jcarvalho

jcarvalho commented Jul 18, 2016

When running a sample Padrino application in JRuby, I'm seeing the following error on startup (the class in question varies from application to application):

NoMethodError: undefined method `_orig_klass_name' for #<Class:Java::OrgJrubyExtPsych>
                     block in lock! at /.rvm/gems/jruby-9.1.2.0/gems/padrino-core-0.13.2/lib/padrino-core/reloader.rb:77
            block in object_classes at /.rvm/gems/jruby-9.1.2.0/gems/padrino-core-0.13.2/lib/padrino-core/reloader/storage.rb:62
                        each_object at org/jruby/RubyObjectSpace.java:184
                               each at org/jruby/RubyEnumerator.java:293
                               each at org/jruby/RubyEnumerator.java:299
                     object_classes at /.rvm/gems/jruby-9.1.2.0/gems/padrino-core-0.13.2/lib/padrino-core/reloader/storage.rb:60
                              lock! at /.rvm/gems/jruby-9.1.2.0/gems/padrino-core-0.13.2/lib/padrino-core/reloader.rb:76
                              load! at /.rvm/gems/jruby-9.1.2.0/gems/padrino-core-0.13.2/lib/padrino-core/loader.rb:56
                              <top> at /sandbox/cool/config/boot.rb:56
                            require at org/jruby/RubyKernel.java:944
                    block in (root) at /sandbox/cool/config.ru:1
                      instance_eval at org/jruby/RubyBasicObject.java:1647
                    new_from_string at /sandbox/cool/config.ru:7
                             <eval> at /.rvm/gems/jruby-9.1.2.0/gems/rack-1.6.4/lib/rack/builder.rb:55
                               eval at org/jruby/RubyKernel.java:983
                    new_from_string at /sandbox/cool/config.ru:1
                    new_from_string at /.rvm/gems/jruby-9.1.2.0/gems/rack-1.6.4/lib/rack/builder.rb:49
                         parse_file at /.rvm/gems/jruby-9.1.2.0/gems/rack-1.6.4/lib/rack/builder.rb:40
  build_app_and_options_from_config at /.rvm/gems/jruby-9.1.2.0/gems/rack-1.6.4/lib/rack/server.rb:299
                                app at /.rvm/gems/jruby-9.1.2.0/gems/rack-1.6.4/lib/rack/server.rb:208
                        wrapped_app at /.rvm/gems/jruby-9.1.2.0/gems/rack-1.6.4/lib/rack/server.rb:336
                              start at /.rvm/gems/jruby-9.1.2.0/gems/rack-1.6.4/lib/rack/server.rb:272
                              <top> at /.rvm/gems/jruby-9.1.2.0/gems/rack-1.6.4/lib/rack/server.rb:147
                               load at org/jruby/RubyKernel.java:962
                             <eval> at /.rvm/gems/jruby-9.1.2.0/gems/rack-1.6.4/bin/rackup:4
                               eval at org/jruby/RubyKernel.java:983
                              <top> at /.rvm/gems/jruby-9.1.2.0/bin/jruby_executable_hooks:15

My JRuby version is as follows:

$ ruby --version
jruby 9.1.2.0 (2.3.0) 2016-05-26 7357c8f Java HotSpot(TM) 64-Bit Server VM 25.92-b14 on 1.8.0_92-b14 +jit [darwin-x86_64]

Steps to replicate:

  • rvm use jruby-9.1.2.0
  • padrino g project cool
  • cd cool
  • bundle
  • bundle exec rackup
@ujifgc

This comment has been minimized.

Show comment
Hide comment
@ujifgc

ujifgc Jul 27, 2016

Member

Confirmed and fixed.

Member

ujifgc commented Jul 27, 2016

Confirmed and fixed.

@ujifgc ujifgc removed the revalidate label Jul 27, 2016

@jcarvalho

This comment has been minimized.

Show comment
Hide comment
@jcarvalho

jcarvalho Jul 27, 2016

Thanks! 👍

jcarvalho commented Jul 27, 2016

Thanks! 👍

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