tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hunter Hillegas <hhille...@jacobstern.com>
Subject RE: Bug in Tomcat? Response already committed?
Date Fri, 11 Aug 2000 15:36:16 GMT
Thanks for the tip... Unfortunately all of my included file URLs are
correct.


Hunter Hillegas, MCP
Web Engineer / System Administrator - Jacob Stern & Sons, Inc.
hhillegas@jacobstern.com
805-565-1411 PH * 805-565-8684 FAX

 -----Original Message-----
From: 	Kaneda K [mailto:zouylll@yahoo.com] 
Sent:	Friday, August 11, 2000 8:36 AM
To:	tomcat-user@jakarta.apache.org
Subject:	RE: Bug in Tomcat? Response already committed?

  sorry for the previous wrong post.
 I have notice this error when I had and inclued
statement with an incorrect URL
(hope tha will help)
a++
--- Hunter Hillegas <hhillegas@jacobstern.com> wrote:
> I added a simple error page that is supposed to
> print the exception but the
> page isn't getting called (it just sits on the other
> page with the Error 500
> half-way down).
> 
> Any other suggestions? I do do an include after the
> offending code, but
> that's done in Sun's examples and on other pages of
> mine that work so that
> can't be illegal (besides the fact it would remove a
> lot of the power of
> JSP)...
> 
> 
> Hunter Hillegas, MCP
> Web Engineer / System Administrator - Jacob Stern &
> Sons, Inc.
> hhillegas@jacobstern.com
> 805-565-1411 PH * 805-565-8684 FAX
> 
>  -----Original Message-----
> From: 	ALEXANDROS  KOTSIRAS
> [mailto:ALEXANDROS_K@prodigy.net] 
> Sent:	Thursday, August 10, 2000 10:22 PM
> To:	tomcat-user@jakarta.apache.org
> Subject:	Re: Bug in Tomcat? Response already
> committed?
> 
> I had a hard time with this error several times.
> Have a look at the mailing list archives there
> should be plenty of
> responses.
> 
> If i remember well it has to do with lack of
> errorPage="error.jsp" attribute
> in the <% page declaration.
> Try to add an error page.
> There is an error in either your bean or the .jsp
> page but the message is
> missleading...
> 
> In any case it has nothing to do with obtaining an
> outputstream before you
> forward as it looks like in the beginning..
> 
> ----- Original Message -----
> From: Hunter Hillegas <hhillegas@jacobstern.com>
> To: <tomcat-user@jakarta.apache.org>
> Sent: Thursday, August 10, 2000 6:03 PM
> Subject: Bug in Tomcat? Response already committed?
> 
> 
> > I tried to search the bug database for Jakarta
> stuff - but it's down...
> >
> > Any way, I'm trying to figure out if I found a bug
> or what...
> >
> > I'm using Tomcat 3.1 (release) on JDK1.3 (beta) on
> Linux 2.2 (Debian).
> >
> > I have a JSP page that creates instances of a
> class called shoppingCart.
> >
> > The shoppingCart class contains a vector that
> stores objects of another
> > class called cartItem.
> >
> > There is a method in shoppingCart that returns
> cartItem by vector index
> > number. The problem comes when I call this method:
> >
> > I get this error:
> >
> > Error: 500
> > Location: /e_commerce/index.jsp
> > Internal Servlet Error:
> > java.lang.IllegalStateException: Response has
> already been committed
> > at
> >
>
org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletRespon
> > seFacade.java:157)
> > at
> >
>
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:299)
> > at
>
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:377)
> > at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
>
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
> > at
> >
>
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> > at
> >
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> > (Ajp12ConnectionHandler.java:156)
> > at
> >
>
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
> > )
> > at java.lang.Thread.run(Thread.java:484)
> >
> >
> > I tried substituting the return with a pre-defined
> cartItem instead of
> > looking it up in the vector to make sure it wasn't
> failing on the vector
> > lookup... The HTML in the page before the method
> call comes to the browser
> > just fine but the rest of the HTML, including a
> JSP include of a footer
> > page, doesn't come across.
> >
> > I've had very little success with the tomcat-users
> mailing list so I
> thought
> > I'd ask some of the developers. Any help is
> appreciated!
> >
> >
> > Hunter Hillegas, MCP
> > Web Engineer / System Administrator - Jacob Stern
> & Sons, Inc.
> > hhillegas@jacobstern.com
> > 805-565-1411 PH * 805-565-8684 FAX
> >
> >


__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/

Mime
View raw message