Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 40505 invoked from network); 23 Jan 2007 12:38:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jan 2007 12:38:21 -0000 Received: (qmail 53280 invoked by uid 500); 23 Jan 2007 12:38:17 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 53222 invoked by uid 500); 23 Jan 2007 12:38:16 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 53205 invoked by uid 99); 23 Jan 2007 12:38:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 04:38:16 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [81.255.21.36] (HELO hlvemail1.hachette-livre.fr) (81.255.21.36) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 04:38:08 -0800 Received: from HLVEGWIAIN.HACHETTE-LIVRE.FR ([192.168.37.16]) by hlvemail1.hachette-livre.fr with ESMTP id l0NCbk3g015887 for ; Tue, 23 Jan 2007 12:37:46 GMT Received: from [172.17.8.11] (magellan.hachette-livre.fr [172.17.8.11]) by HLVEGWIAIN.HACHETTE-LIVRE.FR; Tue, 23 Jan 2007 13:37:37 +0100 Message-ID: <45B6015E.40201@hachette-livre.fr> Date: Tue, 23 Jan 2007 13:36:46 +0100 From: Lionel Barth User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Cron job dies - process incomplete pipeline References: <45B5DD7F.3060006@hachette-livre.fr> <45B5E7AB.7070302@hachette-livre.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Jasha, It comes in the flow function, I add a message in the flow log file with cocoon.log.warn("alerteOT") and the message is really in the log file : WARN (2007-01-23) 13:30.00:520 [flow] (Unknown-URI) Unknown-thread/NativeJavaMethod: alerteOT WARN (2007-01-23) 13:35.00:477 [flow] (Unknown-URI) Unknown-thread/NativeJavaMethod: alerteOT Lionel Jasha Joachimsthal a ecrit le 23/01/07 13:16: > Hi Lionel, > > Does it come into the flow function if the cron job is executed (you can > test it with a print statement in flow)? > Maybe it matches in another sitemap than you'd expect. E.g. if the > expected pipeline is in a sitemap that depends on the domain you use and > the cron uses localhost as domain. > > Jasha > > >> -----Original Message----- >> From: Lionel Barth [mailto:lbarth@hachette-livre.fr] >> Sent: dinsdag 23 januari 2007 11:47 >> To: users@cocoon.apache.org >> Subject: Re: Cron job dies - process incomplete pipeline >> >> Jasha, >> >> Yes it works. In fact everything works, but I have an error >> message in the log file. >> >> Lionel >> >> Jasha Joachimsthal a ecrit le 23/01/07 11:36: >> >>> Hi Lionel, >>> >>> What happens if you call the URI directly from your >>> >> browser? Does it >> >>> function then? >>> >>> Regards, >>> >>> Jasha Joachimsthal >>> >>> Hippo >>> Oosteinde 11 >>> 1017 WT Amsterdam >>> The Netherlands >>> +31 (0)20 5224466 >>> >>> www.hippo.nl >>> >>> >>> >>>> -----Original Message----- >>>> From: Lionel Barth [mailto:lbarth@hachette-livre.fr] >>>> Sent: dinsdag 23 januari 2007 11:04 >>>> To: users@cocoon.apache.org >>>> Subject: Cron job dies - process incomplete pipeline >>>> >>>> Hello, >>>> >>>> I am trying to use the cron component to perform some checks on a >>>> database and send emails if needed. >>>> >>>> The cron job works, makes the checks, send the emails as >>>> >> needed but I >> >>>> have an error in the cron log file : >>>> INFO (2007-01-23) 10:55.00:019 [cron] >>>> Unknown-thread/QuartzJobExecutor: Executing cron job named >>>> >> 'alerteOT' >> >>>> ERROR (2007-01-23) 10:55.06:396 [cron] >>>> Unknown-thread/QuartzJobExecutor: Cron job name 'alerteOT' died. >>>> org.apache.avalon.framework.CascadingRuntimeException: >>>> CocoonPipelineCronJob: alerteOT, raised an exception: >>>> .. >>>> Caused by: org.apache.excalibur.source.SourceException: >>>> Exception during processing of cocoon://crfab/alerteOTLB.html >>>> ... 10 more >>>> Caused by: org.apache.cocoon.ProcessingException: Attempted to >>>> process incomplete pipeline. >>>> >>>> In the cocoon.xconf I declare a trigger : >>>> >>> >>>> target="org.apache.cocoon.components.cron.CronJob/alerteOT" >>>> concurrent-runs="true"> >>>> */5 >>>> 9-18 >>>> ? >>>> * >>>> MON-FRI >>>> >>>> >>>> and a component : >>>> >>> >> role="org.apache.cocoon.components.cron.CronJob/alerteOT" >> >>>> >>>> class="org.apache.cocoon.components.cron.CocoonPipelineCronJob" >>>> logger="cron.pipeline"> >>>> crfab/alerteOTLB.html >>>> >>>> >>>> In the sitemap : >>>> >>>> >>>> >>>> >>>> In the flowscript : >>>> function alerteOTLB() { >>>> requete=newCatal().alerteOT(); >>>> cocoon.sendStatus(204); >>>> // FOM_Cocoon.suicide(); >>>> } >>>> >>>> How should I close the pipeline ? >>>> >>>> Thanks, >>>> Lionel Barth >>>> >>>> >>>> >>>> >> --------------------------------------------------------------------- >> >>>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >>>> For additional commands, e-mail: users-help@cocoon.apache.org >>>> >>>> >>>> >>>> >>> >> --------------------------------------------------------------------- >> >>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >>> For additional commands, e-mail: users-help@cocoon.apache.org >>> >>> >>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >> For additional commands, e-mail: users-help@cocoon.apache.org >> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org