Skip to content
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

`read_nonblock' for #<OpenSSL::SSL::SSLSocket:0x74904497> using jruby 1.6.0/1.9 mode #63

Open
jclouds opened this issue Apr 1, 2011 · 2 comments

Comments

@jclouds
Copy link

jclouds commented Apr 1, 2011

running a client against deltacloud trunk using jruby --1.9 I get openssl errors seemingly related to http://jira.codehaus.org/browse/JRUBY-5529

client side of error:

command: GET http://localhost:3001/api/realms HTTP/1.1 failed with response: HTTP/1.1 500 Internal Server Error; content: [
backend_error

502
Aws::AwsError





]

server side of error:

127.0.0.1 - - [01/Apr/2011 16:31:03] "GET /api/realms HTTP/1.1" 500 6079 0.0610
New Aws::Ec2 using per_thread-connection mode
Rightscale::HttpConnection : re-raising same error: ec2.us-east-1.amazonaws.com temporarily unavailable: (undefined method read_nonblock' for #<OpenSSL::SSL::SSLSocket:0x74904497>) -- error count: 4, error age: 4 Deltacloud::BackendError - ec2.us-east-1.amazonaws.com temporarily unavailable: (undefined methodread_nonblock' for #OpenSSL::SSL::SSLSocket:0x74904497):
/Users/adriancole/workspace/deltacloud/server/lib/deltacloud/base_driver/base_driver.rb:249:in safely' org/jruby/RubyArray.java:1572:ineach'
/Users/adriancole/workspace/deltacloud/server/lib/deltacloud/base_driver/base_driver.rb:247:in safely' /Users/adriancole/workspace/deltacloud/server/lib/deltacloud/drivers/ec2/ec2_driver.rb:151:inrealms'
org/jruby/RubyBasicObject.java:1677:in __send__' org/jruby/RubyKernel.java:2067:insend'
/Users/adriancole/workspace/deltacloud/server/lib/deltacloud/helpers/application_helper.rb:82:in filter_all' /usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/1.9/benchmark.rb:294:inmeasure'
/Users/adriancole/workspace/deltacloud/server/lib/deltacloud/helpers/application_helper.rb:81:in filter_all' /Users/adriancole/workspace/deltacloud/server/server.rb:162:in(root)'
org/jruby/RubyBasicObject.java:1697:in instance_eval' /Users/adriancole/workspace/deltacloud/server/lib/sinatra/rabbit.rb:106:inHEAD /api/realms'
org/jruby/RubyMethod.java:117:in call' /usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:1126:incompile!'
org/jruby/RubyBasicObject.java:1697:in instance_eval' /usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:709:inroute_eval'
/usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:693:in route!' /usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:741:inprocess_route'
org/jruby/RubyKernel.java:1204:in catch' /usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:738:inprocess_route'
/usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:692:in route!' org/jruby/RubyArray.java:1572:ineach'
/usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:691:in route!' /usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:826:indispatch!'
/usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:619:in call!' org/jruby/RubyBasicObject.java:1697:ininstance_eval'
/usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:791:in invoke' org/jruby/RubyKernel.java:1204:incatch'
/usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:791:in invoke' /usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:619:incall!'
/usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:604:in call' /Users/adriancole/workspace/deltacloud/server/lib/sinatra/rack_driver_select.rb:47:incall'
/Users/adriancole/workspace/deltacloud/server/lib/sinatra/rack_matrix_params.rb:82:in call' /Users/adriancole/workspace/deltacloud/server/lib/sinatra/rack_runtime.rb:36:incall'
/Users/adriancole/workspace/deltacloud/server/lib/sinatra/rack_etag.rb:42:in call' /usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/rack-accept-0.4.3/lib/rack/accept/context.rb:22:incall'
/usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in call' /usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:incall'
/usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:1245:in call' /usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:1276:insynchronize'
/usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/sinatra-1.2.1/lib/sinatra/base.rb:1245:in call' /usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/reloader.rb:44:incall'
/usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in call' /usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:incall'
/usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb:48:in service' /usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/1.9/webrick/httpserver.rb:111:inservice'
/usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/1.9/webrick/httpserver.rb:70:in run' /usr/local/Cellar/jruby/1.6.0/jruby/lib/ruby/1.9/webrick/server.rb:183:instart_thread'

@treeder
Copy link
Member

treeder commented Apr 20, 2011

I'm not clear whether this is an issue with this gem or with jruby?

@colindean
Copy link

I encountered this error today on an unrelated project. This GitHub issue was among the top Google search results.

It's because it's unimplemented in JRuby in 1.9 mode.

See JRUBY-5529 for more information. As of this writing, work has been done but it's not yet resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants