History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRUBY-819
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Ola Bini
Reporter: Tim Bray
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
JRuby

OpenSSL::SSL::SSLSocket#closed? missing?

Created: 15/Apr/07 01:02 AM   Updated: 06/May/07 09:49 PM
Component/s: Java Integration
Affects Version/s: JRuby 0.9.8
Fix Version/s: JRuby 1.0.0RC1

Time Tracking:
Not Specified

File Attachments: 1. File ssl.rb (0.3 kb)

Environment: OS X

Testcase included: yes


 Description  « Hide
See attached ssl.rb, it produces this dump:

~/dev/sandbox/ 826> jirb
irb(main):001:0> load 'ssl.rb'
/Users/twbray/dev/jruby-0.9.8/lib/ruby/1.8/net/https.rb:103 warning: already initialized constant OpenSSL
warning: peer certificate won't be verified in this SSL session
NoMethodError: undefined method `closed?' for #<OpenSSL::SSL::SSLSocket:0xa4a89a @context=#<OpenSSL::SSL::SSLContext:0x67056e @verify_mode=0>, @sync_close=true, @io=#<TCPSocket:0xda0edd>>
from /Users/twbray/dev/jruby-0.9.8/lib/ruby/1.8/net/protocol.rb:66:in `method_missing'
from /Users/twbray/dev/jruby-0.9.8/lib/ruby/1.8/net/protocol.rb:66:in `closed?'
from /Users/twbray/dev/jruby-0.9.8/lib/ruby/1.8/net/http.rb:605:in `do_finish'
from /Users/twbray/dev/jruby-0.9.8/lib/ruby/1.8/net/http.rb:545:in `start'
from ./ssl.rb:15
from (irb):1:in `load'
from (irb):1:in `binding'



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Ola Bini - 30/Apr/07 08:11 AM
This happened because of moving openssl to a separate project; the code that does the loading didn't handle the case of loading openssl.rb before openssl.so to good, which means that the closed? method, among others, didn't get defined.

Fixed in trunk, and also a new version of jopenssl (0.0.2) have been released, which is compatible with JRuby 099.


Charles Oliver Nutter - 06/May/07 09:49 PM
Closing for 1.0RC1