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

Cannot Load Java Class Jline.console.consolereader

Log in with Google account | Log in with Yahoo account | Log in with Facebook account No account? Please help! -Khirod Report post Edit Delete Reply with quote Re: Re: cannot load Java class jline.console.ConsoleReader christian (Guest) on 2014-05-20 10:01 when I execute something like this: $ java -jar History Date User Action Args 2016-02-0815:53:21zyasoftsetmilestone: Jython 2.7.2 2016-01-1515:31:42zyasoftsettitle: jython --boot throws error on Windows 7 -> jython --boot cannot load console support on Windows 2015-11-1323:06:54zyasoftsetnosy: + zyasoftmessages: + msg10470 2015-11-1311:10:24eaaltonensetmessages: 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. Source

At least this is what I think. The situation is this: 1. hope that helps you a step further ;) Report post Edit Delete Reply with quote Re: cannot load Java class jline.console.ConsoleReader Khirod Patra (khirodjruby) on 2014-05-20 18:02 Thanks Christian, The tricks I'm not certain that it would be possible to make some of these changes without breaking the highline API, because it is a very magical DSL that involves monkey patching major https://github.com/jruby/jruby/issues/1017

We're already supporting it, frequently, whether we say it's supported or not. When I updated the gem, the numbers creeped up to 11 with an agent constantly running. It is possible we might revert this change for 1.7.5 just to make things less painful, but in the future we will end up making this change. 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.

https://www.ruby-forum.com/topic/4816085#new -Khirod Posted by Khirod Patra at 9:30 AM No comments: Post a Comment Newer Post Older Post Home Subscribe to: Post Comments (Atom) Khirod Patra Khirod Patra View my complete PE: http://docs.puppetlabs.com/pe/latest/config_puppetserver.html#tuning-maxrequestsperinstance-on-puppet-server Open Source: http://docs.puppetlabs.com/puppetserver/2.2/config_file_puppetserver.html#settings The Problem: As a result of exploring a customer support escalation (PE-13809), we discovered that there is a major memory leak caused by the hiera-eyaml gem. Report post Edit Delete Reply with quote Re: cannot load Java class jline.console.ConsoleReader Khirod Patra (khirodjruby) on 2014-05-20 13:36 Hi Christian, Thanks for your help. All rights reserved.

Likely this is because the Jansi library depends on a DLL for its functionality when run on Windows, and the way it loads up the DLL is incompatible with Jython being 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 Fri Feb 26 20:19:08 2016 425: 7 5992 org.jruby.Ruby Hide Permalink Chris Price added a comment - 2016/03/02 2:36 PM Peter Souter's PR was merged: https://github.com/TomPoulton/hiera-eyaml/pull/187#issuecomment-191454381 And supposedly is included https://groups.google.com/d/msg/jruby-users/8OKGQSaX35g/hjh8mSn3k3UJ Tell us about it.

rwilliams commented Sep 16, 2013 @enebo It prints out the constant fine. Home | Browse | FAQ | Advertising | Blog | Feedback | MarkMail™ Legalese | About MarkLogic Server   Search for:Search Want your own MarkMail? Please help. 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.

cannot load Java class jline.console.ConsoleReader... ► April (1) ► February (1) ► January (1) ► 2012 (9) ► December (1) ► June (4) ► May (2) ► April (1) ► March http://markmail.org/message/dmzrjtha7z7lubzl In any case, we need to know so we can get it fixed for the future. 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 Forum List Topic List New Topic Search Register User List Log In Powered by RForum and Captchator.

In the JVM, Threads are GC roots, which means that anything referenced by the Thread is ineligible for GC. this contact form Log: ---------- [2014-05-20 10:42:34] ERROR Object: cannot load Java class jline.console.ConsoleReader org/jruby/javasupport/JavaClass.java:1250:in `for_name' org/jruby/javasupport/JavaUtilities.java:34:in `get_proxy_class' file:/tmp/jruby882017107996340294extract/jruby-core-complete-1.7.8.jar!/jruby/java/core_ext/object.rb:26:in `java_import' org/jruby/RubyArray.java:2413:in `map' file:/tmp/jruby882017107996340294extract/jruby-core-complete-1.7.8.jar!/jruby/java/core_ext/object.rb:22:in `java_import' Thanks -Khirod Report post Edit Move Delete topic Reply Fri Feb 26 20:19:08 2016 425: 7 5992 org.jruby.Ruby Show Peter Souter added a comment - 2016/02/26 12:22 PM - edited My comments refer to the version of Puppet-server in Registration is free and takes only a minute.

Looks like you have JavaScript disabled. IMHO we should be very seriously considering the idea of making hiera-eyaml an officially supported thing and moving it into the PL namespace. The Highline library never attempts to clean up the ConsoleReader, so this Thread just keeps running indefinitely. 6. have a peek here For 1.7.5 we stopped stuffing the classes from jline directly into jruby.jar but instead require the jline jar if you decide to use readline.

It hasn't been officially released yet, and I don't know if it's API-compatible such that it could be consumed by hiera-eyaml w/o changes to hiera-eyaml as well. My AccountSearchMapsYouTubePlayNewsGmailDriveCalendarGoogle+TranslatePhotosMoreShoppingWalletFinanceDocsBooksBloggerContactsHangoutsEven more from GoogleSign inHidden fieldsSearch for groups or messages Khirod Patra Tuesday, May 20, 2014 cannot load Java class jline.console.ConsoleReader Please follow the link for more information. 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()

The thread has a reference to the ConsoleReader. 7.

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 The most frustrating part of all of this is that highline is really only useful for CLI tools, and should not be necessary for any server-side functionality of hiera-eyaml at all. When using both, it only ever capped out at 8: Every 2.0s: sudo -u pe-puppet /opt/puppetlabs/server/apps/java/lib/jvm/java/bin/jmap -histo:live 2379... 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

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 But I want to use the jline from jruby-complete-1.7.8.jar. When I updated the gem, the numbers creeped up to 11 with an agent constantly running. Check This Out Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 170 Star 2,673 Fork 701 jruby/jruby Code Issues 789 Pull requests 22 Projects

I tried your command it works fine in prompt. Tell us about it. 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 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' ?

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). Hide Permalink Chris Price added a comment - 2016/03/16 10:09 AM - edited Fixed with the latest release of hiera-eyaml. how do you execute jruby ? File a PR against hiera-eyaml that prevents highline from ever being "require"d, unless it's actually going to be used.

I also watched out for JRuby instances running, as this was another indicator. When I tired to debug with pry it load the jline class successfully , but without debug mode it just failed to load the class. watch "sudo -u pe-puppet /opt/puppetlabs/server/apps/java/lib/jvm/java/bin/jmap -histo:live $(systemctl show -p MainPID pe-puppetserver|cut -d= -f2)|grep -i 'org.jruby.Ruby$'" Every 2.0s: sudo -u pe-puppet /opt/puppetlabs/server/apps/java/lib/jvm/java/bin/jmap -histo:live 2379... If you could add a 'require "readline"' as early as possible you can help confirm this is in fact the issue.