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

        krosenvold Kristian Rosenvold created issue -
        arjen.poutsma Arjen Poutsma made changes -
        Field Original Value New Value
        Assignee Arjen Poutsma [ arjen.poutsma ]
        Fix Version/s 2.1.1 [ 13012 ]
        krosenvold Kristian Rosenvold made changes -
        krosenvold Kristian Rosenvold made changes -
        arjen.poutsma Arjen Poutsma made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        arjen.poutsma Arjen Poutsma made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Invalid [ 6 ]
        arjen.poutsma Arjen Poutsma made changes -
        Worklog Id 29144 [ 29144 ]
        Time Spent 35m [ 2100 ]

          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