Hi What version of Camel are you using?
Does this error happens all the time with the JMS TX manager? Do you mind creating a small sample as a .zip file, then I would like to take a look.? The Java IO API in Java is quite terrible when it comes to error information as the rename operations just return true/false. So its not possible to know the real cause. We have to wait for NIO2 in Java 7 for this to be fixed. Maybe the TX is holding on some stream/object. You can try adding a little delayer at the end > <route errorHandlerRef="deadLetterErrorHandlerInfinity"> > <from uri="file://C:\Temp\amqtest\in"/> > <to ref="activemq:queue:myq1"/> <delayer> <delayTime>3000</delayTime> </expression> </delayer> > </route> See http://camel.apache.org/delayer.html On Thu, Feb 12, 2009 at 6:38 PM, pevgen <pev...@km.ru> wrote: > > Hello. > > sometimes, but not each time, I got Exceptions : > > org.apache.camel.component.file.filecompon...@37165f] ERROR > org.apache.camel.component.file.FileConsumer - Can not rename file from: > C:\Temp\amqtest\in\1.txt to: C:\Temp\amqtest\in\.camel\1.txt > java.io.IOException: Can not rename file from: C:\Temp\amqtest\in\1.txt to: > C:\Temp\amqtest\in\.camel\1.txt > at > org.apache.camel.component.file.strategy.RenameFileProcessStrategy.commit(RenameFileProcessStrategy.java:69) > .... > > > and the file 'C:\Temp\amqtest\in\1.txt' didn't move from the directory, and > a file '1.txt.camelLock' didn't delete from the directory, too. > > i try to use the route : > > <route errorHandlerRef="deadLetterErrorHandlerInfinity"> > <from uri="file://C:\Temp\amqtest\in"/> > <to ref="activemq:queue:myq1"/> > </route> > > and i use 'JmsTransactionManager'. I say about this, because when i don't > use the 'JmsTransactionManager', it seems that i haven't got this error. > > any suggests ? > > Thanks. > Evgeny > -- > View this message in context: > http://www.nabble.com/File-component-%3A-file-don%27t-move-tp21980942s22882p21980942.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/