Please get back on IRC (your connection just timed out) and we will discuss this quicker.

Gili

Johan Compagner wrote:
you always get a BufferedWebResponse by default. (See ApplicationSettings.getBufferResponse())

What i don't get is how it is possible that the outputstream is already called on it
and you have some string output in youre webresponse.

So somehow you have binary data and string data?

johan





On 12/5/05, *Gili* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:


            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
    <http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click>
    _______________________________________________
    Wicket-user mailing list
    [email protected]
    <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/wicket-user



--
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to