velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bubna <nat...@esha.com>
Subject Re: Mixing jsp content with tiles using tiles tool
Date Wed, 01 Oct 2003 20:54:29 GMT
Payne, Matthew said:
> The filter see its.  Here is the stack trace under tomcat 5.
> Notice the VelocityViewServlet is getting hit. Looks like it would be
> helpful if VelocityViewServlet had a little better error handling.  It
> should probably print a stack trace if it can't write web content.

that's precisely what the VelocityViewServlet.error(...) method was trying to
do when this exception was thrown.  it apparently was not allowed to print to
the output stream.

>  [Exception in:/center/listThemes.vm] null java.lang.IllegalStateException
> at
> org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(Serv
> letResponseWrapperInclude.java:107) at
> org.apache.velocity.tools.view.servlet.VelocityViewServlet.error(Unknown
> Source) at
> org.apache.velocity.tools.view.servlet.VelocityViewServlet.doRequest(Unknown
> Source) at
> org.apache.velocity.tools.view.servlet.VelocityViewServlet.doGet(Unknown
...

you might try writing a simple extension of the VVS that logs errors instead
of (or in addition to) printing them to the output stream.  actually, that
might be something worth doing all the time.  i'm trying to remember if
there's some reason it doesn't do that now...

Nathan Bubna
nathan@esha.com


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message