You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Iain McNally <ia...@changingworlds.com> on 2004/01/05 18:06:57 UTC

[Help]sub-sitemaps throwing NullPointerException after edit of main sitemap!

Hi,
I've been using coocon for some time now and everything usually work out ok
but I'm having a major issue at the moment with sub-sitemaps.
I have a number of subsitemaps configured in the main sitemap, and
EVERYRTHING  works perfectly up until I edit and save the main sitemap.Once
I request the page again the error below is thrown.

org.apache.cocoon.ProcessingException: Exception in creating Transform
Handler: java.lang.NullPointerException
 at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:295)
 at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:239)
 at
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:
298)
 at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
stractEventPipeline.java:215)
 at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
tPipeline.java:278)
 at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi
ngEventPipeline.java:141)
 at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:317)
 at
org.apache.cocoon.www.test.sitemap_xmap.matchd0e123(/home/o2uk/jakarta-tomca
t-4.0.6/work/Standalone/localhost/ndm/cocoon-files/org/apache/cocoon/www/tes
t/sitemap_xmap.java:1029)
 at
org.apache.cocoon.www.test.sitemap_xmap.process(/home/o2uk/jakarta-tomcat-4.
0.6/work/Standalone/localhost/ndm/cocoon-files/org/apache/cocoon/www/test/si
temap_xmap.java:607)
 at
org.apache.cocoon.www.test.sitemap_xmap.process(/home/o2uk/jakarta-tomcat-4.
0.6/work/Standalone/localhost/ndm/cocoon-files/org/apache/cocoon/www/test/si
temap_xmap.java:525)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
 at
org.apache.cocoon.www.sitemap_xmap.matchd0e610(/home/o2uk/jakarta-tomcat-4.0
.6/work/Standalone/localhost/ndm/cocoon-files/org/apache/cocoon/www/sitemap_
xmap.java:4646)
 at
org.apache.cocoon.www.sitemap_xmap.process(/home/o2uk/jakarta-tomcat-4.0.6/w
ork/Standalone/localhost/ndm/cocoon-files/org/apache/cocoon/www/sitemap_xmap
.java:3821)
 at
org.apache.cocoon.www.sitemap_xmap.process(/home/o2uk/jakarta-tomcat-4.0.6/w
ork/Standalone/localhost/ndm/cocoon-files/org/apache/cocoon/www/sitemap_xmap
.java:3709)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
 at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
 at
com.changingworlds.nav.devicemanager.DeviceManager.service(DeviceManager.jav
a:92)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
 at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NullPointerException
 at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTemplates(XSLTProcess
orImpl.java:379)
 at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:247)
 ... 51 more
java.lang.NullPointerException
 at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTemplates(XSLTProcess
orImpl.java:379)
 at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:247)
 at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:239)
 at
org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:
298)
 at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab
stractEventPipeline.java:215)
 at
org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven
tPipeline.java:278)
 at
org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi
ngEventPipeline.java:141)
 at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:317)
 at
org.apache.cocoon.www.test.sitemap_xmap.matchd0e123(/home/o2uk/jakarta-tomca
t-4.0.6/work/Standalone/localhost/ndm/cocoon-files/org/apache/cocoon/www/tes
t/sitemap_xmap.java:1029)
 at
org.apache.cocoon.www.test.sitemap_xmap.process(/home/o2uk/jakarta-tomcat-4.
0.6/work/Standalone/localhost/ndm/cocoon-files/org/apache/cocoon/www/test/si
temap_xmap.java:607)
 at
org.apache.cocoon.www.test.sitemap_xmap.process(/home/o2uk/jakarta-tomcat-4.
0.6/work/Standalone/localhost/ndm/cocoon-files/org/apache/cocoon/www/test/si
temap_xmap.java:525)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
 at
org.apache.cocoon.www.sitemap_xmap.matchd0e610(/home/o2uk/jakarta-tomcat-4.0
.6/work/Standalone/localhost/ndm/cocoon-files/org/apache/cocoon/www/sitemap_
xmap.java:4646)
 at
org.apache.cocoon.www.sitemap_xmap.process(/home/o2uk/jakarta-tomcat-4.0.6/w
ork/Standalone/localhost/ndm/cocoon-files/org/apache/cocoon/www/sitemap_xmap
.java:3821)
 at
org.apache.cocoon.www.sitemap_xmap.process(/home/o2uk/jakarta-tomcat-4.0.6/w
ork/Standalone/localhost/ndm/cocoon-files/org/apache/cocoon/www/sitemap_xmap
.java:3709)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
 at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
 at
com.changingworlds.nav.devicemanager.DeviceManager.service(DeviceManager.jav
a:92)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
 at java.lang.Thread.run(Thread.java:536)

I'm afraid I'm not too familiar with the inner workings of cocoon and
haven't found much help on this so any help would be greatly appreciated.

Iain


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: [Help]sub-sitemaps throwing NullPointerException after edit of main sitemap!

