You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Donald Ball <ba...@webslingerZ.com> on 2001/04/14 22:42:20 UTC
[c2] runtime error with latest cocoon
when running the latest c2 with my own c2 site, i get the 'Resource not
found' error message when i request a url from the sitemap. poking through
the cocoon.log file, i note that it finds the proper pipeline, but runs
into this exception:
DEBUG 52156 [cocoon ] (HttpProcessor[8080][3]): Error processing
pipeline
org.apache.cocoon.ProcessingException: Failed to execute
pipeline.:java.lang.Nul
lPointerException
at
org.apache.cocoon.components.pipeline.NonCachingStreamPipeline.proces
s(NonCachingStreamPipeline.java:149)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:726)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:629)
the relevant section of the sitemap is:
if (!internalRequest) {
boolean result = false;
try {
result = pipeline.process(environment);
} catch (Exception pipelineExceptionN102) {
getLogger().debug("Error processing pipeline",
pipelineExceptionN102);
throw pipelineExceptionN102;
}
the underlying exception seems to be:
java.lang.NullPointerException
at
org.apache.cocoon.transformation.TraxTransformer.setConsumer(TraxTran
sformer.java:306)
at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.connectPi
peline(AbstractEventPipeline.java:191)
and then i get a similar error when it reverts to the error page:
DEBUG 52174 [cocoon ] (HttpProcessor[8080][3]): Component
transformer:xslt(
emptyParam )
DEBUG 52174 [cocoon ] (HttpProcessor[8080][3]):
Source=style/error2html.xsl
DEBUG 52174 [cocoon ] (HttpProcessor[8080][3]): Component
serializer:html(
emptyParam )
DEBUG 52226 [cocoon ] (HttpProcessor[8080][3]): Error processing
pipeline
org.apache.cocoon.ProcessingException: Failed to execute
pipeline.:java.lang.Nul
lPointerException
at
org.apache.cocoon.components.pipeline.NonCachingStreamPipeline.proces
s(NonCachingStreamPipeline.java:149)
at
org.apache.cocoon.www.sitemap_xmap.error_process_1(sitemap_xmap.java:
843)
underlying exception in this case being:
java.lang.NullPointerException
at
org.apache.cocoon.transformation.TraxTransformer.setConsumer(TraxTran
sformer.java:306)
at
org.apache.cocoon.components.pipeline.AbstractEventPipeline.connectPi
peline(AbstractEventPipeline.java:205)
bummer.
- donald
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [c2] runtime error with latest cocoon
Posted by giacomo <gi...@apache.org>.
On Sat, 14 Apr 2001, Donald Ball wrote:
> when running the latest c2 with my own c2 site, i get the 'Resource not
> found' error message when i request a url from the sitemap. poking through
> the cocoon.log file, i note that it finds the proper pipeline, but runs
> into this exception:
>
> DEBUG 52156 [cocoon ] (HttpProcessor[8080][3]): Error processing
> pipeline
> org.apache.cocoon.ProcessingException: Failed to execute
> pipeline.:java.lang.Nul
> lPointerException
> at
> org.apache.cocoon.components.pipeline.NonCachingStreamPipeline.proces
> s(NonCachingStreamPipeline.java:149)
> at
> org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:726)
> at
> org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:629)
>
> the relevant section of the sitemap is:
>
> if (!internalRequest) {
> boolean result = false;
>
> try {
> result = pipeline.process(environment);
> } catch (Exception pipelineExceptionN102) {
> getLogger().debug("Error processing pipeline",
> pipelineExceptionN102);
> throw pipelineExceptionN102;
> }
>
> the underlying exception seems to be:
>
> java.lang.NullPointerException
> at
> org.apache.cocoon.transformation.TraxTransformer.setConsumer(TraxTran
> sformer.java:306)
> at
It seems that there was a getLogger() method which returned a null
logger. Fixed and commited a patch
> org.apache.cocoon.components.pipeline.AbstractEventPipeline.connectPi
> peline(AbstractEventPipeline.java:191)
>
> and then i get a similar error when it reverts to the error page:
>
> DEBUG 52174 [cocoon ] (HttpProcessor[8080][3]): Component
> transformer:xslt(
> emptyParam )
> DEBUG 52174 [cocoon ] (HttpProcessor[8080][3]):
> Source=style/error2html.xsl
> DEBUG 52174 [cocoon ] (HttpProcessor[8080][3]): Component
> serializer:html(
> emptyParam )
> DEBUG 52226 [cocoon ] (HttpProcessor[8080][3]): Error processing
> pipeline
> org.apache.cocoon.ProcessingException: Failed to execute
> pipeline.:java.lang.Nul
> lPointerException
> at
> org.apache.cocoon.components.pipeline.NonCachingStreamPipeline.proces
> s(NonCachingStreamPipeline.java:149)
> at
> org.apache.cocoon.www.sitemap_xmap.error_process_1(sitemap_xmap.java:
> 843)
>
> underlying exception in this case being:
>
> java.lang.NullPointerException
> at
> org.apache.cocoon.transformation.TraxTransformer.setConsumer(TraxTran
> sformer.java:306)
> at
> org.apache.cocoon.components.pipeline.AbstractEventPipeline.connectPi
> peline(AbstractEventPipeline.java:205)
>
> bummer.
>
> - donald
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org