activemerchant and jruby

Skip to first unread message

Miao Liu

Sep 18, 2015, 9:21:11 AM9/18/15
to Active Merchant
Sorry if this is a double post.  I could not see my last attempt at one.

I'm trying to use activemerchant with jruby.  I have test code for PayflowGatway that works fine with ruby-2.2.2.  However I cannot get it to run on jruby for the life of me.  It never gets to the code, it hangs on a uninitialized constant just from the 'require'. 

    require 'rubygems'
    require 'activemerchant'

    puts "anything really"

Anything at all, and I get the error:

NameError: uninitialized constant ActiveMerchant::NetworkConnectionRetries::OpenSSL
             const_missing at org/jruby/
  NetworkConnectionRetries at /home/mliu/.rvm/gems/jruby-1.7.22/gems/active_utils-2.2.3/lib/active_utils/common/network_connection_retries.rb:4
            ActiveMerchant at /home/mliu/.rvm/gems/jruby-1.7.22/gems/active_utils-2.2.3/lib/active_utils/common/network_connection_retries.rb:2
                    (root) at /home/mliu/.rvm/gems/jruby-1.7.22/gems/active_utils-2.2.3/lib/active_utils/common/network_connection_retries.rb:1
                   require at org/jruby/
                   require at /home/mliu/.rvm/rubies/jruby-1.7.22/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54
                    (root) at /home/mliu/.rvm/gems/jruby-1.7.22/gems/activemerchant-1.44.0/lib/active_merchant.rb:1
                   require at org/jruby/
                    (root) at /home/mliu/.rvm/gems/jruby-1.7.22/gems/activemerchant-1.44.0/lib/active_merchant.rb:62
                    (root) at /home/mliu/.rvm/rubies/jruby-1.7.22/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
                   require at org/jruby/
                   require at /home/mliu/.rvm/rubies/jruby-1.7.22/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54
                    (root) at test.rb:4

I've tried several versions of jruby(1.7.9, 1.7.22, 1.7.23, and active merchant (1.53.0, 1.50.0, 1.48.0, 1.44.0) to no avail.
Does anyone have any experience with jruby and activemerchant?

Reply all
Reply to author
0 new messages