Note that there are some explanatory texts on larger screens.

plurals
  1. POThe cocoon protocol can not be used outside an environment
    text
    copied!<p>I am facing one issue with integration of cocoon pipeline and CocoonPipelineCronJob scheduler.</p> <p>My cocoon.xconf snap code as below</p> <pre><code>&lt;trigger name="pipeline-writetest" target="org.apache.cocoon.components.cron.CronJob/writetimecron" concurrent-runs="false"&gt; &lt;cron&gt;10 * * ? * *&lt;/cron&gt; &lt;/trigger&gt; &lt;/triggers&gt; &lt;component role="org.apache.cocoon.components.cron.CronJob/writetimecron" class="org.apache.cocoon.components.cron.CocoonPipelineCronJob" logger="cron.writetimecron"&gt; &lt;sleep&gt;10&lt;/sleep&gt; &lt;pipeline&gt;writetime&lt;/pipeline&gt; &lt;/component&gt; and my pipeline configure in sitemap.xmap as below &lt;map:pipeline internal-only="false"&gt; &lt;map:match pattern="writetime"&gt; .....&lt;!-- all generator,transformer and serialier code ..--&gt; &lt;/map:match&gt; &lt;/map:pipeline&gt; </code></pre> <blockquote> <p>Information Tomcat: apache-tomcat-6.0.30 Cocoon : 2.1 and my pipeline is working well if i accessing it externally ..</p> </blockquote> <p><strong>but if i am calling this pipeline from my cronjob then i am getting below error in cocoon.log</strong></p> <pre><code>INFO (2011-02-06) 12:54.10:018 [cron] (Unknown-URI) Unknown-Thread/QuartzJobExecutor: Executing cron job named 'pipeline-writetest' ERROR (2011-02-06) 12:54.10:019 [cron] (Unknown-URI) Unknown-Thread/QuartzJobExecutor: Cron job name 'pipeline-writetest' died. java.net.MalformedURLException: The cocoon protocol can not be used outside an environment. at org.apache.cocoon.components.source.impl.SitemapSource.&lt;init&gt;(SitemapSource.java:119) at org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSource(SitemapSourceFactory.java:65) at org.apache.excalibur.source.impl.SourceResolverImpl.resolveURI(SourceResolverImpl.java:208) at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558) at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:541) at org.apache.cocoon.components.cron.CocoonPipelineCronJob.execute(CocoonPipelineCronJob.java:68) 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:597) at org.apache.avalon.excalibur.component.ComponentProxyGenerator$ComponentInvocationHandler.invoke(ComponentProxyGenerator.java:143) at $Proxy6.execute(Unknown Source) at org.apache.cocoon.components.cron.QuartzJobExecutor.execute(QuartzJobExecutor.java:103) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Thread.java:662) </code></pre> <p>Please do let me know if you face same issue ago or you are knowing solution of this .</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload