Issue with JRuby (uninitialized constant Fiddle::Pointer::LibC)
prcongithub opened this issue · 4 comments
prcongithub commented
class User
include Mongoid::Document
include Mongoid::Timestamps
encrypts :aadhar_number
field :aadhar_number_bidx, type: String
blind_index :aadhar_number
end
irb(main):005:0> User.where(aadhar_number: "123").count
Traceback (most recent call last):
1: from (irb):5:in `evaluate'
NameError (uninitialized constant Fiddle::Pointer::LibC)
ENV
JRuby: 9.2.9.0
Rails: 5.2.3
ankane commented
Hey @prcongithub, I believe that's fixed in 9.2.10.0 (jruby/jruby#5955), but Blind Index and Lockbox don't officially support JRuby as mentioned previously, so please don't create issues for it.
prcongithub commented
Sorry about that!
But thanks anyway, 9.2.10.0 worked.
ankane commented
No worries, glad it's working. There's nothing specific to MRI in either gem, so if you run into issues in the future that aren't reproducible with MRI, there's a good chance it's a JRuby bug.
prcongithub commented
Thanks!