killbill / killbill-plugin-framework-ruby

Framework to write Kill Bill plugins in Ruby
http://killbill.io
8 stars 11 forks source link

Undefined method XXX for class 'ActiveMerchant::Billing::Gateway' #30

Open pierre opened 9 years ago

pierre commented 9 years ago

Happens sometimes with _logger or _wiredump_device:

2015-03-11 07:33:01,268 [Thread-11] WARN  o.k.b.k.0.1.5.SNAPSHOT - [litle-plugin] Failure in purchase_payment: Undefined method _logger for class 'ActiveMerchant::Billing::Gateway'
org/jruby/RubyModule.java:2330:in `undef_method'
/var/tmp/bundles/plugins/ruby/killbill-litle/1.10.0/gems/gems/activesupport-4.1.9/lib/active_support/core_ext/module/remove_method.rb:4:in `remove_possible_method'
/var/tmp/bundles/plugins/ruby/killbill-litle/1.10.0/gems/gems/activesupport-4.1.9/lib/active_support/core_ext/class/delegating_attributes.rb:31:in `_stash_object_in_method'
/var/tmp/bundles/plugins/ruby/killbill-litle/1.10.0/gems/gems/activesupport-4.1.9/lib/active_support/core_ext/class/delegating_attributes.rb:37:in `_logger='
/var/tmp/bundles/plugins/ruby/killbill-litle/1.10.0/gems/gems/activesupport-4.1.9/lib/active_support/core_ext/class/delegating_attributes.rb:15:in `logger='
/var/tmp/bundles/plugins/ruby/killbill-litle/1.10.0/gems/gems/killbill-3.2.4/lib/killbill/helpers/active_merchant/gateway.rb:8:in `wrap'
/var/tmp/bundles/plugins/ruby/killbill-litle/1.10.0/gems/gems/killbill-3.2.4/lib/killbill/helpers/active_merchant/configuration.rb:80:in `extract_gateway_config'
/var/tmp/bundles/plugins/ruby/killbill-litle/1.10.0/gems/gems/killbill-3.2.4/lib/killbill/helpers/active_merchant/configuration.rb:35:in `gateways'
/var/tmp/bundles/plugins/ruby/killbill-litle/1.10.0/gems/gems/killbill-3.2.4/lib/killbill/helpers/active_merchant/payment_plugin.rb:534:in `lookup_gateway'
/var/tmp/bundles/plugins/ruby/killbill-litle/1.10.0/gems/gems/killbill-3.2.4/lib/killbill/helpers/active_merchant/payment_plugin.rb:405:in `dispatch_to_gateways'
org/jruby/RubyArray.java:1613:in `each'
/var/tmp/bundles/plugins/ruby/killbill-litle/1.10.0/gems/gems/killbill-3.2.4/lib/killbill/helpers/active_merchant/payment_plugin.rb:403:in `dispatch_to_gateways'
/var/tmp/bundles/plugins/ruby/killbill-litle/1.10.0/gems/gems/killbill-3.2.4/lib/killbill/helpers/active_merchant/payment_plugin.rb:83:in `purchase_payment'
/var/tmp/bundles/plugins/ruby/killbill-litle/1.10.0/gems/gems/killbill-litle-1.10.0/lib/litle/api.rb:42:in `purchase_payment'
/var/tmp/bundles/plugins/ruby/killbill-litle/1.10.0/gems/gems/killbill-3.2.4/lib/killbill/gen/plugin-api/payment_plugin_api.rb:174:in `purchase_payment'
/var/tmp/bundles/plugins/ruby/killbill-litle/1.10.0/gems/gems/killbill-3.2.4/lib/killbill/gen/plugin-api/payment_plugin_api.rb:173:in `purchase_payment'