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 15238F13E for ; Fri, 22 Mar 2013 20:47:10 +0000 (UTC) Received: (qmail 29950 invoked by uid 500); 22 Mar 2013 20:47:09 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 29899 invoked by uid 500); 22 Mar 2013 20:47:09 -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 29891 invoked by uid 99); 22 Mar 2013 20:47:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Mar 2013 20:47:09 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.mueller@gmail.com designates 209.85.212.170 as permitted sender) Received: from [209.85.212.170] (HELO mail-wi0-f170.google.com) (209.85.212.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Mar 2013 20:47:05 +0000 Received: by mail-wi0-f170.google.com with SMTP id hm11so9087183wib.3 for ; Fri, 22 Mar 2013 13:46:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=Z/baEMSTQvmMZbRaxQs2IZV3Sr14DGj1Wl7wq7pAayE=; b=yT2Hc7lPIo98FtaW1CzhdqQ6NTabc439BxHBG9NjgofJpuW/IAsMFsxXSLSd9FWLeX Or6FMSFNDdlblFRh193GZuPAOJRSLhaqSYw3PaqQflVySuNo7E8vSpyqn+V1AT6zBw8P 1jbBP8FpCZXlcLs40FPtE7pYxklk4sx6bJX3OWvrPpTjPJu3SA534maD6OeHPhB9+91D 9aU7AJwPM2FE+TIpGgu90LEc72Crj978PigVSfXnoUbz/DoZQgQlNmP8WgcZH1nTJIVc hONw1wszTpL3rOVRlwCMEk4FTINpTzEVokRFh/4lwvpT5l/h5PsQdHLIwIecM8ri/Cug IX3Q== MIME-Version: 1.0 X-Received: by 10.194.119.33 with SMTP id kr1mr5551699wjb.36.1363985204051; Fri, 22 Mar 2013 13:46:44 -0700 (PDT) Received: by 10.216.218.137 with HTTP; Fri, 22 Mar 2013 13:46:43 -0700 (PDT) In-Reply-To: <1363981519016-5729696.post@n5.nabble.com> References: <1363981519016-5729696.post@n5.nabble.com> Date: Fri, 22 Mar 2013 21:46:43 +0100 Message-ID: Subject: Re: Cannot write null body to file error ! From: =?ISO-8859-1?Q?Christian_M=FCller?= To: users@camel.apache.org Content-Type: multipart/alternative; boundary=089e01227b9491062804d8898dc2 X-Virus-Checked: Checked by ClamAV on apache.org --089e01227b9491062804d8898dc2 Content-Type: text/plain; charset=ISO-8859-1 Your Quartz URI is not valid. You can read more about it at [1]. I think you are looking for the cron scheduled route policy [2]. [1] http://camel.apache.org/quartz.html [2] http://camel.apache.org/cronscheduledroutepolicy.html Best, Christian On Fri, Mar 22, 2013 at 8:45 PM, bru1900 wrote: > I am newly learning how to set up routes in camel, and Quartz schedule > them. > > I wrote a simple xml config, > > xmlns:camel="http://camel.apache.org/schema/spring" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-3.0.xsd > http://camel.apache.org/schema/spring > http://camel.apache.org/schema/spring/camel-spring.xsd"> > > > > > > > > > > > > > The simple file transfer works, but when i added the scheduling part am > getting the following error. > Any help will be highly appreciated. > > [artzScheduler-camel-1_Worker-5] QuartzEndpoint ERROR Error > processing exchange. Exchange[Message: [Body is null]]. Caused by: > [org.quartz.JobExecutionException - > org.apache.camel.component.file.GenericFileOperationFailedException: Cannot > write null body to file: > C:\Data\FuseJars\messages\ID-CGL-R8Y2AEZ-64638-1363878882438-0-29] > [artzScheduler-camel-1_Worker-5] JobRunShell INFO Job > DEFAULT.quartz-endpoint1 threw a JobExecutionException: > org.quartz.JobExecutionException: > org.apache.camel.component.file.GenericFileOperationFailedException: Cannot > write null body to file: > C:\Data\FuseJars\messages\ID-CGL-R8Y2AEZ-64638-1363878882438-0-29 [See > nested exception: > org.apache.camel.component.file.GenericFileOperationFailedException: Cannot > write null body to file: > C:\Data\FuseJars\messages\ID-CGL-R8Y2AEZ-64638-1363878882438-0-29] > at > > org.apache.camel.component.quartz.QuartzEndpoint.onJobExecute(QuartzEndpoint.java:117)[camel-quartz-2.10.0.fuse-71-047.jar:2.10.0.fuse-71-047] > at > > org.apache.camel.component.quartz.CamelJob.execute(CamelJob.java:54)[camel-quartz-2.10.0.fuse-71-047.jar:2.10.0.fuse-71-047] > at > org.quartz.core.JobRunShell.run(JobRunShell.java:216)[quartz-1.8.5.jar:] > at > > org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)[quartz-1.8.5.jar:] > [artzScheduler-camel-1_Worker-6] simple INFO > Moving > message to Folder > [ > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Cannot-write-null-body-to-file-error-tp5729696.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --089e01227b9491062804d8898dc2--