On 06/11/2015 01:01 PM, Mansour Al Akeel wrote:
Hello,I have Qpid java broker 0.32. Installed python-qpid-proton 0.91 from pip using "pip install python-qpid-proton" (thank you for adding it to python packages) I created a queue called "examples".Then downloaded qpid-proton-0.9.1.tar.gz to obtain the examples: Tried to run some examples with the installed Qpid broker but no luck. python qpid-proton-0.9.1-rc1/examples/python/helloworld_blocking.py I am getting this error: Traceback (most recent call last): File "helloworld_blocking.py", line 25, in <module> conn = BlockingConnection("localhost:5672") File "/usr/lib64/python2.7/site-packages/proton/utils.py", line 200, in __init__ msg="Opening connection") File "/usr/lib64/python2.7/site-packages/proton/utils.py", line 231, in wait self.container.process() File "/usr/lib64/python2.7/site-packages/proton/reactor.py", line 143, in process self._check_errors() File "/usr/lib64/python2.7/site-packages/proton/__init__.py", line 3737, in dispatch ev.dispatch(self.handler) File "/usr/lib64/python2.7/site-packages/proton/__init__.py", line 3662, in dispatch result = dispatch(handler, type.method, self) File "/usr/lib64/python2.7/site-packages/proton/__init__.py", line 3551, in dispatch return m(*args) File "/usr/lib64/python2.7/site-packages/proton/utils.py", line 257, in on_transport_tail_closed self.on_transport_closed(event) File "/usr/lib64/python2.7/site-packages/proton/utils.py", line 261, in on_transport_closed raise ConnectionException("Connection %s disconnected" % self.url); proton.ConnectionException: Connection amqp://localhost:5672 disconnected The server logs: 2015-06-11 15:03:35,985 DEBUG [IoReceiver - /127.0.0.1:60141] (protocol.MultiVersionProtocolEngine) - Unsupported protocol version requested, replying with: AMQP_1_0 Is there anything I am missing ?
My guess is that your broker is not accepting connections without a sasl layer. Try changing the localhost:5672 in the example to be guest:guest@localhost:5672
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
