camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-5235) Make sure to close file input stream when converting file to string to avoid locking file on windows
Date Tue, 01 May 2012 14:50:07 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-5235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265845#comment-13265845
] 

Claus Ibsen commented on CAMEL-5235:
------------------------------------

Yeah if the user gets a reader/stream etc then he may need to close it after use.

But in this use-case it was converting to String or byte[] etc directly. And for that Camel
must make sure to close the stream internally.
                
> Make sure to close file input stream when converting file to string to avoid locking
file on windows
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5235
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5235
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.2
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.9.3, 2.10.0
>
>
> See nabble
> http://camel.465427.n5.nabble.com/File-Processor-Not-deleting-the-files-tp5670301.html
> Need to explicit close the file input/output streams to avoid the files to be locked
on windows.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message