You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by arnaud DANEELS <ad...@jouve.fr> on 2004/07/07 15:57:40 UTC
cronjob and cocoonpipelinecronjob
Hi,
I need some help with cocoon-2.2.0-dev with cronjob and
CocoonPipelineCronJob functionnality
Samples of cron (testcronjob) don't work in this version of cocoon. (he
did in the 2.1.5):
INFO (2004-07-07) 15:55.06:024 [cron] Unknown-thread/QuartzJobExecutor:
Scheduling cron job named 'test'
INFO (2004-07-07) 15:55.06:039 [cron.test] Unknown-thread/TestCronJob:
CronJob test launched at Wed Jul 07 15:55:06 CEST 2004 with message 'I'm
here' and sleep timeout of 23000ms
ERROR (2004-07-07) 15:55.06:039 [cron] Unknown-thread/QuartzJobExecutor:
Cron job name 'test died.
org.apache.avalon.framework.CascadingRuntimeException: CronJob test raised
an exception
at
org.apache.cocoon.components.cron.TestCronJob.execute(TestCronJob.java:100)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.avalon.excalibur.component.ComponentProxyGenerator$ComponentInvoc
ationHandler.invoke(ComponentProxyGenerator.java:143)
at $Proxy14.execute(Unknown Source)
at
org.apache.cocoon.components.cron.QuartzJobExecutor.execute(QuartzJobExecuto
r.java:109)
at org.quartz.core.JobRunShell.run(JobRunShell.java:188)
at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.UnsupportedOperationException
at
org.apache.cocoon.environment.background.BackgroundEnvironment$NullProcessor
.getContext(BackgroundEnvironment.java:164)
at
org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSo
urceResolver.java:55)
at
org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(CocoonSo
urceResolver.java:70)
at
org.apache.cocoon.components.cron.TestCronJob.execute(TestCronJob.java:83)
... 10 more
In the 2.2.0 dev, libraries are updated to 1.4 for quartz.jar and 1.3.4
for util-current and cocoonpipelinecronjob is
added to cron block.
Have you any idea about this problem and test this functionnality
Thank you for your help.
Arnaud
RE: cronjob and cocoonpipelinecronjob
Posted by arnaud DANEELS <ad...@jouve.fr>.
Hello,
Thanks for your answer.
Finaly, I compile cron blocks version cocoon 2.1.5 with
Cocoonpipelinecronjob.java in the source directory: it works fine...
(trigger and component) I see this in the cron.log. the pipeline works fine
as well in standalone calls.
But I don't understand why this block don't work in cocoon-2.2.0 block cvs.
A lot of things have changed in the cocoon source: modification of
QuartzJobExecutor.java and BackgroundEnvironment.java by C.
Have you further details about this modifications ?
Regards arnaud
-----Message d'origine-----
De : Jeremy Quinn [mailto:jeremy@media.demon.co.uk]
Envoyé : jeudi 8 juillet 2004 10:43
À : dev@cocoon.apache.org
Objet : Re: cronjob and cocoonpipelinecronjob
Could you show us your configuration?
How have you configured the CocoonPipelineCronJob and it's trigger.
Have you tested the pipeline it calls, independently?
regards Jeremy
On 7 Jul 2004, at 14:57, arnaud DANEELS wrote:
> Hi,
>
>
>
> I need some help with cocoon-2.2.0-dev with cronjob and
> CocoonPipelineCronJob functionnality
>
>
>
> Samples of cron (testcronjob) dont work in this version of
> cocoon. (he did in the 2.1.5):
>
>
>
> INFO (2004-07-07) 15:55.06:024 [cron]
> Unknown-thread/QuartzJobExecutor: Scheduling cron job named 'test'
>
> INFO (2004-07-07) 15:55.06:039 [cron.test]
> Unknown-thread/TestCronJob: CronJob test launched at Wed Jul 07
> 15:55:06 CEST 2004 with message 'I'm here' and sleep timeout of
> 23000ms
>
> ERROR (2004-07-07) 15:55.06:039 [cron]
> Unknown-thread/QuartzJobExecutor: Cron job name 'test died.
>
> org.apache.avalon.framework.CascadingRuntimeException: CronJob test
> raised an exception
>
> at
> org.apache.cocoon.components.cron.TestCronJob.execute(TestCronJob.java:
> 100)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> va:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> rImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:324)
>
> at
> org.apache.avalon.excalibur.component.ComponentProxyGenerator$Component
> InvocationHandler.invoke(ComponentProxyGenerator.java:143)
>
> at $Proxy14.execute(Unknown Source)
>
> at
> org.apache.cocoon.components.cron.QuartzJobExecutor.execute(QuartzJobEx
> ecutor.java:109)
>
> at org.quartz.core.JobRunShell.run(JobRunShell.java:188)
>
> at
> EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
> Source)
>
> at java.lang.Thread.run(Thread.java:534)
>
> Caused by: java.lang.UnsupportedOperationException
>
> at
> org.apache.cocoon.environment.background.BackgroundEnvironment$NullProc
> essor.getContext(BackgroundEnvironment.java:164)
>
> at
> org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(Coc
> oonSourceResolver.java:55)
>
> at
> org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(Coc
> oonSourceResolver.java:70)
>
> at
> org.apache.cocoon.components.cron.TestCronJob.execute(TestCronJob.java:
> 83)
>
> ... 10 more
>
>
>
> In the 2.2.0 dev, libraries are updated to 1.4 for quartz.jar and
> 1.3.4 for util-current and cocoonpipelinecronjob is
>
> added to cron block.
>
>
>
>
>
> Have you any idea about this problem and test this functionnality
>
>
>
> Thank you for your help.
>
>
>
> Arnaud
>
--------------------------------------------------------
If email from this address is not signed
IT IS NOT FROM ME
Always check the label, folks !!!!!
--------------------------------------------------------
Re: cronjob and cocoonpipelinecronjob
Posted by Jeremy Quinn <je...@media.demon.co.uk>.
Could you show us your configuration?
How have you configured the CocoonPipelineCronJob and it's trigger.
Have you tested the pipeline it calls, independently?
regards Jeremy
On 7 Jul 2004, at 14:57, arnaud DANEELS wrote:
> Hi,
>
>
>
> I need some help with cocoon-2.2.0-dev with cronjob and
> CocoonPipelineCronJob functionnality
>
>
>
> Samples of cron (testcronjob) don’t work in this version of
> cocoon. (he did in the 2.1.5):
>
>
>
> INFO (2004-07-07) 15:55.06:024 [cron]
> Unknown-thread/QuartzJobExecutor: Scheduling cron job named 'test'
>
> INFO (2004-07-07) 15:55.06:039 [cron.test]
> Unknown-thread/TestCronJob: CronJob test launched at Wed Jul 07
> 15:55:06 CEST 2004 with message 'I'm here' and sleep timeout of
> 23000ms
>
> ERROR (2004-07-07) 15:55.06:039 [cron]
> Unknown-thread/QuartzJobExecutor: Cron job name 'test died.
>
> org.apache.avalon.framework.CascadingRuntimeException: CronJob test
> raised an exception
>
> at
> org.apache.cocoon.components.cron.TestCronJob.execute(TestCronJob.java:
> 100)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> va:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> rImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:324)
>
> at
> org.apache.avalon.excalibur.component.ComponentProxyGenerator$Component
> InvocationHandler.invoke(ComponentProxyGenerator.java:143)
>
> at $Proxy14.execute(Unknown Source)
>
> at
> org.apache.cocoon.components.cron.QuartzJobExecutor.execute(QuartzJobEx
> ecutor.java:109)
>
> at org.quartz.core.JobRunShell.run(JobRunShell.java:188)
>
> at
> EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
> Source)
>
> at java.lang.Thread.run(Thread.java:534)
>
> Caused by: java.lang.UnsupportedOperationException
>
> at
> org.apache.cocoon.environment.background.BackgroundEnvironment$NullProc
> essor.getContext(BackgroundEnvironment.java:164)
>
> at
> org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(Coc
> oonSourceResolver.java:55)
>
> at
> org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(Coc
> oonSourceResolver.java:70)
>
> at
> org.apache.cocoon.components.cron.TestCronJob.execute(TestCronJob.java:
> 83)
>
> ... 10 more
>
>
>
> In the 2.2.0 dev, libraries are updated to 1.4 for quartz.jar and
> 1.3.4 for util-current and cocoonpipelinecronjob is
>
> added to cron block.
>
>
>
>
>
> Have you any idea about this problem and test this functionnality
>
>
>
> Thank you for your help.
>
>
>
> Arnaud
>
--------------------------------------------------------
If email from this address is not signed
IT IS NOT FROM ME
Always check the label, folks !!!!!
--------------------------------------------------------