On Sun, May 10, 2020 at 10:45:34PM -0300, Antonio Terceiro wrote: > Package: jruby > Version: 9.1.17.0-3 > Severity: important > > ~$ jgem --version > Unhandled Java exception: java.lang.NoSuchMethodError: > java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer; > java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer; > encode at org/jruby/RubyEncoding.java:285 > encodeUTF8 at org/jruby/RubyEncoding.java:181 > encodeBytelist at org/jruby/RubyString.java:5533 > <init> at org/jruby/RubyString.java:360 > <init> at org/jruby/RubyString.java:352 > newString at org/jruby/RubyString.java:447 > newString at org/jruby/Ruby.java:3489 > createFileClass at org/jruby/RubyFile.java:213 > initCore at org/jruby/Ruby.java:1502 > bootstrap at org/jruby/Ruby.java:1286 > init at org/jruby/Ruby.java:1185 > newInstance at org/jruby/Ruby.java:341 > internalRun at org/jruby/Main.java:271 > run at org/jruby/Main.java:232 > main at org/jruby/Main.java:204 > > `jgem list` has the same result.
Sorry, it turned out I had openjdk 8 as my default java alternative. I
switched back to the default, but I still can't make jgem work.
This is on a clean sid docker container with just jruby installed:
----------------8<----------------8<----------------8<-----------------
root@add83903c526:/# jruby -e 'puts 1'
1
root@add83903c526:/# jruby --version
jruby 9.1.17.0 (2.3.3) 2019-05-28 fffffff OpenJDK 64-Bit Server VM
11.0.7+10-post-Debian-3 on 11.0.7+10-post-Debian-3 +jit [linux-x86_64]
root@add83903c526:/# jgem list
/usr/share/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1:in
`require':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by jnr.posix.JavaLibCHelper$ReflectiveAccess
to method sun.nio.ch.SelChImpl.getFD()
WARNING: Please consider reporting this to the maintainers of
jnr.posix.JavaLibCHelper$ReflectiveAccess
WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future release
LoadError: no such file to load -- psych
require at org/jruby/RubyKernel.java:956
require at
/usr/share/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
<main> at /usr/share/jruby/lib/ruby/stdlib/yaml.rb:6
require at org/jruby/RubyKernel.java:956
(root) at
/usr/share/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
require at
/usr/share/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
load_yaml at /usr/share/jruby/lib/ruby/stdlib/rubygems.rb:701
load_file at
/usr/share/jruby/lib/ruby/stdlib/rubygems/config_file.rb:340
initialize at
/usr/share/jruby/lib/ruby/stdlib/rubygems/config_file.rb:202
do_configuration at /usr/share/jruby/lib/ruby/stdlib/rubygems/gem_runner.rb:75
<main> at /usr/bin/jgem:21
root@add83903c526:/# jgem --version
/usr/share/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1:in
`require':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by jnr.posix.JavaLibCHelper$ReflectiveAccess
to method sun.nio.ch.SelChImpl.getFD()
WARNING: Please consider reporting this to the maintainers of
jnr.posix.JavaLibCHelper$ReflectiveAccess
WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future release
LoadError: no such file to load -- psych
require at org/jruby/RubyKernel.java:956
require at
/usr/share/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
<main> at /usr/share/jruby/lib/ruby/stdlib/yaml.rb:6
require at org/jruby/RubyKernel.java:956
(root) at
/usr/share/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
require at
/usr/share/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
load_yaml at /usr/share/jruby/lib/ruby/stdlib/rubygems.rb:701
load_file at
/usr/share/jruby/lib/ruby/stdlib/rubygems/config_file.rb:340
initialize at
/usr/share/jruby/lib/ruby/stdlib/rubygems/config_file.rb:202
do_configuration at /usr/share/jruby/lib/ruby/stdlib/rubygems/gem_runner.rb:75
<main> at /usr/bin/jgem:21
root@add83903c526:/# jirb
irb(main):001:0> YAML
NameError: uninitialized constant YAML
from org/jruby/RubyModule.java:3372:in `const_missing'
from (irb):1:in `<eval>'
from org/jruby/RubyKernel.java:995:in `eval'
from org/jruby/RubyKernel.java:1316:in `loop'
from org/jruby/RubyKernel.java:1138:in `catch'
from org/jruby/RubyKernel.java:1138:in `catch'
from /usr/bin/jirb:13:in `<main>'
irb(main):002:0> require 'yaml'
/usr/share/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1:in
`require':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
LoadError: no such file to load -- psych
from org/jruby/RubyKernel.java:956:in `require'
from
/usr/share/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55:in
`require'
from /usr/share/jruby/lib/ruby/stdlib/yaml.rb:6:in `<main>'
from org/jruby/RubyKernel.java:956:in `require'
from
/usr/share/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1:in
`(root)'
from
/usr/share/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55:in
`<eval>'
from org/jruby/RubyKernel.java:995:in `eval'
from (irb):2:in `evaluate'
from org/jruby/RubyKernel.java:1316:in `loop'
from org/jruby/RubyKernel.java:1138:in `catch'
from org/jruby/RubyKernel.java:1138:in `catch'
from /usr/bin/jirb:13:in `<main>'
----------------8<----------------8<----------------8<-----------------
Is this caused by #959571 ?
signature.asc
Description: PGP signature

