Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-3788

NPE in finally block in generate Stub methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4
    • 1.5.5, 1.6.0
    • codegen
    • None

    Description

      The methods generated in the Stub have a try catch block
      try{

      }catch(org.apache.axis2.AxisFault f){
      ...
      }
      finally {
      _messageContext.getTransportOut().getSender().cleanup(_messageContext);
      }

      A "org.apache.axis2.AxisFault: Transport out has not been set" is catched and

      _messageContext.getTransportOut() is NULL

      That results in an ugly NPE

      Attachments

        Activity

          People

            amilachinthaka Amila Chinthaka Suriarachchi
            lischke Stefan Lischke
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: