Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-7596

client-server example from proton python doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • qpid-java-6.1
    • None
    • Broker-J
    • None

    Description

      I.e. using https://qpid.apache.org/releases/qpid-proton-0.16.0/proton/python/examples/server.py.html and https://qpid.apache.org/releases/qpid-proton-0.16.0/proton/python/examples/client.py.html

      (Broker needs a queue called examples, may need to modify the url used by the server, to avoid getting an error on connect due to the hostname in the open frame.)

      $ PN_TRACE_FRM=1 ./server.py 
      Listening on localhost:amqp
      [0x55ae05a3f1b0]:  -> SASL
      [0x55ae05a3f1b0]:  <- SASL
      [0x55ae05a3f1b0]:0 <- @sasl-mechanisms(64) [sasl-server-mechanisms=@PN_SYMBOL[:ANONYMOUS]]
      [0x55ae05a3f1b0]:0 -> @sasl-init(65) [mechanism=:ANONYMOUS, initial-response=b"anonymous@localhost.localdomain"]
      [0x55ae05a3f1b0]:0 <- @sasl-outcome(68) [code=0]
      [0x55ae05a3f1b0]:  -> AMQP
      [0x55ae05a3f1b0]:0 -> @open(16) [container-id="396bbe81-3d21-4f89-9121-0923d04fa850", hostname="localhost", channel-max=32767]
      [0x55ae05a3f1b0]:0 -> @begin(17) [next-outgoing-id=0, incoming-window=2147483647, outgoing-window=2147483647]
      [0x55ae05a3f1b0]:0 -> @attach(18) [name="396bbe81-3d21-4f89-9121-0923d04fa850-examples", handle=0, role=true, snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) [address="examples", durable=0, timeout=0, dynamic=false], target=@target(41) [durable=0, timeout=0, dynamic=false], initial-delivery-count=0]
      [0x55ae05a3f1b0]:0 -> @attach(18) [name="396bbe81-3d21-4f89-9121-0923d04fa850-726bcf6d-dc7d-45a5-aff5-bd92f735fa8f", handle=1, role=false, snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) [durable=0, timeout=0, dynamic=false], target=@target(41) [durable=0, timeout=0, dynamic=false], initial-delivery-count=0]
      [0x55ae05a3f1b0]:0 -> @flow(19) [incoming-window=2147483647, next-outgoing-id=0, outgoing-window=2147483647, handle=0, delivery-count=0, link-credit=10, drain=false]
      [0x55ae05a3f1b0]:  <- AMQP
      [0x55ae05a3f1b0]:0 <- @open(16) [container-id="82345187-1927-467f-87ae-a40e218e3899", max-frame-size=32768, channel-max=255, idle-time-out=0, properties={:product="qpid", :version="6.1.1", :"qpid.build"="Unversioned directory", :"qpid.instance_name"="Broker"}]
      [0x55ae05a3f1b0]:0 <- @begin(17) [remote-channel=0, next-outgoing-id=0, incoming-window=2048, outgoing-window=2048]
      [0x55ae05a3f1b0]:0 <- @attach(18) [name="396bbe81-3d21-4f89-9121-0923d04fa850-examples", handle=0, role=false, snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) [address="examples", durable=0, timeout=0, dynamic=false], target=@target(41) [durable=0, timeout=0, dynamic=false], initial-delivery-count=0, properties={}]
      [0x55ae05a3f1b0]:0 <- @attach(18) [name="396bbe81-3d21-4f89-9121-0923d04fa850-726bcf6d-dc7d-45a5-aff5-bd92f735fa8f", handle=1, role=true, snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) [durable=0, timeout=0, dynamic=false], target=@target(41) [durable=0, timeout=0, dynamic=false, capabilities=@PN_SYMBOL[:"REJECT_UNROUTABLE"]], properties={}]
      [0x55ae05a3f1b0]:0 <- @flow(19) [next-incoming-id=0, incoming-window=2048, next-outgoing-id=0, outgoing-window=2048, handle=1, delivery-count=0, link-credit=20000, echo=false]
      [0x55ae05a3f1b0]:0 <- @transfer(20) [handle=0, delivery-id=0, delivery-tag=b"\x00\x00\x00\x00\x00\x00\x00\x00", message-format=0] (137) "\x00Sp\xd0\x00\x00\x00\x0b\x00\x00\x00\x05BP\x04@BR\x00\x00Ss\xd0\x00\x00\x00G\x00\x00\x00\x0d@@@@\xa1$805bb984-5ee1-43d6-b052-7b166c986d9a@@@\x83\x00\x00\x00\x00\x00\x00\x00\x00\x83\x00\x00\x00\x00\x00\x00\x00\x00@R\x00@\x00Sw\xa1"Twas brillig, and the slithy toves"
      Received Message{reply_to="805bb984-5ee1-43d6-b052-7b166c986d9a", body="Twas brillig, and the slithy toves"}
      [0x55ae05a3f1b0]:0 -> @transfer(20) [handle=1, delivery-id=0, delivery-tag=b"1", message-format=0, settled=false, more=false] (137) "\x00Sp\xd0\x00\x00\x00\x0b\x00\x00\x00\x05BP\x04@BR\x00\x00Ss\xd0\x00\x00\x00G\x00\x00\x00\x0d@@\xa1$805bb984-5ee1-43d6-b052-7b166c986d9a@@@@@\x83\x00\x00\x00\x00\x00\x00\x00\x00\x83\x00\x00\x00\x00\x00\x00\x00\x00@R\x00@\x00Sw\xa1"TWAS BRILLIG, AND THE SLITHY TOVES"
      [0x55ae05a3f1b0]:0 -> @disposition(21) [role=true, first=0, last=0, settled=true, state=@accepted(36) []]
      [0x55ae05a3f1b0]:0 <- @disposition(21) [role=true, first=0, last=0, settled=true, state=@rejected(37) []]
      [0x55ae05a3f1b0]:0 <- @flow(19) [next-incoming-id=1, incoming-window=2048, next-outgoing-id=1, outgoing-window=2048, handle=0, delivery-count=1, link-credit=9, available=0, drain=false, echo=false]
      [0x55ae05a3f1b0]:0 -> @flow(19) [next-incoming-id=1, incoming-window=2147483647, next-outgoing-id=1, outgoing-window=2147483647, handle=0, delivery-count=1, link-credit=10, drain=false]
      
      

      The server example uses a single 'anonymous' sender with a null address which seems to attach ok, but the message then transmitted over this is rejected.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gsim Gordon Sim
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: