[
https://issues.apache.org/jira/browse/QPID-4232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Manohar B updated QPID-4232:
----------------------------
Description:
I have written a qpid cpp client program, in which I have created a message
listener.
{code:title=Bar.java|borderStyle=solid}
try{
cout << "Trying to open a connection" << endl;
connection.open("1.1.1.2", 10002);
session = connection.newSession();
SubscriptionManager subscriptions(session);
Listener listener(subscriptions);
subscriptions.subscribe(listener, receiver_queue);
subscriptions.start();
sleep(10);
}
catch(const std::exception& error) {
DEBUG(DBG_ERR, (char *)"AMQP-[%s]: Connection Error [%s].",
__func__,error.what());
connection.close();
return RESULT_FAILURE;
}
{code}
After returning from subscriptions.start(), I sent a message from server,
which is received at my program, but it failed with following error. Am I
missing something here.
I tried with subscriptions.run(), which is working fine.
please let me know, is this a bug ?
Thanks
Manohar
was:
I have written a qpid cpp client program, in which I have created a message
listener.
try{
cout << "Trying to open a connection" << endl;
connection.open("1.1.1.2", 10002);
session = connection.newSession();
SubscriptionManager subscriptions(session);
Listener listener(subscriptions);
subscriptions.subscribe(listener, receiver_queue);
subscriptions.start();
sleep(10);
}
catch(const std::exception& error) {
DEBUG(DBG_ERR, (char *)"AMQP-[%s]: Connection Error [%s].",
__func__,error.what());
connection.close();
return RESULT_FAILURE;
}
After returning from subscriptions.start(), I sent a message from server,
which is received at my program, but it failed with following error. Am I
missing something here.
I tried with subscriptions.run(), which is working fine.
please let me know, is this a bug ?
Thanks
Manohar
> exception on reception of message after subscriptionmanager.start()
> -------------------------------------------------------------------
>
> Key: QPID-4232
> URL: https://issues.apache.org/jira/browse/QPID-4232
> Project: Qpid
> Issue Type: Bug
> Components: C++ Client
> Affects Versions: 0.14, 0.16
> Environment: Red Hat Enterprise Linux Server release 6.2 (Santiago)
> Reporter: Manohar B
>
> I have written a qpid cpp client program, in which I have created a message
> listener.
> {code:title=Bar.java|borderStyle=solid}
> try{
> cout << "Trying to open a connection" << endl;
> connection.open("1.1.1.2", 10002);
> session = connection.newSession();
> SubscriptionManager subscriptions(session);
> Listener listener(subscriptions);
> subscriptions.subscribe(listener, receiver_queue);
> subscriptions.start();
> sleep(10);
> }
> catch(const std::exception& error) {
> DEBUG(DBG_ERR, (char *)"AMQP-[%s]: Connection Error [%s].",
> __func__,error.what());
> connection.close();
> return RESULT_FAILURE;
> }
> {code}
> After returning from subscriptions.start(), I sent a message from server,
> which is received at my program, but it failed with following error. Am I
> missing something here.
> I tried with subscriptions.run(), which is working fine.
> please let me know, is this a bug ?
> Thanks
> Manohar
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]