Jason,

The problem here is that it looks like something has closed and then disabled the
output stream before your filter has finished.     I'll at least fix the NPE
so it is a little more polite about this.

But we then need to work out what is happening.   I just removed the sitemesh
stuff I had from your last problem, so I can't look at this quickly.

The key lines in your trace are:

 >         at com.opensymphony.module.sitemesh.filter.PageFilter.applyDecorator(Unknown
 > Source)
 >         at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(Unknown
 > Source)

I need to know if this call was made before or the downstream filters.
But I don't have the source or line numbers from your stack.

It would be good to know what else has been done to this request before it
got here.  Can you do your test again and then use the JMX interface to
turn on verbose (999999) debugging for jetty.   If you can send me the resulting
debug trace that would be good.

regards

PS.  I'm working on a new implementation of filters that should be a little more
accepting of things such as SiteMesh that are pushing the limits of them.  It should
be available in a few weeks.




Jason Dillon wrote:
> I am running into an exception when trying to display the thread page from the 
> forums.  I do not see the decorations, but I do see the main content, and I 
> have this exception in the logs:
> 
> <snip>
> 01:50:13,851 WARN  [Jetty] WARNING: GET 
> /forums/thread.jsp?forum=62&thread=16341 HTTP/1.1
> java.lang.NullPointerException
>         at 
> org.mortbay.http.ChunkableOutputStream.write(ChunkableOutputStream.java:381)
>         at org.mortbay.jetty.servlet.ServletOut.write(ServletOut.java:42)
>         at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:225)
>         at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:239)
>         at java.io.BufferedWriter.flush(BufferedWriter.java:228)
>         at java.io.PrintWriter.flush(PrintWriter.java:115)
>         at 
> org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:207)
>         at java.io.PrintWriter.flush(PrintWriter.java:115)
>         at 
> org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:207)
>         at 
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:808)
>         at org.apache.jsp.navigation$jsp._jspService(navigation$jsp.java:88)
>         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
>         at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at 
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:371)
>         at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:255)
>         at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:171)
>         at 
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820)
>         at org.apache.jsp.default$jsp._jspService(default$jsp.java:755)
>         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
>         at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at 
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:371)
>         at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:255)
>         at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:171)
>         at 
> com.opensymphony.module.sitemesh.filter.PageFilter.applyDecorator(Unknown 
> Source)
>         at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(Unknown 
> Source)
>         at 
> org.mortbay.jetty.servlet.FilterHandler$Chain.doFilter(FilterHandler.java:297)
>         at 
> org.mortbay.jetty.servlet.FilterHandler.handle(FilterHandler.java:228)
>         at org.mortbay.http.HttpContext.handle(HttpContext.java:1387)
>         at org.mortbay.http.HttpContext.handle(HttpContext.java:1326)
>         at org.mortbay.http.HttpServer.service(HttpServer.java:757)
>         at org.jboss.jetty.Jetty.service(Jetty.java:527)
>         at org.mortbay.http.HttpConnection.service(HttpConnection.java:742)
>         at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:915)
>         at org.mortbay.http.HttpConnection.handle(HttpConnection.java:757)
>         at 
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:151)
>         at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
>         at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715)
>         at java.lang.Thread.run(Thread.java:479)
> </snip>
> 
> This is an exception from HEAD, though I get the same behavior from Branch_3_0 
> as well.
> 
> What is going on here?
> 
> --jason
> 
> ------------------------ Yahoo! Groups Sponsor ---------------------~-->
> Tied to your PC? Cut Loose and
> Stay connected with Yahoo! Mobile
> http://us.click.yahoo.com/QBCcSD/o1CEAA/sXBHAA/CefplB/TM
> ---------------------------------------------------------------------~->
> 
> For the latest information about Jetty, please see http://jetty.mortbay.org
> 
> To alter your subscription to this list goto 
>http://groups.yahoo.com/group/jetty-discuss 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 


-- 
Greg Wilkins<[EMAIL PROTECTED]>          GB  Phone: +44-(0)7092063462
Mort Bay Consulting Australia and UK.    Mbl Phone: +61-(0)4 17786631
http://www.mortbay.com                   AU  Phone: +61-(0)2 98107029


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to