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

NameError: uninitialized constant JSON::Ext::Parser using jruby-complete #2496

Closed
rtyler opened this Issue Jan 22, 2015 · 3 comments

Comments

Projects
None yet
4 participants
@rtyler
Copy link

commented Jan 22, 2015

The full repro case is in this repository

Sttacktrace here:

NameError: uninitialized constant JSON::Ext::Parser
    const_missing at org/jruby/RubyModule.java:2935
           (root) at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/json-1.8.2-java/lib/json/ext.rb:16
           (root) at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/json-1.8.2-java/lib/json.rb:1
           (root) at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/json-1.8.2-java/lib/json.rb:58
          require at org/jruby/RubyKernel.java:954
       __script__ at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:69
           (root) at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/activesupport-4.2.0/lib/active_support/json/decoding.rb:1
           (root) at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/activesupport-4.2.0/lib/active_support/json/decoding.rb:3
          require at org/jruby/RubyKernel.java:954
       __script__ at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:69
           (root) at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/activesupport-4.2.0/lib/active_support/json.rb:1
          require at org/jruby/RubyKernel.java:954
       __script__ at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:69
           (root) at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/activesupport-4.2.0/lib/active_support/json.rb:1
          require at org/jruby/RubyKernel.java:954
       __script__ at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:128
           (root) at /home/tyler/source/github/json-9kp1-bug/spec/some_spec.rb:1
             load at org/jruby/RubyKernel.java:969
           (root) at /home/tyler/source/github/json-9kp1-bug/spec/some_spec.rb:2
             each at org/jruby/RubyArray.java:1569
           (root) at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1
  load_spec_files at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105
  load_spec_files at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105
            setup at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:96
              run at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:84
              run at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:69
             load at org/jruby/RubyKernel.java:969
       __script__ at /home/tyler/source/github/json-9kp1-bug/build/tmp/jrubyExec/bin/rspec:23
:spec FAILED

@rtyler rtyler added the JRuby 9000 label Jan 22, 2015

ai referenced this issue in ai/autoprefixer-rails Feb 1, 2015

@rtyler

This comment has been minimized.

Copy link
Author

commented Jun 5, 2015

Note to self: I've seen this with JRuby 1.7.x jruby-complete when I had some MRI Ruby as my default Ruby exposed via RVM.

Unsetting GEM_HOME and GEM_PATH resulted in that being fixed.

@mkristian

This comment has been minimized.

Copy link
Member

commented Jun 5, 2015

with 86887d3 which is now also applied on jruby-1_7 this issue should be fixed.

will have a look at the supplied repo.

@mkristian mkristian self-assigned this Jun 5, 2015

@mkristian mkristian added this to the JRuby 9.0.0.0.rc1 milestone Jun 5, 2015

@headius

This comment has been minimized.

Copy link
Member

commented Jul 2, 2015

If @mkristian says it's fixed, I'll accept that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.