Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
3.9.4
-
None
-
None
Description
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();
return cms::CMSException(this->getMessage(), result, ptrCause->getStackTrace());
}
}
return cms::CMSException(this->getMessage(), result, this->getStackTrace());
}