Home > Cannot Load > Cannot Load Java Class Jline.console.consolereader

Cannot Load Java Class Jline.console.consolereader

rwilliams commented Sep 16, 2013 $ grep "ConsoleReader" . -r highline-1.6.19/lib/highline/system_extensions.rb: java_import 'jline.console.ConsoleReader' highline-1.6.19/lib/highline/system_extensions.rb: @java_console = ConsoleReader.new(@input.to_inputstream, @output.to_outputstream) highline-1.6.19/lib/highline/system_extensions.rb: java_import 'jline.ConsoleReader' highline-1.6.19/lib/highline/system_extensions.rb: @java_console = ConsoleReader.new(@java_input, @java_output) highline-1.6.19/lib/highline.rb: # Also, JRuby-1.7's ConsoleReader.readLine() Help Tracker Documentation Report Tracker Problem Documentation Current Docs Jython Book Wiki links Front page/News FAQ Why Jython? Home | Browse | FAQ | Advertising | Blog | Feedback | MarkMail™ Legalese | About MarkLogic Server   Search for:Search Want your own MarkMail? The situation is this: 1. Source

Thanks for your suggestions. -Khirod Report post Edit Delete Reply with quote Forum List Topic List New Topic Search Register User List Log In Enable email notification | Enable multi-page view Loading the highline namespace has a side effect of creating a global variable called $terminal, which, when run under JRuby, causes an object called ConsoleReader (from the JLine API) to be All rights reserved. Contact information - E-Mail: webmaster (at) ruby-forum (dot) com.

Hello Nobody Logout Sign In or Sign Up (Why?) HomeRefine Search    Messages per Month     Sort by Relevance Date, Forward Date, Backward Start a set with this searchInclude this search in one of A JRuby instance flush is triggered in Puppet Server, either via the pool flush API, or because we hit the value of max-requests-per-instance. 8. Thanks to Chris Price for his assistance during my checks. Register here.

JRuby Team member enebo commented Sep 16, 2013 ok great. so when you are using jruby-complete please leave those other jars out of the classpath. Log in with Google account | Log in with Yahoo account | Log in with Facebook account No account? BanzaiMan closed this Sep 17, 2013 Sign up for free to join this conversation on GitHub.

The constructor for the JLine ConsoleReader spawns a Java Thread in the background. Thanks for your suggestions. -Khirod -- Posted via http://www.ruby-forum.com/. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email Mon 15:57:07 | cache-1.a | 0.22 seconds | © 2007-2014 MarkLogic Corporation. But I want to use the jline from jruby-complete-1.7.8.jar. Further, I don't know that whatever replacement they have for JLine won't have the same issue with creation of and poor management of background threads, so we'd need to investigate that.

But I want to use the jline from jruby-complete-1.7.8.jar. Tell us about it. Fri Feb 26 20:13:37 2016 416: 8 6848 org.jruby.Ruby The numbers stayed lower using the updated highline gem, and stayed consistantly lower for longer using both my PR'd version and Report post Edit Delete Reply with quote Re: cannot load Java class jline.console.ConsoleReader Khirod Patra (khirodjruby) on 2014-05-20 13:53 Hi Christian, In the code I tried p require "readline/jline-2.11" p $CLASSPATH

Puppet Server creates a new JRuby instance and attempts to shut down the old one. 9. This also stopped jline.console.ConsoleReader from appearing. I checked manually the jline package included in the jruby-stdlib-complete-1.7.8.jar, but the log says it looks from jruby-core-complete-1.7.8.jar , not sure. https://github.com/TomPoulton/hiera-eyaml/releases/tag/v2.1.0 People Assignee: Owen Rodabaugh Reporter: Chris Price Votes: 4 Vote for this issue Watchers: 16 Start watching this issue Dates Created: 2016/02/19 9:46 AM Updated: 2016/09/27 9:32 AM Resolved: 2016/03/16

You signed in with another tab or window. this contact form true ["file:/home/Khirod/myproject/lib/ojdbc6.jar", "file:/home/Khirod/myproject/lib/jruby-complete-1.7.8.jar", "file:/home/Khirod/myproject/lib/mycustom.jar", "jar:file:/tmp/jruby5839733601718663013extract/jruby-stdlib-complete-1.7.8.jar!/META-INF/jruby.home/lib/ruby/shared/readline/jline-2.11.jar"] I used the java_import to load ConsoleReader i.e. It appears that JRuby is unable to clean up the old instance properly, because it still sees the reference to the ConsoleReader via the highline global $terminal variable, and something about Hide Permalink Chris Price added a comment - 2016/03/09 10:11 AM Customer who originally reported this issue (PE-13809) is testing the fix on one of their nodes.

I also tested my PR (https://github.com/TomPoulton/hiera-eyaml/pull/187) that only included the highline code when necessary, reverting the highline gem back to the old version (1.6.19). I also watched out for JRuby instances running, as this was another indicator. https://github.com/TomPoulton/hiera-eyaml/releases/tag/v2.1.0 Show Chris Price added a comment - 2016/03/16 10:09 AM - edited Fixed with the latest release of hiera-eyaml. have a peek here Pretending that it's not supported only makes it more difficult for us to actually fix issues when they arise.

Show Chris Price added a comment - 2016/03/09 10:11 AM Customer who originally reported this issue (PE-13809) is testing the fix on one of their nodes. how do you execute jruby ? cannot load Java class jline.console.ConsoleReader... ► April (1) ► February (1) ► January (1) ► 2012 (9) ► December (1) ► June (4) ► May (2) ► April (1) ► March

Supposedly the next major version of highline (2.0) is refactored to no longer use JLine at all.

Issue Links links to Hiera Eyaml Github Issue 163 mentioned in Page Loading... does it help if you require 'readline/jline-2.11' explicitly - something like $ java -jar jruby-complete-1.7.8.jar -e 'p require"readline/jline-2.11";p $CLASSPATH' ? When I updated the gem, the numbers creeped up to 11 with an agent constantly running. No registration required!

We recommend upgrading to the latest Safari, Google Chrome, or Firefox. The Travis CI webclient needs JavaScript to work properly. About Welcome Download Installation Mailing Lists License Foundation Archived Sites Acknowledgments Issue Tracker Issues Show Open Show Unassigned Search User Login Remember me? http://ecoflashapps.com/cannot-load/cannot-load-java-class-org-quartz-spi-jobfactory.html File a PR against hiera-eyaml that prevents highline from ever being "require"d, unless it's actually going to be used.

Reload to refresh your session. Page Loading... It should work if done before whenever this class is trying to be imported.