[ 
https://issues.apache.org/jira/browse/CAMEL-4266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-4266:
-------------------------------


Please use the mailing list / user forum first to get help with using Camel, as 
we write here:
http://camel.apache.org/support

The problem you have is most likely an issue in your code where you keep a 
input strem on the file, which means Windows will lock the file. And prevent it 
from being deleted/renamed. So double check your code.



> Windows inprogress file :  failed due cannot delete
> ---------------------------------------------------
>
>                 Key: CAMEL-4266
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4266
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.7.2, 2.8.0
>         Environment: Windows XP, JDK 1.6
>            Reporter: Muthukumar Selvarasu
>            Priority: Critical
>
> 10:20:30.780 [a://tr_inward_fp] DeleteWorkFile                 DEBUG Error in 
> processing the file; going to delete the work
> file
> 10:20:30.780 [a://tr_inward_fp] GenericFileOnCompletion        WARN  Rollback 
> file strategy: org.apache.camel.component.fil
> e.strategy.GenericFileRenameProcessStrategy@1bfaf97 for file: 
> GenericFile[..\inprogress\sam1.csv]
> 10:20:30.780 [a://tr_inward_fp] FileUtil                       DEBUG Retrying 
> attempt 1 to rename file from: data\
> \in\..\inprogress\sam1.csv to: data\in\..\inprogress\..\error\sam1.csv
> 10:20:31.796 [a://tr_inward_fp] FileUtil                       DEBUG Retrying 
> attempt 2 to rename file from: data\
> \in\..\inprogress\sam1.csv to: data\in\..\inprogress\..\error\sam1.csv
> 10:20:32.796 [a://tr_inward_fp] FileUtil                       DEBUG Cannot 
> rename file from: data\in\..\inprogre
> ss\sam1.csv to: data\in\..\inprogress\..\error\sam1.csv, will now use a 
> copy/delete approach instead
> 10:20:32.796 [a://tr_inward_fp] FileUtil                       DEBUG Using 
> FileChannel to copy from: sun.nio.ch.FileChannel
> Impl@26c3a1 to: sun.nio.ch.FileChannelImpl@f596b2
> 10:20:32.796 [a://tr_inward_fp] FileUtil                       DEBUG Retrying 
> attempt 0 to delete file: data\in\.
> .\inprogress\sam1.csv
> 10:20:32.796 [a://tr_inward_fp] FileUtil                       DEBUG Retrying 
> attempt 1 to delete file: data\in\.
> .\inprogress\sam1.csv
> 10:20:33.811 [a://tr_inward_fp] FileUtil                       DEBUG Retrying 
> attempt 2 to delete file: data\in\.
> .\inprogress\sam1.csv
> 10:20:34.811 [a://tr_inward_fp] FileUtil                       DEBUG Tried 3 
> to delete file: data\in\..\inprogres
> s\sam1.csv with result: false
> 10:20:34.811 [a://tr_inward_fp] FileUtil                       WARN  Renaming 
> file from: data\in\..\inprogress\sa
> m1.csv to: data\in\..\inprogress\..\error\sam1.csv failed due cannot delete 
> from file: data\in\..\inprogress\sam
> 1.csv after copy succeeded
> 10:20:34.811 [a://tr_inward_fp] FileUtil                       DEBUG Tried 3 
> to rename file: data\in\..\inprogres
> s\sam1.csv to: data\in\..\inprogress\..\error\sam1.csv with result: true

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to