WSRP4J
  1. WSRP4J
  2. WSRP4J-104

FileWriter for Castor Marshaller is not closed.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current (nightly)
    • Fix Version/s: current (nightly)
    • Component/s: Persistence
    • Labels:
      None
    • Environment:
      Windows, IBM SDK for WAS 6.1

      Description

      The current nightly build fails due to failure of CastorMappingTest. This test fails because it is unable to delete files that it creates. This is because the xml persistence mechanism leaves open file handles.

      The CastorUtil.getMarshaller method creates a FileWriter from a File parameter and passes it to the Marshaller. No reference is retained for the FileWriter. The marshal() method appears to open a stream for writing without closing it.

      This problem can be solved by have getMarshaller take a FileWriter param instead of a File. The client can then manually close the FileWriter.

        Activity

        Hide
        Steve Etherington added a comment -

        Attaching a patch file that resolves the issue.

        Show
        Steve Etherington added a comment - Attaching a patch file that resolves the issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Steve Etherington
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development