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

?wsdl query calls out.close() twice, confusing at least some Tomcat connectors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.1
    • 1.5.4, 1.6.0
    • kernel
    • None
    • Axis2.war deployed in Tomcat 6.0.24, using ajp to jk isapi_redirect to IIS on Windows Server 2008.

    Description

      AxisService.getWSDL() sends the response body for a ..service?wsdl query, then calls .flush() and .close() for its output stream. Upon return, ListingAgent.processListService() calls .flush() and .close() again for the same stream.

      The second close() interferes with the next request on the intermediate ajp connector socket.

      I don't know whether calling close() twice should be harmless but, in this case, it is not.

      [edit: Actually, the 2nd close() is harmelss. It's the flush() coming after the 1st close() that seems to be the problem.]

      Attachments

        1. Axis2Patch-4642-with-javadoc.txt
          8 kB
          Anjana Fernando
        2. Axis2Patch-4642.txt
          2 kB
          Anjana Fernando

        Activity

          People

            Unassigned Unassigned
            bgstewart@covad.net Bruce G Stewart
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: