Uploaded image for project: 'Axis-C++'
  1. Axis-C++
  2. AXISCPP-204

Client segfaults when trying to call methods of caught exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3 Beta
    • 1.3 Final
    • Basic Architecture
    • None
    • Linux with axis2 transport and Xerces parser

    Description

      I have the following code in my client:

      catch (AxisException & e)

      { int code = e.getExceptionCode(); cout << "e.getExceptionCode()" << code << endl; printf ("Exception : %s\n", e.what ()); return -1; }

      The client segfaults when e.getExceptionCode() is called.

      If I comment that line, then the client craches when e.what() is called.

      Also I observed that exception class has:
      virtual const char* what() const throw();
      However AxisException class that inherits exception class has:
      virtual const char* what() throw() = 0;
      Note that trailing const is missing in the second call. I guess this is a bug.

      Attachments

        Activity

          People

            Unassigned Unassigned
            samisa Don Samisa Abeysinghe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: