camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mariusz <mariusz_...@wp.pl>
Subject GenericFileOperationFailedException for file deletion
Date Sat, 14 Sep 2013 21:04:12 GMT
Hi,

I'm trying to use fileLock (<from 
uri="file:source?delete=true&amp;readLock=fileLock"/>, Camel 
2.12.0) for fileEndpoint but I'm getting following exception:

Error during commit. Exchange[text.txt]. Caused by: 
[org.apache.camel.component.file.GenericFileOperationFailedException -
Cannot 
delete file: GenericFile[text.txt]]
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot 
delete file: GenericFile[text.txt]
	at 
org.apache.camel.component.file.strategy.GenericFileDeleteProcessStrategy.commit(GenericFileDeleteProcessStrategy.java:81)
	at 
org.apache.camel.component.file.GenericFileOnCompletion.processStrategyCommit(GenericFileOnCompletion.java:144)
	at 
org.apache.camel.component.file.GenericFileOnCompletion.onCompletion(GenericFileOnCompletion.java:80)
	at 
org.apache.camel.component.file.GenericFileOnCompletion.onComplete(GenericFileOnCompletion.java:54)

It seems that it is not possible to delete file when LockFile is aquired. I 
see in code that in GenericFileDeleteProcessStrategy class file deletion is 
before:  exclusiveReadLockStrategy.releaseExclusiveReadLock(operations,
file, 
exchange);

Thanks,
Mariusz



--
View this message in context: http://camel.465427.n5.nabble.com/GenericFileOperationFailedException-for-file-deletion-tp5739382.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message