-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
jruby 9.1.15 fails with NameError: cannot load Java class jline.console.ConsoleReader #4889
Comments
@headius this indicates we break existing code when we repackage jline. so all we can do is just shade it. this is the code line: |
Is there a work around for this? |
@jboler upgrade highline to the latest version, as the latest works now. not sure if such an upgrade is always possible. |
I can't seem to use phusion passenger because of this.
|
@nelsnelson My work around for that was to delete |
@mkristian So we should disable relocating the jline logic then, yes? Can you undo that for 9.1.16.0 please? |
@headius we fixed a similar problem with the highline gems, maybe we can do this on phusion_passenger. will ping you one irb/gitter the next days. we always can roll back |
@mkristian Decision time! |
Ok, after messing with this a bit more it turns out the relocation is just not going to work. The @mkristian will look at removing the relocation and loading the jar through a different mechanism to avoid issues. Then we'll try to finally drop jline in 9.2. |
This has been fixed for 9.1.16.0. |
windows 8.1 x64, clean install of JDK-8u152 x64, clean install of jruby 9.1.15 x64. Using gooddata gem (bundle install), running any sript using gooddata gem fails with below error. Works fine in jruby 9.1.13
NameError: cannot load Java class jline.console.ConsoleReader
at C:/jruby/lib/ruby/gems/shared/gems/highline-1.7.10/lib/highline/import.rb:11for_name at org/jruby/javasupport/JavaClass.java:286
get_proxy_class at org/jruby/javasupport/JavaUtilities.java:34
block in java_import at uri:classloader:/jruby/java/core_ext/object.rb:49
map at org/jruby/RubyArray.java:2487
java_import at uri:classloader:/jruby/java/core_ext/object.rb:36
initialize_system_extensions at C:/jruby/lib/ruby/gems/shared/gems/highline-1.7.10/lib/highline/system_extensions.rb:21
initialize at C:/jruby/lib/ruby/gems/shared/gems/highline-1.7.10/lib/highline.rb:201
require at org/jruby/RubyKernel.java:955
require at C:/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
at C:/jruby/lib/ruby/gems/shared/gems/gooddata-0.6.53/lib/gooddata/commands/auth.rb:1
require at org/jruby/RubyKernel.java:955
require at C:/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
block in (root) at C:/jruby/lib/ruby/gems/shared/gems/gooddata-0.6.53/lib/gooddata/commands/auth.rb:7
each at org/jruby/RubyArray.java:1735
at C:/jruby/lib/ruby/gems/shared/gems/gooddata-0.6.53/lib/gooddata/commands/commands.rb:1
require at org/jruby/RubyKernel.java:955
(root) at C:/jruby/lib/ruby/gems/shared/gems/gooddata-0.6.53/lib/gooddata/commands/commands.rb:11
at C:/jruby/lib/ruby/gems/shared/gems/gooddata-0.6.53/lib/gooddata/commands/commands.rb:10
require at org/jruby/RubyKernel.java:955
(root) at uri:classloader:/jruby/kernel/kernel.rb:1
at scripts\create_service_project.rb:3
The text was updated successfully, but these errors were encountered: