« Return to Thread: [jira] Created: (TRINIDAD-73) trinidad-impl.jar file is left open during execution

[jira] Commented: (TRINIDAD-73) trinidad-impl.jar file is left open during execution

by My Faces - Dev mailing list :: Rate this Message:

Reply to Author | View in Thread


    [ https://issues.apache.org/jira/browse/TRINIDAD-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507030 ]

Adam Winer commented on TRINIDAD-73:
------------------------------------

It appears that URLConnection.getLastModified() is the culprit - when pointing at a jar: or file: URL, it opens an input stream but does not close it.  getInputStream().close() works around this limitation of URLConnection.

> trinidad-impl.jar file is left open during execution
> ----------------------------------------------------
>
>                 Key: TRINIDAD-73
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-73
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions: 1.0.1-core
>            Reporter: Adam Winer
>            Assignee: Adam Winer
>
> When running a Trinidad application, trinidad-impl.jar is getting locked with open FileInputStream objects.  When GC occurs, the FileInputStreams are getting cleared, but as new FileInputStreams are opened on each request, the file is eternally locked.  Other files are likely getting locked too.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

 « Return to Thread: [jira] Created: (TRINIDAD-73) trinidad-impl.jar file is left open during execution