I tried with admin:admin@localhost:5672
I am getting error:
python2.7:
/tmp/pip_build_root/python-qpid-proton/build/bundled/qpid-proton/proton-c/src/transport/transport.c:1599:
transport_consume: Assertion `n == (-1)' failed.
Aborted
On the broker side:
2015-06-11 16:30:17,514 INFO [IoReceiver - /127.0.0.1:60932]
(stats.StatisticsCounter) - Resetting statistics for counter:
messages-delivered-208-633
2015-06-11 16:30:17,514 INFO [IoReceiver - /127.0.0.1:60932]
(stats.StatisticsCounter) - Resetting statistics for counter:
data-delivered-208-634
2015-06-11 16:30:17,514 INFO [IoReceiver - /127.0.0.1:60932]
(stats.StatisticsCounter) - Resetting statistics for counter:
messages-received-208-635
2015-06-11 16:30:17,514 INFO [IoReceiver - /127.0.0.1:60932]
(stats.StatisticsCounter) - Resetting statistics for counter:
data-received-208-636
2015-06-11 16:30:17,514 DEBUG [IoReceiver - /127.0.0.1:60932] (FRM) -
SEND[/127.0.0.1:60932|0] :
SaslMechanisms{saslServerMechanisms=[CRAM-MD5]}
2015-06-11 16:30:17,514 DEBUG [IoReceiver - /127.0.0.1:60932] (RAW) -
SEND[/127.0.0.1:60932] :
\x00\x00\x00\x1b\x02\x01\x00\x00\x00S@\xc0\x0e\x01\xe0\x0b\x01\xa3\x08CRAM-MD5
2015-06-11 16:30:17,514 DEBUG [IoReceiver - /127.0.0.1:60932] (RAW) -
RECV[/127.0.0.1:60932] : AMQP\x03\x01\x00\x00
2015-06-11 16:30:17,514 DEBUG [IoReceiver - /127.0.0.1:60932] (RAW) -
RECV[/127.0.0.1:60932] :
\x00\x00\x00)\x02\x01\x00\x00\x00SA\xd0\x00\x00\x00\x19\x00\x00\x00\x02\xa3\x05PLAIN\xa0\x0c\x00admin\x00admin
2015-06-11 16:30:17,514 DEBUG [IoReceiver - /127.0.0.1:60932] (FRM) -
RECV[/127.0.0.1:60932|0] :
SaslInit{mechanism=PLAIN,initialResponse=\x00admin\x00admin}
2015-06-11 16:30:17,514 DEBUG [IoReceiver - /127.0.0.1:60932] (FRM) -
SEND[/127.0.0.1:60932|0] : SaslOutcome{code=auth}
2015-06-11 16:30:17,514 DEBUG [IoReceiver - /127.0.0.1:60932] (RAW) -
SEND[/127.0.0.1:60932] :
\x00\x00\x00\x10\x02\x01\x00\x00\x00SD\xc0\x03\x01P\x01
2015-06-11 16:30:17,514 DEBUG [IoReceiver - /127.0.0.1:60932] (FRM) -
RECV[/127.0.0.1:60932|-1] : Underlying connection closed
On Thu, Jun 11, 2015 at 4:28 PM, Gordon Sim <[email protected]> wrote:
> 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]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]