Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 80212 invoked from network); 8 Apr 2009 14:40:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Apr 2009 14:40:27 -0000 Received: (qmail 53819 invoked by uid 500); 8 Apr 2009 14:40:24 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 53789 invoked by uid 500); 8 Apr 2009 14:40:24 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 53764 invoked by uid 99); 8 Apr 2009 14:40:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 14:40:24 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 14:40:15 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LrYwU-0003cB-Jb for users@camel.apache.org; Wed, 08 Apr 2009 07:39:54 -0700 Message-ID: <22951942.post@talk.nabble.com> Date: Wed, 8 Apr 2009 07:39:54 -0700 (PDT) From: Marek2009 To: users@camel.apache.org Subject: "Can not delete file" when combining file poller and JMS MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: Marek.Vaclavik@icw.de X-Virus-Checked: Checked by ClamAV on apache.org Hello, I have encountered an issue when combining file poller and JMS queue in one route. If the poller is set to "noop=no" and tries to either delete or move the files, it fails every now and then (say, every 5th to 10th file). For instance, with "noop=no&delete=yes" on a Windows machine the exception thrown is: "2009-03-27T17:13:59,781 [Thread: 1 org.apache.camel.component.file.FileComponent@1af5350] WARN - component.file.FileConsumer | Error committing file strategy: org.apache.camel.component.file.strategy.DeleteFileProcessStrategy@10c81a6 java.io.IOException: Can not delete file: .\data\pxsa\transfer\in\file.txt" Apparently, the issue has been discussed in in various Camel forums: - http://osdir.com/ml/users-camel-apache/2009-02/msg00119.html - http://osdir.com/ml/users-camel-apache/2009-02/msg00123.html - http://mail-archives.apache.org/mod_mbox/camel-users/200902.mbox/%3C5380c69c0902130209l679c3ab0j641036484ee14875@mail.gmail.com%3E - http://cwiki.apache.org/SM/discussion-forums.html#nabble-p21504030 Unfortunately, none of the solutions suggested there (using delete=true, converting body to string) worked for us 100%. Adding a delay reduced the occurence of the exception, though. Setting "consumer.exclusiveReadLock=false" is no option for us, as we want to prevent incomplete files from being read. Removing the JMS endpoint from the route in our application prevents the error, which indicates that the cause is connected to JMS. This is also our workaround at the moment. I wonder whether a) the problem is familiar to somebody? b) there is a "trick", an endpoint setting or an addition to the route, that reliably eliminates the problem? Any help is greatly appreciated. Kind Regards Marek -- View this message in context: http://www.nabble.com/%22Can-not-delete-file%22-when-combining-file-poller-and-JMS-tp22951942p22951942.html Sent from the Camel - Users mailing list archive at Nabble.com.