cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Larson" <Tdlar...@ci.canton.oh.us>
Subject RE: [BUG] : java.util.EmptyStackException on EnvironmentStack
Date Fri, 31 Jan 2003 17:31:25 GMT
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.XSLTProcessor/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.XSLTProcessor/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 



Mime
View raw message