em-imap icon indicating copy to clipboard operation
em-imap copied to clipboard

Issue on JRuby - wrong # args calling 'set_tls_parms'

Open ksnyder opened this issue 11 years ago • 1 comments

First, is JRuby supported? If so, we could use help with this error when we call

connect on an object created as EM::IMAP.new 'imap.gmail.com', 993, true

ArgumentError: wrong number of arguments calling set_tls_parms (4 for 2) start_tls at /Users/byofuel/.rvm/gems/jruby-1.7.4/gems/eventmachine-1.0.3-java/lib/em/connection.rb:415 start_tls at /Users/byofuel/.rvm/gems/jruby-1.7.4/gems/em-imap-0.4.1/lib/em-imap/deferrable_ssl.rb:16 connect at /Users/byofuel/.rvm/gems/jruby-1.7.4/gems/em-imap-0.4.1/lib/em-imap/connection.rb:25 tap at org/jruby/RubyKernel.java:1860 connect at /Users/byofuel/.rvm/gems/jruby-1.7.4/gems/em-imap-0.4.1/lib/em-imap/connection.rb:24 connect at /Users/byofuel/.rvm/gems/jruby-1.7.4/gems/em-imap-0.4.1/lib/em-imap/client.rb:15 connect_and_authenticate at /Users/byofuel/code/handl-server/app/models/handl_email/connection.rb:323

ksnyder avatar Sep 10 '13 20:09 ksnyder

Jruby should be supported in theory. It sounds like Jruby's TLS library is different to MRI's — it should be an easy fix if you can find the documentation/code for both versions of the method.

ConradIrwin avatar Sep 11 '13 16:09 ConradIrwin