Uploaded image for project: 'ActiveMQ C++ Client'
  1. ActiveMQ C++ Client
  2. AMQCPP-629

Stack Trace is not avalable when connect fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.9.4
    • None
    • CMS Impl
    • 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());
      }

       

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            Dgutfinger Danielle Gutfinger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: