You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-dev@portals.apache.org by "Ricky Frost (JIRA)" <ws...@ws.apache.org> on 2004/11/21 21:09:24 UTC

[jira] Created: (WSRP4J-46) There isn't sufficient care taken in the closing of I/O resources in the persistence implementation

There isn't sufficient care taken in the closing of I/O resources in the persistence implementation
---------------------------------------------------------------------------------------------------

         Key: WSRP4J-46
         URL: http://nagoya.apache.org/jira/browse/WSRP4J-46
     Project: WSRP4J
        Type: Bug
  Components: Persistence  
    Versions: current (nightly)    
 Environment: n/a
    Reporter: Ricky Frost


The class org.apache.wsrp4j.persistence.xml.driver.PersistentHandlerImpl handles most of the object persistence as it relates to opening files. During the handling of the castor mapping files it doesn't issue close at all. Then in the actual marshal/unmarshal it closes the file right after the marshal/unmarshal directly in the try block. Standard practice requires it to be in a finally clause so it still gets closed in case of errors during the marshal/unmarshal...

The changes are fairly simple but I can't attach them here because my system already has the fixes for the prior JIRA (no implementation buffering)...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira