hi newbie to this group, first post. I’m evaluating jruby for our
organization.
I encounter an error in trying to load net/smtp i.e.
require “net/smtp”
the above is literally all that I have in the file.
it complains about a openssl error , here’s the stack:
/Library/Frameworks/JRuby.framework/Versions/1.7.0/bin/jruby --1.9 -e
$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)
/Users/charles/IdeaProjects/Ruby/DataUploader/src/bin/test_smtp_load.rb
OpenSSL::X509::StoreError: setting default path failed: the
trustAnchors parameter must be non-empty
set_default_paths at org/jruby/ext/openssl/X509Store.java:162
SSLContext at
/Library/Frameworks/JRuby.framework/Versions/1.7.0/lib/ruby/1.9/openssl/ssl-internal.rb:31
SSL at
/Library/Frameworks/JRuby.framework/Versions/1.7.0/lib/ruby/1.9/openssl/ssl-internal.rb:22
OpenSSL at
/Library/Frameworks/JRuby.framework/Versions/1.7.0/lib/ruby/1.9/openssl/ssl-internal.rb:21
(root) at
/Library/Frameworks/JRuby.framework/Versions/1.7.0/lib/ruby/1.9/openssl/ssl-internal.rb:20
require at org/jruby/RubyKernel.java:1019
(root) at
/Library/Frameworks/JRuby.framework/Versions/1.7.0/lib/ruby/shared/rubygems/custom_require.rb:1
require at
/Library/Frameworks/JRuby.framework/Versions/1.7.0/lib/ruby/shared/rubygems/custom_require.rb:36
require at org/jruby/RubyKernel.java:1019
(root) at
/Library/Frameworks/JRuby.framework/Versions/1.7.0/lib/ruby/1.9/openssl.rb:22
(root) at
/Library/Frameworks/JRuby.framework/Versions/1.7.0/lib/ruby/shared/rubygems/custom_require.rb:1
require at org/jruby/RubyKernel.java:1019
require at
/Library/Frameworks/JRuby.framework/Versions/1.7.0/lib/ruby/shared/rubygems/custom_require.rb:36
(root) at
/Library/Frameworks/JRuby.framework/Versions/1.7.0/lib/ruby/1.9/net/smtp.rb:26
load at org/jruby/RubyKernel.java:1045
(root) at -e:1
Process finished with exit code 1
the gem jruby-openssl was installed succesfully.
I find old openssl issues on the forums but can’t find anything that
addresses this?
Any help is appreciated.
thanks