Axis2
  1. Axis2
  2. AXIS2-4642

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.5.4, 1.6.0
    • Component/s: kernel
    • Labels:
      None
    • Environment:
      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.]

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

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Bruce G Stewart
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development