Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-783

SaxUtils leaks file handles, locks file on Windows

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 2.1 GA
    • Fix Version/s: 2.1.1
    • Component/s: XML
    • Labels:
      None

      Description

      The method "createInputSource" in SaxUtils leaks the input stream in

      InputSource inputSource = new InputSource(resource.getInputStream());

      While this might be considered a small nuisance, it becomes a PITA on Windows, because the "SimpleXsdSchema" uses this method and therefore locks the "xsd" file in the file system, which is a pain when running "mvn clean install" because clean fails because the XSD/WSDL file is locked.

      There are basically 4 non-test usages of this method that need to be reworked to avoid leaking file handles.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        13d 31m 1 Arjen Poutsma 10/Jul/12 2:46 AM
        In Progress In Progress Resolved Resolved
        27d 23h 46m 1 Arjen Poutsma 07/Aug/12 2:33 AM

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            krosenvold Kristian Rosenvold
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - Not Specified
              Not Specified
              Logged:
              Time Spent - 35m
              35m