cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amir Rosen" <a...@cti2.com>
Subject RE: BUG: TraxTransformer uses cached URI resolver
Date Mon, 02 Sep 2002 12:31:37 GMT
Is there any commiter who want to help us ????

Thanks,
amir

> -----Original Message-----
> From: Sven Kitschke [mailto:kicke@web.de]
> Sent: Thursday, August 29, 2002 10:34 AM
> To: cocoon-dev@xml.apache.org
> Subject: Re: BUG: TraxTransformer uses cached URI resolver
> 
> 
> Hi,
> 
> Amir Rosen wrote:
> 
> > Hi,
> > 
> > There's a bug in TraxTransformer when using Saxon with caching.
> > 
> 
> <snip />
> 
> > 
> > Anyway, our solution is simple, we should set the 
> URIResolver we want to use explicitly:
> > 
> > in TransformerHandler#getTransformerHandler(Source, 
> XMLFilter) there's the code:
> > 
> > TransformerHandler handler = 
> getTransformerFactory().newTransformerHandler(templates);
> > handler.getTransformer().setErrorListener(new 
> TraxErrorHandler(getLogger()));
> > return handler;
> > 
> > before returning the handler we should add the line:
> > 
> > handler.getTransformer().setURIResolver(this);
> 
> I can confirm that applying this patch helps against some NPEs!
> See below. Thank you!
> 
> Can someone please apply this patch to cvs?
> 
> > 
> > 
> > A comment has been sent to JSR 63 about this issue.
> > 
> > BTW:
> > I'm using:
> > - cocoon 2.0.3-dev
> > - saxon 6.5.2
> > 
> 
> Me too.
> 
> > 
> > 
> > Thanks,
> 
> Thank you very much.
> 
> > 
> > Amir Rosen
> > CTI Squared
> > amir@cti2.com
> > +972-9-9605200 (258)
> >  
> 
> ---------------------------------------------------
> org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
> java.lang.NullPointerException
> 	at 
> org.apache.cocoon.components.pipeline.CachingEventPipeline.pro
> cess(CachingEventPipeline.java:223)
> 	at 
> org.apache.cocoon.components.source.SitemapSource.toSAX(Sitema
> pSource.java:353)
> 	at 
> org.apache.cocoon.generation.FileGenerator.generate(FileGenera
> tor.java:143)
> ...
> java.lang.NullPointerException
> 	at 
> org.apache.cocoon.components.xslt.XSLTProcessorImpl.resolve(XS
LTProcessorImpl.java:481)
> 	at com.icl.saxon.functions.Document.makeDoc(Document.java:201)
> 	at 
> com.icl.saxon.functions.Document.getDocuments(Document.java:134)
> 	at com.icl.saxon.functions.Document.evaluate(Document.java:70)
> ...
> ----------------------------------------------------
> 

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


Mime
View raw message