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] [Resolved] (CAMEL-10755) files in .camel folder cannot be deleted on Windows host.
Date Fri, 24 Feb 2017 13:27:44 GMT

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

Claus Ibsen resolved CAMEL-10755.
---------------------------------
    Resolution: Invalid

> files in .camel folder cannot be deleted on Windows host.
> ---------------------------------------------------------
>
>                 Key: CAMEL-10755
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10755
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.17.0
>         Environment: Windows 7 x64
>            Reporter: Thomas Leber
>
> Camel tried after succesful running the route to delte the file from the .camel folder.
This fails with a org.apache.camel.component.file.GenericFileOperationFailedException.
> Full debug log on FileUtils:
> 2017-01-27 14:11:08 DEBUG FileUtil:548 - Retrying attempt 0 to delete file: C:\camelIn\Import\FPM\.camel\test.xml
> 2017-01-27 14:11:08 DEBUG FileUtil:548 - Retrying attempt 1 to delete file: C:\camelIn\Import\FPM\.camel\test.xml
> 2017-01-27 14:11:09 DEBUG FileUtil:548 - Retrying attempt 2 to delete file: C:\camelIn\Import\FPM\.camel\test.xml
> 2017-01-27 14:11:10 DEBUG FileUtil:563 - Tried 3 to delete file: C:\camelIn\Import\FPM\.camel\test.xml
with result: false
> 2017-01-27 14:11:11 DEBUG FileUtil:548 - Retrying attempt 0 to delete file: C:\camelIn\Import\FPM\.camel\test.xml
> 2017-01-27 14:11:11 DEBUG FileUtil:548 - Retrying attempt 1 to delete file: C:\camelIn\Import\FPM\.camel\test.xml
> 2017-01-27 14:11:12 DEBUG FileUtil:548 - Retrying attempt 2 to delete file: C:\camelIn\Import\FPM\.camel\test.xml
> 2017-01-27 14:11:13 DEBUG FileUtil:563 - Tried 3 to delete file: C:\camelIn\Import\FPM\.camel\test.xml
with result: false
> 2017-01-27 14:11:14 DEBUG FileUtil:548 - Retrying attempt 0 to delete file: C:\camelIn\Import\FPM\.camel\test.xml
> 2017-01-27 14:11:14 DEBUG FileUtil:548 - Retrying attempt 1 to delete file: C:\camelIn\Import\FPM\.camel\test.xml
> 2017-01-27 14:11:15 DEBUG FileUtil:548 - Retrying attempt 2 to delete file: C:\camelIn\Import\FPM\.camel\test.xml
> 2017-01-27 14:11:16 DEBUG FileUtil:563 - Tried 3 to delete file: C:\camelIn\Import\FPM\.camel\test.xml
with result: false
> 2017-01-27 14:11:17 DEBUG FileUtil:548 - Retrying attempt 0 to delete file: C:\camelIn\Import\FPM\test.xml.camelLock
> 2017-01-27 14:11:17 DEBUG FileUtil:563 - Tried 1 to delete file: C:\camelIn\Import\FPM\test.xml.camelLock
with result: true
> 2017-01-27 14:11:17 WARN  GenericFileOnCompletion:213 - Error during commit. Exchange[ID-MD1HC5YC-50410-1485522664096-0-2].
Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Cannot delete
file: GenericFile[C:\camelIn\Import\FPM\.camel\test.xml]]
> org.apache.camel.component.file.GenericFileOperationFailedException: Cannot delete file:
GenericFile[C:\camelIn\Import\FPM\.camel\test.xml]
> 	at org.apache.camel.component.file.strategy.GenericFileDeleteProcessStrategy.commit(GenericFileDeleteProcessStrategy.java:89)
> 	at org.apache.camel.component.file.GenericFileOnCompletion.processStrategyCommit(GenericFileOnCompletion.java:127)
> 	at org.apache.camel.component.file.GenericFileOnCompletion.onCompletion(GenericFileOnCompletion.java:83)
> 	at org.apache.camel.component.file.GenericFileOnCompletion.onComplete(GenericFileOnCompletion.java:57)
> 	at org.apache.camel.util.UnitOfWorkHelper.doneSynchronizations(UnitOfWorkHelper.java:104)
> 	at org.apache.camel.impl.DefaultUnitOfWork.done(DefaultUnitOfWork.java:229)
> 	at org.apache.camel.util.UnitOfWorkHelper.doneUow(UnitOfWorkHelper.java:65)
> 	at org.apache.camel.processor.CamelInternalProcessor$UnitOfWorkProcessorAdvice.after(CamelInternalProcessor.java:654)
> 	at org.apache.camel.processor.CamelInternalProcessor$UnitOfWorkProcessorAdvice.after(CamelInternalProcessor.java:609)
> 	at org.apache.camel.processor.CamelInternalProcessor$InternalCallback.done(CamelInternalProcessor.java:239)
> 	at org.apache.camel.processor.CamelInternalProcessor$InternalCallback.done(CamelInternalProcessor.java:250)
> 	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:499)
> 	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)
> 	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)
> 	at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:454)
> 	at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:226)
> 	at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:190)
> 	at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:175)
> 	at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:102)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> 	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 	at java.lang.Thread.run(Thread.java:745)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message