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 24AE3101A3 for ; Tue, 28 Apr 2015 13:23:51 +0000 (UTC) Received: (qmail 38073 invoked by uid 500); 28 Apr 2015 13:23:50 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 38025 invoked by uid 500); 28 Apr 2015 13:23:50 -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 38013 invoked by uid 99); 28 Apr 2015 13:23:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2015 13:23:50 +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 mike.giardinelli@gmail.com does not designate 54.191.145.13 as permitted sender) Received: from [54.191.145.13] (HELO mx1-us-west.apache.org) (54.191.145.13) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2015 13:23:44 +0000 Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id EAF21206A4 for ; Tue, 28 Apr 2015 13:23:23 +0000 (UTC) Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id C7E6B1C5D378 for ; Tue, 28 Apr 2015 06:24:04 -0700 (PDT) Date: Tue, 28 Apr 2015 06:23:22 -0700 (MST) From: Scarpacci To: users@camel.apache.org Message-ID: <1430227402940-5766427.post@n5.nabble.com> In-Reply-To: References: <1430192820971-5766411.post@n5.nabble.com> Subject: Re: TypeConversion Error MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Willem, Thanks for your response. I can tell that it is using the StreamCache and even applied the setting in the context, but it is still failing. I added more of the debug output to hopefully shed some more light on the problem. I am a camel newbie, so there is a good chance that this is user error. *Additional Debug Logs:* 06:18:46.315 [Camel (ArdisSystem) thread #0 - file:///Users/dev/data/input/actor] DEBUG o.a.c.component.file.FileConsumer - About to process file: GenericFile[/Users/dev/data/input/actor/BackgroundFull.txt] using exchange: Exchange[BackgroundFull.txt] 06:18:46.324 [Camel (ArdisSystem) thread #0 - file:///Users/dev/data/input/actor] DEBUG o.a.c.c.file.GenericFileConverter - Read file /Users/dev/data/input/actor/BackgroundFull.txt (no charset) 06:18:46.335 [Camel (ArdisSystem) thread #0 - file:///Users/dev/data/input/actor] DEBUG o.a.camel.processor.SendProcessor - >>>> Endpoint[akka://ArdisSystem/user/$a?autoAck=true&replyTimeout=60000+milliseconds] Exchange[Message: [Body is instance of org.apache.camel.StreamCache]] 06:18:46.341 [Camel (ArdisSystem) thread #0 - file:///Users/dev/data/input/actor] DEBUG org.apache.camel.util.FileUtil - Retrying attempt 0 to delete file: /var/folders/dh/zfqvn9gn7cl6h63d3400y4zxp3xtzf/T/camel-tmp-214819/cos1926967760124850497.tmp 06:18:46.341 [Camel (ArdisSystem) thread #0 - file:///Users/dev/data/input/actor] DEBUG org.apache.camel.util.FileUtil - Tried 1 to delete file: /var/folders/dh/zfqvn9gn7cl6h63d3400y4zxp3xtzf/T/camel-tmp-214819/cos1926967760124850497.tmp with result: true 06:18:46.343 [Camel (ArdisSystem) thread #0 - file:///Users/dev/data/input/actor] DEBUG o.a.c.c.file.GenericFileOnCompletion - Done processing file: GenericFile[/Users/dev/data/input/actor/BackgroundFull.txt] using exchange: Exchange[Message: [Body is instance of org.apache.camel.StreamCache]] 06:18:46.343 [Camel (ArdisSystem) thread #0 - file:///Users/dev/data/input/actor] DEBUG org.apache.camel.util.FileUtil - Retrying attempt 0 to delete file: /Users/dev/data/input/actor/BackgroundFull.txt.camelLock 06:18:46.343 [Camel (ArdisSystem) thread #0 - file:///Users/dev/data/input/actor] DEBUG org.apache.camel.util.FileUtil - Tried 1 to delete file: /Users/dev/data/input/actor/BackgroundFull.txt.camelLock with result: true 06:18:46.344 [Camel (ArdisSystem) thread #0 - file:///Users/dev/data/input/actor] DEBUG org.apache.camel.util.FileUtil - Retrying attempt 0 to delete file: /Users/dev/data/input/actor/.camel/BackgroundFull.txt 06:18:46.344 [Camel (ArdisSystem) thread #0 - file:///Users/dev/data/input/actor] DEBUG org.apache.camel.util.FileUtil - Tried 1 to delete file: /Users/dev/data/input/actor/.camel/BackgroundFull.txt with result: true 06:18:46.344 [Camel (ArdisSystem) thread #0 - file:///Users/dev/data/input/actor] DEBUG o.a.c.c.f.s.GenericFileRenameProcessStrategy - Renaming file: GenericFile[/Users/dev/data/input/actor/BackgroundFull.txt] to: GenericFile[/Users/dev/data/input/actor/.camel/BackgroundFull.txt] 06:18:46.344 [Camel (ArdisSystem) thread #0 - file:///Users/dev/data/input/actor] DEBUG org.apache.camel.util.FileUtil - Tried 1 to rename file: /Users/dev/data/input/actor/BackgroundFull.txt to: /Users/dev/data/input/actor/.camel/BackgroundFull.txt with result: true [ERROR] [04/28/2015 06:18:46.349] [ArdisSystem-akka.actor.default-dispatcher-3] [akka://ArdisSystem/user/$a] Error during type conversion from type: org.apache.camel.converter.stream.FileInputStreamCache to the required type: java.lang.String with value org.apache.camel.converter.stream.FileInputStreamCache@39d38328 due java.io.IOException: Stream closed org.apache.camel.TypeConversionException: Error during type conversion from type: org.apache.camel.converter.stream.FileInputStreamCache to the required type: java.lang.String with value org.apache.camel.converter.stream.FileInputStreamCache@39d38328 due java.io.IOException: Stream closed -- View this message in context: http://camel.465427.n5.nabble.com/TypeConversion-Error-tp5766411p5766427.html Sent from the Camel - Users mailing list archive at Nabble.com.