cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/xslt XSLTProcessorImpl.java
Date Sat, 21 Sep 2002 04:03:51 GMT
vgritsenko    2002/09/20 21:03:51

  Modified:    .        Tag: cocoon_2_0_3_branch changes.xml
               src/java/org/apache/cocoon/components/xslt Tag:
                        cocoon_2_0_3_branch XSLTProcessorImpl.java
  Log:
  fix bug 12328: XSLTProcessorImpl doesn't set new URI resolver to cached templates
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.138.2.52 +6 -1      xml-cocoon2/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/changes.xml,v
  retrieving revision 1.138.2.51
  retrieving revision 1.138.2.52
  diff -u -r1.138.2.51 -r1.138.2.52
  --- changes.xml	21 Sep 2002 03:43:30 -0000	1.138.2.51
  +++ changes.xml	21 Sep 2002 04:03:50 -0000	1.138.2.52
  @@ -39,6 +39,11 @@
    </devs>
   
    <release version="@version@" date="@date@">
  +  <action dev="VG" type="fix" fixes-bug="12328">
  +    Set URI resolver for XSLT handler every time time templates are used,
  +    because XSLT templates might reference disposed instance of XSLT processor.
  +    Fixes some NPEs in XSLT processor when templates cache is used.
  +  </action>
     <action dev="VG" type="fix">
       Fix sitemap reloading bug: When parent sitemap is modified, it is
       recompiled and reloaded. All sub-sitemaps of this sitemap also has
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.18.2.6  +2 -1      xml-cocoon2/src/java/org/apache/cocoon/components/xslt/XSLTProcessorImpl.java
  
  Index: XSLTProcessorImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/xslt/XSLTProcessorImpl.java,v
  retrieving revision 1.18.2.5
  retrieving revision 1.18.2.6
  diff -u -r1.18.2.5 -r1.18.2.6
  --- XSLTProcessorImpl.java	15 Aug 2002 15:53:18 -0000	1.18.2.5
  +++ XSLTProcessorImpl.java	21 Sep 2002 04:03:51 -0000	1.18.2.6
  @@ -288,6 +288,7 @@
   
               TransformerHandler handler = getTransformerFactory().newTransformerHandler(templates);
               handler.getTransformer().setErrorListener(new TraxErrorHandler(getLogger()));
  +            handler.getTransformer().setURIResolver(this);
               return handler;
           } catch (ProcessingException e) {
               throw e;
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message