Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 6294 invoked from network); 1 Mar 2011 23:45:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Mar 2011 23:45:29 -0000 Received: (qmail 69082 invoked by uid 500); 1 Mar 2011 23:45:28 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 68937 invoked by uid 500); 1 Mar 2011 23:45:27 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 68922 invoked by uid 99); 1 Mar 2011 23:45:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2011 23:45:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2011 23:45:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D6D224A6E3 for ; Tue, 1 Mar 2011 23:44:36 +0000 (UTC) Date: Tue, 1 Mar 2011 23:44:36 +0000 (UTC) From: "Henrique Magarotto (JIRA)" To: dev@activemq.apache.org Message-ID: <1498445296.6439.1299023076860.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Created: (AMQCPP-354) unexpected exception in TransactionSynhcronization::beforeEnd MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 unexpected exception in TransactionSynhcronization::beforeEnd ------------------------------------------------------------- Key: AMQCPP-354 URL: https://issues.apache.org/jira/browse/AMQCPP-354 Project: ActiveMQ C++ Client Issue Type: Bug Affects Versions: 3.2.4 Environment: ActiveMQ 5.4.2 ActiveMQ-CPP 3.2.4 Ubuntu 10.04 JRE 1.6.0_20-b02 Reporter: Henrique Magarotto Assignee: Timothy Bish An unexpected exception is thrown if broker is stopped while consumer is in transaction. I get the following message: terminate called after throwing an instance of 'cms::CMSException' what(): Failover timeout of 1000 ms reached. Aborted (core dumped) core backtrace: #0 0x001ef422 in __kernel_vsyscall () #1 0x00c5a651 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #2 0x00c5da82 in *__GI_abort () at abort.c:92 #3 0x00bf952f in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6 #4 0x00bf7465 in ?? () from /usr/lib/libstdc++.so.6 #5 0x00bf74a2 in std::terminate() () from /usr/lib/libstdc++.so.6 #6 0x00bf74c5 in ?? () from /usr/lib/libstdc++.so.6 #7 0x00bf6915 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.6 #8 0x0052f8ae in activemq::core::TransactionSynhcronization::beforeEnd (this=0x93ac548) at activemq/core/ActiveMQConsumer.cpp:84 #9 0x00550588 in activemq::core::ActiveMQTransactionContext::beforeEnd (this=0x93b3e48) at activemq/core/ActiveMQTransactionContext.cpp:192 #10 0x00550d63 in activemq::core::ActiveMQTransactionContext::commit (this=0x93b3e48) at activemq/core/ActiveMQTransactionContext.cpp:127 #11 0x0053e460 in activemq::core::ActiveMQSession::commit (this=0x93b3c10) at activemq/core/ActiveMQSession.cpp:189 #12 0x0042c1a0 in activemq::cmsutil::PooledSession::commit (this=0x93b3fd8) at activemq/cmsutil/PooledSession.h:87 #13 0x0804c0fb in Consumer::onMessage (this=0x93a8c30, message=0x93b49b0) at main.cpp:455 #14 0x0804bdc8 in Consumer::consumeLoop (this=0x93a8c30) at main.cpp:415 #15 0x0804bb56 in Consumer::run (this=0x93a8c30) at main.cpp:381 #16 0x00823cf1 in decaf::lang::ThreadProperties::runCallback (properties=0x93abff0) at decaf/lang/Thread.cpp:135 #17 0x00822847 in threadWorker (arg=0x93abff0) at decaf/lang/Thread.cpp:188 #18 0x0015a96e in start_thread (arg=0xb6f8bb70) at pthread_create.c:300 #19 0x00cfda4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 Exception specification for method 'activemq::core::TransactionSynhcronization::beforeEnd' says: 'throw( exceptions::ActiveMQException )' but 'ActiveMQConsumer::acknowledge' throws 'cms::CMSException', so 'std::unexpected' is called and 'abort' occurs. (http://www.linuxprogrammingblog.com/cpp-exception-specifications-are-evil) -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira