Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1789

[ruby] `pre_encode': undefined method `symbol_keys!' for Qpid::Proton::Types:Module (NoMethodError)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-c-0.22.0
    • proton-c-0.22.0
    • ruby-binding
    • None

    Description

      When sending a message with message properties set, the following exception is thrown

      % ruby bin/cli-proton-ruby-sender --msg-property=key1~10.5 :(
      Traceback (most% ruby bin/cli-proton-ruby-sender --msg-property=key1~10.5 :(
      Traceback (most recent call last):
      15: from bin/cli-proton-ruby-sender:21:in `<main>'
      14: from bin/cli-proton-ruby-sender:21:in `new'
      13: from /home/jdanek/Work/repos/cli-proton-ruby/lib/sender_client.rb:52:in `initialize'
      12: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/container.rb:263:in `run'
      11: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/connection_driver.rb:196:in `process'
      10: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/connection_driver.rb:180:in `dispatch'
      9: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/connection_driver.rb:78:in `each_event'
      8: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/connection_driver.rb:185:in `block in dispatch'
      7: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/event.rb:94:in `dispatch'
      6: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/handler/messaging_adapter.rb:131:in `on_link_flow'
      5: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/handler/messaging_adapter.rb:27:in `delegate'
      4: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/handler/adapter.rb:74:in `forward'
      3: from /home/jdanek/Work/repos/cli-proton-ruby/lib/handlers/sender_handler.rb:165:in `on_sendable'
      2: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/sender.rb:76:in `send'
      1: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/message.rb:60:in `encode'
      /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/message.rb:77:in `pre_encode': undefined method `symbol_keys!' for Qpid::Proton::Types:Module (NoMethodError)
      
       recent call last):
      15: from bin/cli-proton-ruby-sender:21:in `<main>'
      14: from bin/cli-proton-ruby-sender:21:in `new'
      13: from /home/jdanek/Work/repos/cli-proton-ruby/lib/sender_client.rb:52:in `initialize'
      12: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/container.rb:263:in `run'
      11: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/connection_driver.rb:196:in `process'
      10: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/connection_driver.rb:180:in `dispatch'
      9: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/connection_driver.rb:78:in `each_event'
      8: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/connection_driver.rb:185:in `block in dispatch'
      7: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/event.rb:94:in `dispatch'
      6: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/handler/messaging_adapter.rb:131:in `on_link_flow'
      5: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/handler/messaging_adapter.rb:27:in `delegate'
      4: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/handler/adapter.rb:74:in `forward'
      3: from /home/jdanek/Work/repos/cli-proton-ruby/lib/handlers/sender_handler.rb:165:in `on_sendable'
      2: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/sender.rb:76:in `send'
      1: from /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/message.rb:60:in `encode'
      /home/jdanek/.gem/ruby/2.5.0/gems/qpid_proton-0.22.0/lib/core/message.rb:77:in `pre_encode': undefined method `symbol_keys!' for Qpid::Proton::Types:Module (NoMethodError)
      

      Attachments

        Activity

          People

            aconway Alan Conway
            jdanek Jiri Daněk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: