Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 78493 invoked from network); 26 Feb 2008 04:23:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2008 04:23:38 -0000 Received: (qmail 4313 invoked by uid 500); 26 Feb 2008 04:23:34 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 4292 invoked by uid 500); 26 Feb 2008 04:23:34 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 4283 invoked by uid 99); 26 Feb 2008 04:23:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2008 20:23:33 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=RCVD_NUMERIC_HELO,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [85.221.53.194] (HELO businesscape.no) (85.221.53.194) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2008 04:23:00 +0000 Received: from 85.221.53.194 ([85.221.53.194]) by businesscape.no (Kerio MailServer 6.0.9) for hegle@businesscape.no; Tue, 26 Feb 2008 05:01:52 +0100 Message-ID: <20080226050152.e255afde@businesscape.no> From: Ole Andreas Hegle To: camel-dev@activemq.apache.org Subject: Problem with file-compnent - Files are sent to processing twice Date: Tue, 26 Feb 2008 05:01:52 +0100 X-Mailer: Kerio MailServer 6.0.9 WebMail MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi I use camel version 1.2.0 and to configure my file component in the Rout= eBuilder I use from("file:"+orderFolder+"=3Flock=3Dfalse&delete=3Dtrue&initialDelay=3D5= 000&delay=3D5000").process(ofp); However, the ofp (OrderFileProcessor) receives two Exchanges with the fi= le, in stead of one. I have tried to set the lock to true, but this caus= es an java.nio.channels.OverlappingFileLockException. What can I do to fix this=3F Thanks in advance -Ole Andreas ERROR - FileConsumer -=20 java.nio.channels.OverlappingFileLockException =09at sun.nio.ch.FileChannelImpl$SharedFileLockTable.checkList(FileChann= elImpl.java:1173) =09at sun.nio.ch.FileChannelImpl$SharedFileLockTable.add(FileChannelImpl= .java:1075) =09at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:837) =09at java.nio.channels.FileChannel.lock(FileChannel.java:860) =09at org.apache.camel.component.file.strategy.FileProcessStrategySuppor= t.begin(FileProcessStrategySupport.java:63) =09at org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer= .java:88) =09at org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(F= ileConsumer.java:49) =09at org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(F= ileConsumer.java:56) =09at org.apache.camel.component.file.FileConsumer.poll(FileConsumer.jav= a:43) =09at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsu= mer.java:63) =09at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java= :441) =09at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.j= ava:317) =09at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) =09at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTa= sk.access$101(ScheduledThreadPoolExecutor.java:98) =09at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTa= sk.runPeriodic(ScheduledThreadPoolExecutor.java:181) =09at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTa= sk.run(ScheduledThreadPoolExecutor.java:205) =09at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolE= xecutor.java:885) =09at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecu= tor.java:907) =09at java.lang.Thread.run(Thread.java:619)