My test setup that produces the exception: the released Cocoon-2.0.4 Sun JDK 1.4.1_01 Tomcat-3.3.1 Saxon-7.3.1 FOP 0.20.5rc
I am going to test it with the snapshot of Cocoon-2.0.5dev that Vadim posted: http://www.apache.org/~vgritsenko/xml-cocoon-205-dev-20030201.tar.gz I will post my results when I have them. Tim >>> [EMAIL PROTECTED] 02/03/03 06:55AM >>> Hi Tim, I just tried your test case with latest HEAD of cocoon (2.1-dev), Saxon-7.3.1, JDK 1.4.1 and W2K - and it worked :( I exactly followed your description - what environment do you use? Carsten > -----Original Message----- > From: Timothy Larson [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 31, 2003 6:31 PM > To: [EMAIL PROTECTED] > Subject: RE: [BUG] : java.util.EmptyStackException on EnvironmentStack > > > Ok, attached are sample files that generates the > java.util.EmptyStackException. > > I am using Saxon-7.3.1 with everything working, except that if > bad data is sent > to the "fo2pdf" serializer causing a fatal exception, then > something happens that > destabilizes cocoon, causing some subsequent requests for other > files to fail. > The problem does not occur if the default transformer in the > attached sitemap.xmap > and empty.xmap is changed to Xalan. > > Steps to demonstrate the exception: > Copy the attached files into a fresh directory > Add a <mount/> tag to one of your sitemaps pointing at sitemap.xmap > Copy the jar file for Saxon-7.3.1 into WEB-INF/lib > Edit your cocoon.xconf and root sitemap.xmap to let Cocoon know > about Saxon > (See the excerpts from each file below) > Restart Cocoon so it will see the new jar file > In a browser (the sequence is very important): > Request the url "where-you-mounted-the-files/empty.pdf" > Request the url "where-you-mounted-the-files/good.html" > Request the url "where-you-mounted-the-files/empty.pdf" > Hit reload > Request the url "where-you-mounted-the-files/good.html" > You should now see the java.util.EmptyStackException error page. > > Excerpt from cocoon.xconf: > ===== > <component > role="org.apache.cocoon.components.xslt.XSLTProcessor/Saxon" > class="org.apache.cocoon.components.xslt.XSLTProcessorImpl" > logger="core.xslt-processor-Saxon"> > <parameter name="use-store" value="true"/> > <parameter name="incremental-processing" value="false"/> > <parameter name="transformer-factory" > value="net.sf.saxon.TransformerFactoryImpl"/> > </component> > > <component > role="org.apache.cocoon.components.xslt.XSLTProcessor/Xalan" > class="org.apache.cocoon.components.xslt.XSLTProcessorImpl" > logger="core.xslt-processor-Xalan"> > <parameter name="use-store" value="true"/> > <parameter name="incremental-processing" value="false"/> > <parameter name="transformer-factory" > value="org.apache.xalan.processor.TransformerFactoryImpl"/> > </component> > ===== > > Excerpt from root sitemap.xmap: > ===== > <map:transformers default="xslt-Saxon"> > > <map:transformer name="xslt-Saxon" > src="org.apache.cocoon.transformation.TraxTransformer" > logger="sitemap.transformer.xslt-processor-Saxon" > pool-max="32" pool-min="8" pool-grow="2"> > <use-request-parameters>false</use-request-parameters> > <use-browser-capabilities-db>false</use-browser-capabilities-db> > <use-deli>false</use-deli> > > <xslt-processor-role>org.apache.cocoon.components.xslt.XSLTProcess > or/Saxon</xslt-processor-role> > </map:transformer> > > <map:transformer name="xslt-Xalan" > src="org.apache.cocoon.transformation.TraxTransformer" > logger="sitemap.transformer.xslt-processor-Xalan" > pool-grow="2" pool-max="32" pool-min="8"> > <use-request-parameters>false</use-request-parameters> > <use-browser-capabilities-db>false</use-browser-capabilities-db> > <use-deli>false</use-deli> > > <xslt-processor-role>org.apache.cocoon.components.xslt.XSLTProcess > or/Xalan</xslt-processor-role> > </map:transformer> > ===== > > Tim > > >>> [EMAIL PROTECTED] 01/31/03 09:23AM >>> > > Timothy Larson wrote: > > > > My current setup is not simple. > > I will try to make a simple test and get back to you... > > > Great! (Because, I never got this exception). > > Thanks! > Carsten > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]