java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hi, I tried to install puppet open source 4.4 but couldn't start the puppetserver on my server. Here's the exception message from the log file: {quote} *java.lang.IllegalStateException: There was a problem adding a JRubyPuppet instance to the pool.* at puppetlabs.services.jruby.jruby_puppet_agents$eval6667$prime_pool_BANG___6668$fn__6672.invoke(jruby_puppet_agents.clj:60) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6667$prime_pool_BANG___6668.invoke(jruby_puppet_agents.clj:38) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6773$send_prime_pool_BANG___6774$fn__6775$fn__6777.invoke(jruby_puppet_agents.clj:133) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:254) [na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:238) [na:na] at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5401$service_fnk__4090__auto___positional$reify__5406.shutdown_on_error(internal.clj:293) [na:na] at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5323__5357.invoke(internal.clj:262) [na:na] at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5322__5366.invoke(internal.clj:262) [na:na] at clojure.lang.AFn.applyToHelper(AFn.java:160) [puppet-server-release.jar:na] at clojure.lang.AFn.applyTo(AFn.java:144) [puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:626) [puppet-server-release.jar:na] at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) [puppet-server-release.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:137) [puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:626) [puppet-server-release.jar:na] at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) [puppet-server-release.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:408) [puppet-server-release.jar:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6645$send_agent__6646$fn__6647$agent_fn__6648.invoke(jruby_puppet_agents.clj:32) [na:na] at clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1913) [puppet-server-release.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:154) [puppet-server-release.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:132) [puppet-server-release.jar:na] at clojure.lang.Agent$Action.doRun(Agent.java:114) [puppet-server-release.jar:na] at clojure.lang.Agent$Action.run(Agent.java:163) [puppet-server-release.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1157) [na:1.7.0] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:627) [na:1.7.0] at java.lang.Thread.run(Thread.java:798) [na:1.7.0] *Caused by: org.jruby.embed.EvalFailedException: (LoadError) libfacter was not built with JRuby support.* at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:132) ~[puppet-server-release.jar:na] at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1341) ~[puppet-server-release.jar:na] at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1334) ~[puppet-server-release.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95) ~[na:1.7.0] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56) ~[na:1.7.0] at java.lang.reflect.Method.invoke(Method.java:620) ~[na:2.6 (07-01-2015)] at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93) ~[puppet-server-release.jar:na] at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28) ~[puppet-server-release.jar:na] at puppetlabs.services.jruby.jruby_puppet_internal$create_scripting_container.invoke(jruby_puppet_internal.clj:89) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_internal$eval6427$create_pool_instance_BANG___6428$fn__6429.invoke(jruby_puppet_internal.clj:128) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_internal$eval6427$create_pool_instance_BANG___6428.invoke(jruby_puppet_internal.clj:113) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6667$prime_pool_BANG___6668$fn__6672.invoke(jruby_puppet_agents.clj:54) ~[na:na] ... 24 common frames omitted Caused by: org.jruby.exceptions.RaiseException: (LoadError) libfacter was not built with JRuby support. at RUBY.Facter(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter.rb:7) ~[na:na] at RUBY.(root)(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter.rb:1) ~[na:na] at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1072) ~[puppet-server-release.jar:na] at RUBY.(root)(/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1) ~[na:na] at RUBY.require(/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54) ~[na:na] at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1072) ~[puppet-server-release.jar:na] at RUBY.(root)(/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:10) ~[na:na] at RUBY.(root)(/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1) ~[na:na] at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1072) ~[puppet-server-release.jar:na] at RUBY.require(/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54) ~[na:na] at RUBY.(root)(file:/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/puppet-server-lib/puppet/server.rb:1) ~[na:na] at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1072) ~[puppet-server-release.jar:na] at RUBY.(root)(/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1) ~[na:na] at RUBY.require(/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_internal$create_scripting_container.invoke(jruby_puppet_internal.clj:89) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_internal$eval6427$create_pool_instance_BANG___6428$fn__6429.invoke(jruby_puppet_internal.clj:128) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_internal$eval6427$create_pool_instance_BANG___6428.invoke(jruby_puppet_internal.clj:113) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6667$prime_pool_BANG___6668$fn__6672.invoke(jruby_puppet_agents.clj:54) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6667$prime_pool_BANG___6668.invoke(jruby_puppet_agents.clj:38) ~[na:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6773$send_prime_pool_BANG___6774$fn__6775$fn__6777.invoke(jruby_puppet_agents.clj:133) ~[na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:254) [na:na] at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:238) [na:na] at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5401$service_fnk__4090__auto___positional$reify__5406.shutdown_on_error(internal.clj:293) [na:na] at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5323__5357.invoke(internal.clj:262) [na:na] at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5322__5366.invoke(internal.clj:262) [na:na] at clojure.core$apply.invoke(core.clj:626) [puppet-server-release.jar:na] at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) [puppet-server-release.jar:na] at clojure.core$apply.invoke(core.clj:626) [puppet-server-release.jar:na] at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) [puppet-server-release.jar:na] at puppetlabs.services.jruby.jruby_puppet_agents$eval6645$send_agent__6646$fn__6647$agent_fn__6648.invoke(jruby_puppet_agents.clj:32) [na:na] at clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1913) [puppet-server-release.jar:na] {quote} The one followed: {quote} Error during service init!!! java.lang.IllegalStateException: Unable to borrow JRuby instance from pool [...similar traces...] {quote} Does this have anything to do with Factor? Any help is appreciated! Thank you.
    via by Yishuang Liang,
    • java.lang.IllegalStateException: There was a problem adding a JRubyPuppet instance to the pool. at puppetlabs.services.jruby.jruby_puppet_agents$eval6667$prime_pool_BANG___6668$fn__6672.invoke(jruby_puppet_agents.clj:60) at puppetlabs.services.jruby.jruby_puppet_agents$eval6667$prime_pool_BANG___6668.invoke(jruby_puppet_agents.clj:38) at puppetlabs.services.jruby.jruby_puppet_agents$eval6773$send_prime_pool_BANG___6774$fn__6775$fn__6777.invoke(jruby_puppet_agents.clj:133) at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:254) at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:238) at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5401$service_fnk__4090__auto___positional$reify__5406.shutdown_on_error(internal.clj:293) at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5323__5357.invoke(internal.clj:262) at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5322__5366.invoke(internal.clj:262) at clojure.lang.AFn.applyToHelper(AFn.java:160) at clojure.lang.AFn.applyTo(AFn.java:144) at clojure.core$apply.invoke(core.clj:626) at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invoke(core.clj:626) at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) at clojure.lang.RestFn.invoke(RestFn.java:408) at puppetlabs.services.jruby.jruby_puppet_agents$eval6645$send_agent__6646$fn__6647$agent_fn__6648.invoke(jruby_puppet_agents.clj:32) at clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1913) at clojure.lang.AFn.applyToHelper(AFn.java:154) at clojure.lang.RestFn.applyTo(RestFn.java:132) at clojure.lang.Agent$Action.doRun(Agent.java:114) at clojure.lang.Agent$Action.run(Agent.java:163) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.jruby.embed.EvalFailedException: (LoadError) no such file to load -- jar-dependencies at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:132) at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1341) at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1334) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93) at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28) at puppetlabs.services.jruby.jruby_puppet_internal$create_scripting_container.invoke(jruby_puppet_internal.clj:89) at puppetlabs.services.jruby.jruby_puppet_internal$eval6427$create_pool_instance_BANG___6428$fn__6429.invoke(jruby_puppet_internal.clj:128) at puppetlabs.services.jruby.jruby_puppet_internal$eval6427$create_pool_instance_BANG___6428.invoke(jruby_puppet_internal.clj:113) at puppetlabs.services.jruby.jruby_puppet_agents$eval6667$prime_pool_BANG___6668$fn__6672.invoke(jruby_puppet_agents.clj:54) ... 24 more Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- jar-dependencies at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1072) at RUBY.(root)(<script>:1) at puppetlabs.services.jruby.jruby_puppet_internal$create_scripting_container.invoke(jruby_puppet_internal.clj:89) at puppetlabs.services.jruby.jruby_puppet_internal$eval6427$create_pool_instance_BANG___6428$fn__6429.invoke(jruby_puppet_internal.clj:128) at puppetlabs.services.jruby.jruby_puppet_internal$eval6427$create_pool_instance_BANG___6428.invoke(jruby_puppet_internal.clj:113) at puppetlabs.services.jruby.jruby_puppet_agents$eval6667$prime_pool_BANG___6668$fn__6672.invoke(jruby_puppet_agents.clj:54) at puppetlabs.services.jruby.jruby_puppet_agents$eval6667$prime_pool_BANG___6668.invoke(jruby_puppet_agents.clj:38) at puppetlabs.services.jruby.jruby_puppet_agents$eval6773$send_prime_pool_BANG___6774$fn__6775$fn__6777.invoke(jruby_puppet_agents.clj:133) at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:254) at puppetlabs.trapperkeeper.internal$shutdown_on_error_STAR_.invoke(internal.clj:238) at puppetlabs.trapperkeeper.internal$shutdown_service$reify__5401$service_fnk__4090__auto___positional$reify__5406.shutdown_on_error(internal.clj:293) at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5323__5357.invoke(internal.clj:262) at puppetlabs.trapperkeeper.internal$eval5337$fn__5349$G__5322__5366.invoke(internal.clj:262) at clojure.core$apply.invoke(core.clj:626) at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) at clojure.core$apply.invoke(core.clj:626) at clojure.core$partial$fn__4228.doInvoke(core.clj:2468) at puppetlabs.services.jruby.jruby_puppet_agents$eval6645$send_agent__6646$fn__6647$agent_fn__6648.invoke(jruby_puppet_agents.clj:32) at clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1913)
    No Bugmate found.