[
https://issues.apache.org/jira/browse/PROTON-561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13966801#comment-13966801
]
Justin Ross commented on PROTON-561:
------------------------------------
Interesting. It does contain the expected error message:
{noformat}
jross@localhost bailey$ PN_TRACE_FRM=1 python ~/test.py
Connected to 0.0.0.0:5672
[0x1d8d2c0]: -> SASL
[0x1d8d2c0]:0 -> @sasl-init(65) [mechanism=:ANONYMOUS, initial-response=b""]
[0x1d8d2c0]: <- SASL
[0x1d8d2c0]:0 <- @sasl-mechanisms(64)
[sasl-server-mechanisms=@PN_SYMBOL[:ANONYMOUS]]
[0x1d8d2c0]:0 <- @sasl-outcome(68) [code=0]
[0x1d8d2c0]: -> AMQP
[0x1d8d2c0]:0 -> @open(16)
[container-id="00f7ee97-c215-4bc8-9044-2b70bb040e15", hostname="0.0.0.0"]
[0x1d8d2c0]:0 -> @begin(17) [next-outgoing-id=0, incoming-window=2147483647,
outgoing-window=1]
[0x1d8d2c0]:0 -> @attach(18) [name="sender-xxx", handle=0, role=false,
snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) [address="test",
durable=0, timeout=0, dynamic=false], target=@target(41) [address="test",
durable=0, timeout=0, dynamic=false], initial-delivery-count=0]
[0x1d8d2c0]: <- AMQP
[0x1d8d2c0]:0 <- @open(16)
[container-id="ecc27ee4-9768-43bd-8a19-3983b795ad0f", max-frame-size=32768,
channel-max=255, properties={:product="qpid", :version="0.26",
:"qpid.build"="1571648", :"qpid.instance_name"="Broker"}]
[0x1d8d2c0]:0 <- @begin(17) [remote-channel=0, next-outgoing-id=0,
incoming-window=2048, outgoing-window=2048]
[0x1d8d2c0]:0 <- @attach(18) [name="sender-xxx", handle=0, role=true,
snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) [address="test",
durable=0, timeout=0, dynamic=false]]
[0x1d8d2c0]:0 <- @detach(22) [handle=0, error=@error(29)
[condition=:"amqp:not-found"]]
{noformat}
> Using the java broker, messenger apparently doesn't propagate error back from
> broker to messenger
> -------------------------------------------------------------------------------------------------
>
> Key: PROTON-561
> URL: https://issues.apache.org/jira/browse/PROTON-561
> Project: Qpid Proton
> Issue Type: Bug
> Components: proton-c
> Reporter: Justin Ross
>
> (The java broker logging for AMQP 1.0 is minimal; I'll mention that in
> another jira.)
> The test program below simply hangs. It didn't seem to want to time out,
> either.
> {noformat}
> from proton import Message, Messenger
> msgr = Messenger()
> msgr.start()
> try:
> msg = Message()
> msg.address = "amqp://0.0.0.0:5672/test"
> msg.body = "test"
> msgr.put(msg)
> msgr.send()
> finally:
> msgr.stop()
> {noformat}
> By contrast, the same operation rendered in the qpid_messaging API produces
> the expected error:
> {noformat}
> import sys
> # You will need to build the swig python binding and point at it
> sys.path.append("/home/jross/code/qpid/cpp/build/bindings/qpid/python")
> from qpid_messaging import Connection
> conn = Connection("0.0.0.0:5672", protocol="amqp1.0")
> conn.open()
> try:
> session = conn.session()
> sender = session.sender("test")
> message = Message("test")
> sender.send(message)
> finally:
> conn.close()
> {noformat}
> Error:
> {noformat}
> Traceback (most recent call last):
> File "/home/jross/test2.py", line 13, in <module>
> sender = session.sender("test")
> File
> "/home/jross/code/qpid/cpp/build/bindings/qpid/python/qpid_messaging.py",
> line 560, in sender
> s = self._sender(target)
> File
> "/home/jross/code/qpid/cpp/build/bindings/qpid/python/qpid_messaging.py",
> line 532, in _sender
> def _sender(self, *args): return _qpid_messaging.Session__sender(self,
> *args)
> _qpid_messaging.NotFound: No such target : test
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)