You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...we get the error below. workers/gems/bundler/setup is the result of running something like bundle --standalone --path workers/gems.
Unfortunately, I don't have a reproducible test case at hand. Also, it feels extremely odd that this error is occuring - I mean, line 26 in the protocol.rb declares a new class. How on earth does this cause JRuby to try to load a Java Protocol class? Or, is it just a matter of "something" having loaded a java.net class into the current environment?
I can debug this a bit more as needed, so just remind me me how to enable more Java class loading debug and we can paste more stack traces here. Thanks.
NameError: cannot load Java class net.Protocol
<module:Net> at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/protocol.rb:26
<top> at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/protocol.rb:24
require at org/jruby/RubyKernel.java:939
require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
<top> at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:1
require at org/jruby/RubyKernel.java:939
require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
<top> at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/http.rb:22
require at org/jruby/RubyKernel.java:939
require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
<top> at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/https.rb:1
require at org/jruby/RubyKernel.java:939
require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
block in (root) at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/net/https.rb:21
(root) at /Users/afinne/Projects/ecraft.fieldopsapp/workers/gems/jruby/2.2.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:1
(root) at /Users/afinne/Projects/ecraft.fieldopsapp/workers/gems/jruby/2.2.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:2
(root) at /Users/afinne/Projects/ecraft.fieldopsapp/workers/gems/jruby/2.2.0/gems/faraday-0.9.2/lib/faraday.rb:1
load_middleware at /Users/afinne/Projects/ecraft.fieldopsapp/workers/gems/jruby/2.2.0/gems/faraday-0.9.2/lib/faraday.rb:223
mon_synchronize at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/monitor.rb:211
middleware_mutex at /Users/afinne/Projects/ecraft.fieldopsapp/workers/gems/jruby/2.2.0/gems/faraday-0.9.2/lib/faraday.rb:197
load_middleware at /Users/afinne/Projects/ecraft.fieldopsapp/workers/gems/jruby/2.2.0/gems/faraday-0.9.2/lib/faraday.rb:218
block in lookup_middleware at /Users/afinne/Projects/ecraft.fieldopsapp/workers/gems/jruby/2.2.0/gems/faraday-0.9.2/lib/faraday.rb:188
use_symbol at /Users/afinne/Projects/ecraft.fieldopsapp/workers/gems/jruby/2.2.0/gems/faraday-0.9.2/lib/faraday/rack_builder.rb:204
block in adapter at /Users/afinne/Projects/ecraft.fieldopsapp/workers/gems/jruby/2.2.0/gems/faraday-0.9.2/lib/faraday/rack_builder.rb:100
map at org/jruby/RubyArray.java:2300
adapter at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/forwardable.rb:183
initialize at /Users/afinne/Projects/ecraft.fieldopsapp/workers/gems/jruby/2.2.0/gems/elasticsearch-transport-1.0.13/lib/elasticsearch/transport/client.rb:106
initialize at /Users/afinne/Projects/ecraft.fieldopsapp/workers/gems/jruby/2.2.0/gems/faraday-0.9.2/lib/faraday/connection.rb:91
__build_connections at /Users/afinne/Projects/ecraft.fieldopsapp/workers/gems/jruby/2.2.0/gems/elasticsearch-transport-1.0.13/lib/elasticsearch/transport/transport/http/faraday.rb:43
__build_connections at /Users/afinne/Projects/ecraft.fieldopsapp/workers/gems/jruby/2.2.0/gems/elasticsearch-transport-1.0.13/lib/elasticsearch/transport/transport/http/faraday.rb:35
block in initialize at /Users/afinne/Projects/ecraft.fieldopsapp/workers/gems/jruby/2.2.0/gems/elasticsearch-transport-1.0.13/lib/elasticsearch/transport/transport/base.rb:34
The text was updated successfully, but these errors were encountered:
Hi,
On a friend's machine (@afinne), with
jruby-complete
using the following command line:...we get the error below.
workers/gems/bundler/setup
is the result of running something likebundle --standalone --path workers/gems
.Unfortunately, I don't have a reproducible test case at hand. Also, it feels extremely odd that this error is occuring - I mean, line 26 in the
protocol.rb
declares a newclass
. How on earth does this cause JRuby to try to load a Java Protocol class? Or, is it just a matter of "something" having loaded ajava.net
class into the current environment?I can debug this a bit more as needed, so just remind me me how to enable more Java class loading debug and we can paste more stack traces here. Thanks.
The text was updated successfully, but these errors were encountered: