cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: [BUG] : java.util.EmptyStackException on EnvironmentStack
Date Mon, 03 Feb 2003 11:55:55 GMT
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:Tdlarson@ci.canton.oh.us]
> Sent: Friday, January 31, 2003 6:31 PM
> To: cocoon-dev@xml.apache.org
> 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
> 
> >>> cziegeler@s-und-n.de 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: 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


Mime
View raw message