Jruby-openssl not happy with activemerchant 1.10.0
--------------------------------------------------
Key: JRUBY-5834
URL: http://jira.codehaus.org/browse/JRUBY-5834
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6.2
Environment: jruby, mac osx
Reporter: Yi Wen
Assignee: Thomas E Enebo
Hi,
I am currently use jruby-openssl 0.7.4 and activemerchant and jruby-openssl
0.7.4. The application charge the credit cards through activemerchant gem. It
works fine under MRI ruby. Switched to jruby and jruby-openssl. the problem
appeared:
Thanks
Yi
The stack trace looks like this:
#<OpenSSL::SSL::SSLError: hostname was not match with the server certificate>
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/jruby-openssl-0.7.4/lib/openssl/ssl.rb:123:in
`post_connection_check'
/myhome/.rvm/rubies/jruby-1.6.2/lib/ruby/1.8/net/http.rb:588:in `connect'
/myhome/.rvm/rubies/jruby-1.6.2/lib/ruby/1.8/net/http.rb:553:in `do_start'
/myhome/.rvm/rubies/jruby-1.6.2/lib/ruby/1.8/net/http.rb:542:in `start'
/myhome/.rvm/rubies/jruby-1.6.2/lib/ruby/1.8/net/http.rb:1035:in `request'
/myhome/.rvm/rubies/jruby-1.6.2/lib/ruby/1.8/net/http.rb:845:in `post'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/activemerchant-1.10.0/lib/active_merchant/common/connection.rb:67:in
`request'
/myhome/.rvm/rubies/jruby-1.6.2/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/activemerchant-1.10.0/lib/active_merchant/common/connection.rb:60:in
`request'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/activemerchant-1.10.0/lib/active_merchant/common/connection.rb:137:in
`retry_exceptions'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/activemerchant-1.10.0/lib/active_merchant/common/connection.rb:54:in
`request'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/activemerchant-1.10.0/lib/active_merchant/common/posts_data.rb:46:in
`raw_ssl_request'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/activemerchant-1.10.0/lib/active_merchant/common/posts_data.rb:30:in
`ssl_request'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/activemerchant-1.10.0/lib/active_merchant/common/posts_data.rb:26:in
`ssl_post'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/activemerchant-1.10.0/lib/active_merchant/billing/gateways/cyber_source.rb:356:in
`commit'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/activemerchant-1.10.0/lib/active_merchant/billing/gateways/cyber_source.rb:110:in
`authorize'
/myhome/projects/apps/myapp/app/models/logical/authorization_profile.rb:22:in
`authorize'
/myhome/projects/apps/myapp/app/models/logical/authorization_profile.rb:28:in
`authorize_and_store'
/myhome/projects/apps/myapp/app/controllers/services/myapp.rb:334:in
`authorize_credit_card'
/myhome/projects/apps/myapp/app/controllers/services/myapp.rb:360:in
`error_handling'
/myhome/projects/apps/myapp/app/controllers/services/myapp.rb:332:in
`authorize_credit_card'org/jruby/RubyKernel.java:2071:in `send'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/ywen-actionwebservice-2.3.4.1/lib/action_web_service/invocation.rb:141:in
`perform_invocation'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/ywen-actionwebservice-2.3.4.1/lib/action_web_service/invocation.rb:135:in
`perform_invocation_with_interception'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/ywen-actionwebservice-2.3.4.1/lib/action_web_service/dispatcher/abstract.rb:46:in
`web_service_filtered_invoke'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/ywen-actionwebservice-2.3.4.1/lib/action_web_service/dispatcher/abstract.rb:41:in
`web_service_delegated_invoke'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/ywen-actionwebservice-2.3.4.1/lib/action_web_service/dispatcher/abstract.rb:60:in
`web_service_invoke'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/ywen-actionwebservice-2.3.4.1/lib/action_web_service/dispatcher/abstract.rb:25:in
`invoke_web_service_request'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/ywen-actionwebservice-2.3.4.1/lib/action_web_service/dispatcher/action_controller_dispatcher.rb:58:in
`dispatch_web_service_request'
/myhome/.rvm/rubies/jruby-1.6.2/lib/ruby/1.8/benchmark.rb:293:in `measure'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/ywen-actionwebservice-2.3.4.1/lib/action_web_service/dispatcher/action_controller_dispatcher.rb:56:in
`dispatch_web_service_request'(eval):1:in
`api'org/jruby/RubyKernel.java:2059:in `send'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/base.rb:1331:in
`perform_action'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/filters.rb:617:in
`call_filters'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/filters.rb:610:in
`perform_action_with_filters'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:68:in
`perform_action_with_benchmark'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in
`ms'
/myhome/.rvm/rubies/jruby-1.6.2/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in
`ms'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:68:in
`perform_action_with_benchmark'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/rescue.rb:160:in
`perform_action_with_rescue'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/flash.rb:146:in
`perform_action_with_flash'org/jruby/RubyKernel.java:2059:in `send'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/base.rb:532:in
`process'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/filters.rb:606:in
`process_with_filters'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/base.rb:391:in
`process'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/base.rb:386:in
`call'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/routing/route_set.rb:437:in
`call'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:87:in
`dispatch'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:121:in
`_call'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:130:in
`build_middleware_stack'org/jruby/RubyProc.java:268:in
`call'org/jruby/RubyProc.java:228:in `call'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:29:in
`call'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
`cache'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:9:in
`cache'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:28:in
`call'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
`call'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/rack-1.0.1/lib/rack/head.rb:9:in `call'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in
`call'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/params_parser.rb:15:in
`call'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/session/cookie_store.rb:93:in
`call'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/hoptoad_notifier-2.4.11/lib/hoptoad_notifier/rack.rb:27:in
`call'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/failsafe.rb:26:in
`call'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/hoptoad_notifier-2.4.11/lib/hoptoad_notifier/user_informer.rb:12:in
`call'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/rack-1.0.1/lib/rack/lock.rb:11:in
`call'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/rack-1.0.1/lib/rack/lock.rb:11:in
`call'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:114:in
`call'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/reloader.rb:34:in
`run'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:108:in
`call'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/cgi_process.rb:44:in
`dispatch_cgi'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:101:in
`dispatch_cgi'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:27:in
`dispatch'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/mongrel-1.1.5-java/bin/../lib/mongrel/rails.rb:76:in
`process'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/mongrel-1.1.5-java/bin/../lib/mongrel/rails.rb:74:in
`process'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/mongrel-1.1.5-java/bin/../lib/mongrel.rb:159:in
`process_client'org/jruby/RubyArray.java:1602:in `each'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/mongrel-1.1.5-java/bin/../lib/mongrel.rb:158:in
`process_client'
/myhome/.rvm/gems/jruby-1.6.2@myapp/gems/mongrel-1.1.5-java/bin/../lib/mongrel.rb:285:in
`run'org/jruby/RubyProc.java:268:in `call'org/jruby/RubyProc.java:232:in `call'
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email