Hi,

 I finally detected that the error message
> ERROR   (2004-04-08) 18:42.00:113   [cron.test]
Unknown-thread/TestCronJob:
> error in execution of TestCronJob
> org.apache.cocoon.ProcessingException: Failed to load sitemap from
> file:/C:/Data/test/jakarta-tomcat-5.0.19/public_html/sitemap.xmap:
> java.lang.NullPointerException

happens when the Tomcat/Cocoon server is restarted but no requests are
performed (so no pages are requeste by a client (browser)).
As soon as 1 page has been requested this error disappears when the Cron Job
is executed.
Apparently the sitemap is not loaded in memory ? (or something similar so a
java.lang.NullPointerException happens).

Can this be bugfixed ?

Regards,

Stefan

----- Original Message ----- 
From: "Stefan Geelen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 08, 2004 7:13 PM
Subject: Can Cron Job Scheduler call .xsp page (2) ?


> Hi,
>
> I finally discovered in the testcronjob.java that appareantly you can add
a
> third parameter to the <component> tag (in the cocoon.xconf file)  :
>
>   <!-- sample definition of cron job -->
>   <component class="org.apache.cocoon.components.cron.TestCronJob"
> logger="cron.test" role="org.apache.cocoon.components.cron.CronJob/test">
>     <msg>I'm here</msg>
>     <sleep>0</sleep>
>     <pipeline>testcron</pipeline>
>   </component>
>
> So I presume that the <pipeline> paramters should point to a pipeline in
the
> 'root' sitemap.xmap, so I added (in the 'root' sitemap.xmap):
>
>    <map:match pattern="testcron">
>      <map:generate type="serverpages" src="testsite/xsp/testcron.xsp"/>
>     </map:match>
>
> Starting Tomcat & Cocoon generates following error when the crontask is
> executed:
>
> ERROR   (2004-04-08) 18:42.00:113   [cron.test]
Unknown-thread/TestCronJob:
> error in execution of TestCronJob
> org.apache.cocoon.ProcessingException: Failed to load sitemap from
> file:/C:/Data/test/jakarta-tomcat-5.0.19/public_html/sitemap.xmap:
> java.lang.NullPointerException
>
> So it can not load the 'root' sitemap.xmap (although Cocoon reads this
> sitemap when started - so this sitemap does not contain errors).
>
> Appareantly this error is generated at following line in the
> TestCronJob.java
>
>         InputStream is = null;
>         try {
>             is = process(pipeline);
>         } catch (Exception e) {
>             getLogger().error("in execution of TestCronJob", e);
>         }
>
> Anyone any idea ?
>
> Thx
>
> Stefan
>
>
> ----- Original Message ----- 
> From: "Stefan Geelen" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 08, 2004 12:20 PM
> Subject: Can Cron Job Scheduler call .xsp page ?
>
>
> > Hi,
> >
> > looking at the documentation regarding the Cron Job Scheduler I was
> > disappointed not seeing an example of how the cronjob can/could call a
> xsp
> > page to execute.
> >
> > So the question is : Can the scheduler call an xsp page or is it limited
> to
> > a java class.  If it can, does some one has an example of this ?
> >
> > Regards,
> >
> > Stefan
> >
> > _________________________________________________________________
> > Vraag van de week: Welk soort project zou jij financieel ondersteunen?
> > http://www.msn.be/microsoft/potential/default.asp
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to