Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 328B0105BA for ; Mon, 2 Dec 2013 15:02:17 +0000 (UTC) Received: (qmail 48640 invoked by uid 500); 2 Dec 2013 15:00:38 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 48477 invoked by uid 500); 2 Dec 2013 15:00:30 -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 47913 invoked by uid 99); 2 Dec 2013 14:59:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Dec 2013 14:59:51 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of mato.krajcir@gmail.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Dec 2013 14:59:47 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VnUy6-0001p2-DQ for users@camel.apache.org; Mon, 02 Dec 2013 06:59:26 -0800 Date: Mon, 2 Dec 2013 06:59:26 -0800 (PST) From: martin11 To: users@camel.apache.org Message-ID: <1385996366275-5744181.post@n5.nabble.com> Subject: Random unsuccessful read from file MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello, I have a route triggered by timer where I read data (zulu time) from file (using poolEnrich) and at the end of route I replace data in file for next route iteration. Now after deploy on server I found following problem: - sometimes data are not loaded from file and poolEnrich return only 0x0a (Line Feed) character! - from log I see that at the end of route valid data was ready for persist into file - I don`t understand why this happened after cca 200 successful iteration of this route - this anomaly happens 2 or 3 times per day (timer is set to 60s on server) - there is no exception in log (Permission denied, Cannot store file, etc.) Any idea why this could happen? Why pollEnrich read empty file? No other process access to this new created file. I use camel 2.11.0 and java 7. Could not reproduce this problem on devel environment: request.body != null ? request.body.trim() : null ... ... ... 20131130125927Z/camel:constant> /** * Enrich aggregator strategy implementation. * It keep original exchange message with all headers and properties * and only replace body with new value. */ public class EnrichAggregationStrategy implements AggregationStrategy { @Override public Exchange aggregate(Exchange originalExchange, Exchange newExchange) { if (originalExchange == null) { originalExchange = newExchange; } else { originalExchange.getIn().setBody(newExchange.getIn().getBody()); } return originalExchange; } } Thanks for some hint. -- View this message in context: http://camel.465427.n5.nabble.com/Random-unsuccessful-read-from-file-tp5744181.html Sent from the Camel - Users mailing list archive at Nabble.com.