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

[ruby] Failure adding hash entry with null value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • ruby-binding
    • None

    Description

       

        def on_container_start(container)
          conn = container.connect(@conn_url)
      
          opts = {
            source: {
              address: @address,
              capabilities: {
                :queue => nil
              }
            }
          }
          
          conn.open_receiver(opts=opts)
        end
      
      > Command 'ruby auto-create/queue-receive.rb amqp://127.0.0.1:49897 q1 1' returned non-zero exit status 1
       — Output —
       > SEND: Opened sender for target address 'q1'
       > SEND: Sent message 'abc'
       > /usr/share/gems/gems/qpid_proton-0.26.0/lib/codec/data.rb:210:in `null': expected null, got symbol (TypeError)
       > from /usr/share/gems/gems/qpid_proton-0.26.0/lib/codec/mapping.rb:166:in `block in put'
       > from /usr/share/gems/gems/qpid_proton-0.26.0/lib/codec/mapping.rb:158:in `each_pair'
       > from /usr/share/gems/gems/qpid_proton-0.26.0/lib/codec/mapping.rb:158:in `put'
       > from /usr/share/gems/gems/qpid_proton-0.26.0/lib/codec/data.rb:223:in `object='
       > from /usr/share/gems/gems/qpid_proton-0.26.0/lib/codec/data.rb:228:in `<<'
       > from /usr/share/gems/gems/qpid_proton-0.26.0/lib/core/terminus.rb:240:in `block in apply'
       > from /usr/share/gems/gems/qpid_proton-0.26.0/lib/core/terminus.rb:231:in `each_pair'
       > from /usr/share/gems/gems/qpid_proton-0.26.0/lib/core/terminus.rb:231:in `apply'
       > from /usr/share/gems/gems/qpid_proton-0.26.0/lib/core/receiver.rb:51:in `open'
       > from /usr/share/gems/gems/qpid_proton-0.26.0/lib/core/session.rb:117:in `open_receiver'
       > from /usr/share/gems/gems/qpid_proton-0.26.0/lib/core/connection.rb:216:in `open_receiver'
       > from auto-create/queue-receive.rb:46:in `on_container_start'
       > from /usr/share/gems/gems/qpid_proton-0.26.0/lib/handler/adapter.rb:74:in `forward'
       > from /usr/share/gems/gems/qpid_proton-0.26.0/lib/handler/messaging_adapter.rb:27:in `delegate'
       > from /usr/share/gems/gems/qpid_proton-0.26.0/lib/handler/messaging_adapter.rb:38:in `on_container_start'
       > from /usr/share/gems/gems/qpid_proton-0.26.0/lib/core/container.rb:375:in `block in run_one'
       > from /usr/share/gems/gems/qpid_proton-0.26.0/lib/core/container.rb:432:in `maybe_panic'
       > from /usr/share/gems/gems/qpid_proton-0.26.0/lib/core/container.rb:375:in `run_one'
       > from /usr/share/gems/gems/qpid_proton-0.26.0/lib/core/container.rb:197:in `run'
       > from auto-create/queue-receive.rb:79:in `<main>'
      

      Attachments

        1. queue-receive.py
          2 kB
          Justin Ross

        Activity

          People

            Unassigned Unassigned
            jross Justin Ross
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: