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

msgpack.jar seems to be missing in v1.5.5 #295

Closed
aditya109 opened this issue Aug 23, 2022 · 7 comments
Closed

msgpack.jar seems to be missing in v1.5.5 #295

aditya109 opened this issue Aug 23, 2022 · 7 comments

Comments

@aditya109
Copy link

Facing an issue while running the following code:

require 'rubygems'
require 'aerospike'

include Aerospike

client = Client.new("127.0.0.1")

key = Key.new('test', 'test', 'key value')
bin_map = {
  'bin1' => 'value1',
  'bin2' => 2,
  'bin4' => ['value4', {'map1' => 'map val'}],
  'bin5' => {'value5' => [124, "string value"]},
}

client.put(key, bin_map)
record = client.get(key)
record.bins['bin1'] = 'other value'

client.put(key, record.bins)
record = client.get(key)
puts record.bins

client.delete(key)
puts client.exists(key)

client.close

Gemfile

source 'https://rubygems.org'

gem 'aerospike', '~> 2.20', '>= 2.20.1'

Gemfile.lock:

GEM
  remote: https://rubygems.org/
  specs:
    aerospike (2.22.0)
      bcrypt (~> 3.1)
      msgpack (~> 1.0)
    bcrypt (3.1.18-java)
    msgpack (1.5.5-java)

PLATFORMS
  universal-java-1.8

DEPENDENCIES
  aerospike (~> 2.20, >= 2.20.1)

BUNDLED WITH
   2.3.7

Getting the following error:

LoadError: no such file to load -- msgpack/msgpack.jar
  require at org/jruby/RubyKernel.java:1017
  require at /home/adityakumar/services/jruby-9.3.4.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:160
   <main> at /home/adityakumar/services/jruby-9.3.4.0/lib/ruby/gems/shared/gems/msgpack-1.5.5-java/lib/msgpack.rb:4
  require at org/jruby/RubyKernel.java:1017
  require at /home/adityakumar/services/jruby-9.3.4.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:148
   <main> at /home/adityakumar/services/jruby-9.3.4.0/lib/ruby/gems/shared/gems/aerospike-2.22.0/lib/aerospike.rb:23
  require at org/jruby/RubyKernel.java:1017
  require at /home/adityakumar/services/jruby-9.3.4.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:160
   <main> at hello.rb:2
LoadError: no such file to load -- msgpack/msgpack.jar
  require at org/jruby/RubyKernel.java:1017
  require at /home/adityakumar/services/jruby-9.3.4.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85
   <main> at /home/adityakumar/services/jruby-9.3.4.0/lib/ruby/gems/shared/gems/msgpack-1.5.5-java/lib/msgpack.rb:4
  require at org/jruby/RubyKernel.java:1017
  require at /home/adityakumar/services/jruby-9.3.4.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:148
   <main> at /home/adityakumar/services/jruby-9.3.4.0/lib/ruby/gems/shared/gems/aerospike-2.22.0/lib/aerospike.rb:23
  require at org/jruby/RubyKernel.java:1017
  require at /home/adityakumar/services/jruby-9.3.4.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:160
   <main> at hello.rb:2
LoadError: no such file to load -- aerospike
  require at org/jruby/RubyKernel.java:1017
  require at /home/adityakumar/services/jruby-9.3.4.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85
   <main> at hello.rb:2
@aditya109 aditya109 changed the title msgpack.jar seems to be missing msgpack.jar seems to be missing in v1.5.5 Aug 23, 2022
@byroot
Copy link
Member

byroot commented Aug 23, 2022

Hum, I may have borked the release. I'll have a look.

@byroot
Copy link
Member

byroot commented Aug 23, 2022

Yes I did -_-

@byroot
Copy link
Member

byroot commented Aug 23, 2022

Fixed in 1.5.6. Thanks for the report.

@byroot byroot closed this as completed Aug 23, 2022
@aditya109
Copy link
Author

@byroot sorry but do we have an ETA .... this seems to be having affecting our prod.

@byroot
Copy link
Member

byroot commented Aug 23, 2022

1.5.6 is out already. Also 1.5.5 didn't change anything for jruby, so you could just stick with 1.5.4.

@aditya109
Copy link
Author

aditya109 commented Aug 23, 2022

@byroot the issue our service does not use msgpack directly... it uses aerospike gem which has a transitive dependency on msgpack.
The issue is the aerospike gem always picks latest from msgpack.
I was not sure if changing the transitive dependency version manually would be great idea.

source "https://rubygems.org"

group :test do
  gem 'rspec', '~> 3.4'
  gem 'codecov', require: false
end

group :development do
  gem 'rubocop', require: false
end

gem 'rake'
gem 'bcrypt'
gem 'msgpack', '~> 1.2'

platforms :mri, :rbx do
  gem 'openssl'
end

platforms :jruby do
  gem 'jruby-openssl', '~> 0.10', require: 'openssl'
end

gemspec

@byroot
Copy link
Member

byroot commented Aug 23, 2022

I was not sure if changing the transitive dependency version manually would be great idea.

It's fine.

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