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

ASF subversion and git services commented on QPID-5196:
-------------------------------------------------------

Commit 1527802 from c...@apache.org in branch 'qpid/trunk'
[ https://svn.apache.org/r1527802 ]

QPID-5196: Messaging example hello_world core dumps when given a bad connection 
option
Move connection constructor into try-catch block

> hello_world core dumps when connection protocol misspelled
> ----------------------------------------------------------
>
>                 Key: QPID-5196
>                 URL: https://issues.apache.org/jira/browse/QPID-5196
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Client
>    Affects Versions: 0.25
>            Reporter: Chuck Rolke
>
> With the advent of AMQP 1.0 users are required to specify a protocol as a 
> connection paramenter. If the user misspells the protocol name then 
> hello_world core dumps. 
> On Linux:
> {noformat}
> 1 chug@FJELD ~/svn/qpid/b64/examples/messaging> ./hello_world localhost:5672 
> amq.topic "{protocol:amqp-1.0}"
> terminate called after throwing an instance of 'qpid::Exception'
>   what():  Unsupported protocol: amqp-1.0
> Aborted (core dumped)
> {noformat}
> On Windows:
> {noformat}
> hello_world localhost:5672 amq.topic "{protocol:ampq-1.0}"
> ==> Popup hello_world.exe
> A problem caused the program to stop working correctly. 
> Please close the program. Choices: Close the program, or Debug the program
> {noformat}
> The Linux version at least prints out the text of the exception to give the 
> user a clue. On windows there is no hint of what went wrong and one must dive 
> into client library to find out if the desired protocol is loaded and if so 
> then what is its proper name. 
> I suggest that in hello_world.cpp the Connection constructor be moved to 
> within the try block. This, of course, means that the connection can't be 
> closed in the catch block.
> Note that to get AMQP1.0 users actually want to use: {protocol:amqp1.0}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

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

Reply via email to