[ 
https://issues.apache.org/jira/browse/PROTON-2006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16801185#comment-16801185
 ] 

Andrew Stitcher commented on PROTON-2006:
-----------------------------------------

>From the error message I'd guess that the example is failing to set up SSL to 
>connect to servicebus.

A trace I generated:
 {{$ PN_TRACE_FRM=1 PN_TRACE_EVT=1 ./cpp/examples/service_bus -n 
xxx.servicebus.windows.net -p yyy -k 'zzz' -e blah}}
 {{[0x18bbaa0]:(PN_CONNECTION_INIT, pn_connection<0x18b6790>)}}
 {{[0x18bbaa0]:(PN_SESSION_INIT, pn_session<0x18b7ed0>)}}
 {{[0x18bbaa0]:(PN_LINK_INIT, pn_link<0x18b9000>)}}
 {{[0x18bbaa0]:(PN_CONNECTION_BOUND, pn_connection<0x18b6790>)}}
 {{[0x18bbaa0]: -> SASL}}
 {{[0x18bbaa0]: <- EOS}}
 {{[0x18bbaa0]:(PN_TRANSPORT_TAIL_CLOSED, pn_transport<0x18bbaa0>)}}
 {{[0x18bbaa0]:(PN_TRANSPORT_ERROR, pn_transport<0x18bbaa0>)}}
 {{[0x18bbaa0]: -> EOS}}
 {{[0x18bbaa0]:(PN_TRANSPORT_HEAD_CLOSED, pn_transport<0x18bbaa0>)}}
 {{[0x18bbaa0]:(PN_TRANSPORT_CLOSED, pn_transport<0x18bbaa0>)}}
 {{amqp:connection:framing-error: SASL header mismatch: Insufficient data to 
determine protocol [''] (connection aborted)}}

It looks like the client sent the SASL header but received the TLS  header from 
the server.

> Qpid Proton cannot connect to Azure Service Bus 
> 'amqp:connection:framing-error'
> -------------------------------------------------------------------------------
>
>                 Key: PROTON-2006
>                 URL: https://issues.apache.org/jira/browse/PROTON-2006
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: cpp-binding, examples
>    Affects Versions: proton-c-0.28.0
>            Reporter: Oskar Christensson
>            Priority: Major
>
>  
> {code:java}
> amqp:connection:framing-error: SASL header mismatch: Insufficient data to 
> determine protocol [''] (connection aborted){code}
> We're trying to get a C++ connection to Azure Service Bus using AMQP with 
> QPID proton, and trying out the examples under qpid-proton/cpp/examples it 
> fails.
> Steps to reproduce:
>  # Clone qpid-proton
>  # Follow installation and make README
>  # Create new Service Bus Namespace in azure
>  # Create new Service Bus Queue in Azure with Sessions enabled
>  # Create a policy with all permissions
>  # `./service_bus -n <namespace>.servicebus.windows.net -p <policy_name> -k 
> <uri_encoded_policy_key> -e <queue_name>
> Expected results:
> It should work according to the docs in the cpp/examples/service_bus.cpp docs
> Actual results:
> {code:java}
> amqp:connection:framing-error: SASL header mismatch: Insufficient data to 
> determine protocol [''] (connection aborted){code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to