Resource.java uses getOutputStream() to write binary data into the response stream. BufferedWebResponse.java:close() uses getWriter() to write data into the response stream. You can't open the response as both a outputstream and text writer at the same time.

For some reason, if ApplicationSettings.setRenderStrategy(settings.ONE_PASS_RENDER) is used we somehow end up with a BufferedWebResponse and this is exactly what ends up happening. You end up with tons of these exceptions:

02:36:42,390 ERROR [Webpage]:260 - Servlet.service() for servlet Webpage threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:596) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:186)
        at wicket.protocol.http.WebResponse.write(WebResponse.java:229)
at wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:73)
        at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:221)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

        Can someone please take a look at this?

Thanks,
Gili
--
http://www.desktopbeautifier.com/


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to