You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Leszek Gawron <ou...@kompuart.pl> on 2002/09/05 19:54:19 UTC

Re: very strange error when using tomcat + cocoon + ajp13 + apache

On Thu, Sep 05, 2002 at 07:47:17PM +0200, Leszek Gawron wrote:
> I have a very strange problem and do not quite know what is the cause so I
> post here as I think this is the most responsive group I've ever seen. So:
> 
> 1. I have a simple xsp page that collects data from request body, parses it to
> DOM structure and uses it later:
> <?xml version="1.0" encoding="ISO-8859-2"?>
> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:esql="http://apache.org/cocoon/SQL/v2" xmlns:xsp-request="http://apache.org/xsp/request/2.0">
> 	<xsp:structure>
> 		<xsp:include>java.net.*</xsp:include>
> 		<xsp:include>org.w3c.dom.*</xsp:include>
> 		<xsp:include>org.apache.cocoon.xml.dom.DOMStreamer</xsp:include>
> 		<xsp:include>org.apache.cocoon.xml.dom.DOMBuilder</xsp:include>
> 		<xsp:include>org.apache.cocoon.components.parser.Parser</xsp:include>
> 		<xsp:include>org.apache.cocoon.util.PostInputStream</xsp:include>
> 		<xsp:include>org.apache.cocoon.environment.http.HttpEnvironment</xsp:include>
> 		<xsp:include>javax.servlet.http.HttpServletRequest</xsp:include>
> 		<xsp:include>org.apache.xpath.XPathAPI</xsp:include>
> 		<xsp:include>javax.xml.transform.TransformerException</xsp:include>
> 	</xsp:structure>
> 	<xsp:logic>
> 	Document document = null;
> 	long maxNumerNr;
> 	String odbiorca;
> 
> 	public Document GetInputStreamDocument() throws IOException {
> 		int contentLength = request.getContentLength();
> 		if ( contentLength >= 0 ) {
I know that this should be > not >= but I wanted to generate an exception on
purpose and catch it.
	ouzo
-- 
            __
         | /  \ |        Leszek Gawron            //  \\
        \_\\  //_/      ouzo@vip.net.pl          _\\()//_
         .'/()\'.     Phone: +48(600)341118     / //  \\ \
          \\  //  recursive: adj; see recursive  | \__/ |


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>