Uploaded image for project: 'WSRP4J'
  1. WSRP4J
  2. WSRP4J-104

FileWriter for Castor Marshaller is not closed.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • current (nightly)
    • current (nightly)
    • Persistence
    • None
    • 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.

      Attachments

        1. persistence-producer.patch
          9 kB
          Steve Etherington

        Activity

          People

            Unassigned Unassigned
            setherin Steve Etherington
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: