You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Manohar B (JIRA)" <ji...@apache.org> on 2012/08/15 06:58:37 UTC
[jira] [Created] (QPID-4232) exception on reception of message
after subscriptionmanager.start()
Manohar B created QPID-4232:
-------------------------------
Summary: 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.16, 0.14
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.
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
--
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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org
[jira] [Updated] (QPID-4232) exception on reception of message
after subscriptionmanager.start()
Posted by "Manohar B (JIRA)" <ji...@apache.org>.
[ 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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org
[jira] [Commented] (QPID-4232) exception on reception of message
after subscriptionmanager.start()
Posted by "Manohar B (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/QPID-4232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434863#comment-13434863 ]
Manohar B commented on QPID-4232:
---------------------------------
Exception is..
terminate called after throwing an instance of 'qpid::Exception'
what(): Invalid argument (../include/qpid/sys/posix/Mutex.h:116)
Aborted
Stack trace:
(gdb) bt
#0 0x0024b424 in __kernel_vsyscall ()
#1 0x00276af1 in raise () from /lib/libc.so.6
#2 0x002783ca in abort () from /lib/libc.so.6
#3 0x0026fdcb in __assert_fail_base () from /lib/libc.so.6
#4 0x0026fe86 in __assert_fail () from /lib/libc.so.6
#5 0x00b683b6 in unlock (this=0x88501fc, name="A.B.ToApplication")
at ../include/qpid/sys/posix/Mutex.h:120
#6 ~ScopedLock (this=0x88501fc, name="A.B.ToApplication")
at . ./include/qpid/sys/Mutex.h:34
#7 qpid::client::Dispatcher::find (this=0x88501fc,
name="A.B.ToApplication")
at qpid/client/Dispatcher.cpp:137
#8 0x00b68752 in qpid::client::Dispatcher::run (this=0x88501fc) at
qpid/client/Dispatcher.cpp:83
#9 0x00d5b701 in qpid::sys::(anonymous namespace)::runRunnable (p=0x88501fc) at
qpid/sys/posix/Thread.cpp:35
#10 0x00564a09 in start_thread () from /lib/libpthread.so.0
#11 0x0032915e in clone () from /lib/libc.so.6
(gdb)
> 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.
> 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
--
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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org