Posted by Geoff Howard <co...@leverageweb.com>.
Iain McNally wrote:
> Thanks a lot that seems to work now.
> I now have to do some rejigging of the sub sitemaps to make thenm work again
> though.
> Is there many other considerations that need to be taken into account when
> switching from compiled to interpreted sitemaps?
> Thanks for all your help.
> Iain

Hmmm.... good question.  I don't recall but it's been a while.  As this 
has been somewhat of a long thread, you may have better luck catching 
notice of someone who knows by starting a new thread with the specific 
question about effects of changing from compiled to interpreted sitemap. 
   If you do, be sure to mention which version of Cocoon you're on and 
what specificially is broken with some detail.

Geoff

> ----- Original Message ----- 
> From: "Geoff Howard" <co...@leverageweb.com>
> To: <us...@cocoon.apache.org>
> Sent: Monday, January 05, 2004 6:37 PM
> Subject: Re: [Help]sub-sitemaps throwing NullPointerException after edit of
> main sitemap!
> 
> 
> 
>>Iain McNally wrote:
>>
>>>Hi,
>>>I've been using coocon for some time now and everything usually work out
> 
> ok
> 
>>>but I'm having a major issue at the moment with sub-sitemaps.
>>>I have a number of subsitemaps configured in the main sitemap, and
>>>EVERYRTHING  works perfectly up until I edit and save the main
> 
> sitemap.Once
> 
>>>I request the page again the error below is thrown.
>>
>>...
>>
>>
>>> at
>>>
> 
> org.apache.cocoon.www.test.sitemap_xmap.matchd0e123(/home/o2uk/jakarta-tomca
> 
> t-4.0.6/work/Standalone/localhost/ndm/cocoon-files/org/apache/cocoon/www/tes
> 
>>>t/sitemap_xmap.java:1029)
>>
>>You're using the compiled sitemap engine instead of the newer
>>treeprocessor (which does IIRC use xslt to create a .java file which is
>>then compiled - like xsp still does).  Which release (or approximate cvs
>>date) are you based on?  If you have upgraded an application built on an
>>older Cocoon version to a newer release, you may just need to change
>>your sitemap implementation in cocoon.xconf (there should be a comment
>>there about how to do that).


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: [Help]sub-sitemaps throwing NullPointerException after edit of main sitemap!

Posted by Iain McNally <ia...@changingworlds.com>.
Thanks a lot that seems to work now.
I now have to do some rejigging of the sub sitemaps to make thenm work again
though.
Is there many other considerations that need to be taken into account when
switching from compiled to interpreted sitemaps?
Thanks for all your help.
Iain
----- Original Message ----- 
From: "Geoff Howard" <co...@leverageweb.com>
To: <us...@cocoon.apache.org>
Sent: Monday, January 05, 2004 6:37 PM
Subject: Re: [Help]sub-sitemaps throwing NullPointerException after edit of
main sitemap!


> Iain McNally wrote:
> > Hi,
> > I've been using coocon for some time now and everything usually work out
ok
> > but I'm having a major issue at the moment with sub-sitemaps.
> > I have a number of subsitemaps configured in the main sitemap, and
> > EVERYRTHING  works perfectly up until I edit and save the main
sitemap.Once
> > I request the page again the error below is thrown.
>
> ...
>
> >  at
> >
org.apache.cocoon.www.test.sitemap_xmap.matchd0e123(/home/o2uk/jakarta-tomca
> >
t-4.0.6/work/Standalone/localhost/ndm/cocoon-files/org/apache/cocoon/www/tes
> > t/sitemap_xmap.java:1029)
>
> You're using the compiled sitemap engine instead of the newer
> treeprocessor (which does IIRC use xslt to create a .java file which is
> then compiled - like xsp still does).  Which release (or approximate cvs
> date) are you based on?  If you have upgraded an application built on an
> older Cocoon version to a newer release, you may just need to change
> your sitemap implementation in cocoon.xconf (there should be a comment
> there about how to do that).
>
> Geoff
>
>
> ---------------------------------------------------------------------
> 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


Re: [Help]sub-sitemaps throwing NullPointerException after edit of main sitemap!

Posted by Geoff Howard <co...@leverageweb.com>.
Iain McNally wrote:
> Hi,
> I've been using coocon for some time now and everything usually work out ok
> but I'm having a major issue at the moment with sub-sitemaps.
> I have a number of subsitemaps configured in the main sitemap, and
> EVERYRTHING  works perfectly up until I edit and save the main sitemap.Once
> I request the page again the error below is thrown.

...

>  at
> org.apache.cocoon.www.test.sitemap_xmap.matchd0e123(/home/o2uk/jakarta-tomca
> t-4.0.6/work/Standalone/localhost/ndm/cocoon-files/org/apache/cocoon/www/tes
> t/sitemap_xmap.java:1029)

You're using the compiled sitemap engine instead of the newer 
treeprocessor (which does IIRC use xslt to create a .java file which is 
then compiled - like xsp still does).  Which release (or approximate cvs 
date) are you based on?  If you have upgraded an application built on an 
older Cocoon version to a newer release, you may just need to change 
your sitemap implementation in cocoon.xconf (there should be a comment 
there about how to do that).

Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org