I created ticket to track this issue https://issues.apache.org/activemq/browse/CAMEL-1195
On Thu, Dec 18, 2008 at 6:09 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: > Hi > > Thanks for the logging. We have a ticket in JIRA to allow a different > strategy for exclusive read locks. Currently we only use the java NIO > locks. But they do not work consistent on all file systems or not at > all. So another strategy is the good old rename the file before > reading. This is what we do with the FTP component. > > So I will see what I can do to get this fixed so you can use the other > strategy instead. > > I assume you use Windows XP? What file system do you use NTFS or FAT32? > > > > On Wed, Dec 17, 2008 at 11:12 PM, watcher <patr...@daly.ws> wrote: >> >> Hi Claus >> >> Here's the trace logs enabled. If I start may application with the file >> already opened in Excel. The error is generated below. >> >> 17 Dec 2008 22:03:01,484 TRACE [Thread: 1 >> org.apache.camel.component.file.filecompon...@18be298] Fil >> eConsumer.pollFileOrDirectory(95) | Polling directory c:\temp >> 17 Dec 2008 22:03:01,484 TRACE [Thread: 1 >> org.apache.camel.component.file.filecompon...@18be298] Fil >> eConsumer.pollFile(119) | Polling file: c:\temp\file.txt >> 17 Dec 2008 22:03:01,484 TRACE [Thread: 1 >> org.apache.camel.component.file.filecompon...@18be298] Fil >> eConsumer.acquireExclusiveReadLock(200) | Waiting for exclusive read lock to >> file: c:\temp\file.txt >> >> 17 Dec 2008 22:03:01,484 ERROR [Thread: 1 >> org.apache.camel.component.file.filecompon...@18be298] FileConsumer.log(188) >> | c:\temp\file.txt (The process cannot access the file because it is being u >> sed by another process) >> java.io.FileNotFoundException: c:\temp\file.txt (The process cannot access >> the file because it >> is being used by another process) >> at java.io.RandomAccessFile.open(Native Method) >> at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212) >> at >> org.apache.camel.component.file.FileConsumer.acquireExclusiveReadLock(FileConsumer.java:2 >> 04) >> >> -- >> View this message in context: >> http://www.nabble.com/FileComponent-FileNotFoundException-tp21054406s22882p21062702.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> >> > > > > -- > > /Claus Ibsen > Apache Camel Committer > Blog: http://davsclaus.blogspot.com/ > -- /Claus Ibsen Apache Camel Committer Blog: http://davsclaus.blogspot.com/