copiousfreetime / qup

Qup is a generalized Ruby API for Message Queue and Publish/Subscribe messaging patterns.
ISC License
30 stars 4 forks source link

No method error while unmarshalling #17

Open dharmesh28 opened 10 years ago

dharmesh28 commented 10 years ago

<NoMethodError: undefined method `ord' for nil:NilClass>

/usr/lib64/ruby/gems/1.8/gems/qup-1.4.0/lib/qup/adapter/kestrel/queue.rb:92:in unmarshal_if_marshalled' /usr/lib64/ruby/gems/1.8/gems/qup-1.4.0/lib/qup/adapter/kestrel/queue.rb:65:inconsume' /usr/lib64/ruby/gems/1.8/gems/qup-1.4.0/lib/qup/consumer.rb:27:in `consume'

dharmesh28 commented 10 years ago

The issue here is in qup-1.4.0/lib/qup/adapter/kestrel/queue.rb in method consume it returns nil after testing if q_item is nil whereas it should test if q_item[0] and q_item[1] is nil also.

copiousfreetime commented 10 years ago

Thanks for reporting this, I'll dig into in the next day or so. It might be a case where it should be fixed in Kjess.