Danielle Gutfinger created AMQCPP-629: -----------------------------------------
Summary: Stack Trace is not avalable when connect fails Key: AMQCPP-629 URL: https://issues.apache.org/jira/browse/AMQCPP-629 Project: ActiveMQ C++ Client Issue Type: Bug Components: CMS Impl Affects Versions: 3.9.4 Reporter: Danielle Gutfinger Assignee: Timothy Bish the stack trace is missing when exception thrown becasue broker is not found at given address the issue is in cms::CMSException ActiveMQException::convertToCMSException(). adding the line highlighted in green seems to fix it. cms::CMSException ActiveMQException::convertToCMSException() const { std::exception* result = NULL; if (this->getCause() != NULL) { const Exception* ptrCause = dynamic_cast<const Exception*>(this->getCause()); if (ptrCause == NULL) { result = new Exception(__FILE__, __LINE__, getCause()->what()); } else { result = ptrCause->clone(); {color:#14892c}return cms::CMSException(this->getMessage(), result, ptrCause->getStackTrace());{color} } } return cms::CMSException(this->getMessage(), result, this->getStackTrace()); } -- This message was sent by Atlassian JIRA (v7.6.3#76005)