When I turn off gzip compression with

configuration.add(SymbolConstants.GZIP_COMPRESSION_ENABLED, "false");


my page generates a java.lang.IllegalStateException
Sanity check - neither a stream response nor a redirect response was
generated for this action request.

Can we at least get tapestry-developers to give us a sideways glance?
Thanks!

AppModule:
    public void contributeHttpServletRequestHandler(
        OrderedConfiguration<HttpServletRequestFilter> configuration) {

        configuration.add("MyFilter", new MyFilter(), "after:GZIP");
    }


public class MyFilter implements HttpServletRequestFilter {

    private final Log logger = LogFactory.getLog(MyFilter.class);


    public MyFilter() {


    }

    @Override
    public boolean service(HttpServletRequest request, HttpServletResponse
response,
            HttpServletRequestHandler handler) throws IOException {

        @SuppressWarnings("unchecked")
        Enumeration<String> e = (Enumeration<String>)
request.getHeaderNames();

        while (e.hasMoreElements()) {

            String name = e.nextElement();
            logger.error(name + " " + request.getHeader(name));
        }

        return handler.service(request, response);

    }
}

MyFilter:33] - Host localhost:8888
MyFilter:33] - User-Agent Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:16.0)
Gecko/20100101 Firefox/16.0
MyFilter:33] - Accept
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
MyFilter:33] - Accept-Language en-US,en;q=0.5
MyFilter:33] - Accept-Encoding gzip, deflate
MyFilter:33] - Connection keep-alive
MyFilter:33] - Cookie JSESSIONID=ey6yjar4lm3
MyFilter:33] - Cache-Control max-age=0







On Thu, Oct 11, 2012 at 10:52 AM, Lance Java <lance.j...@googlemail.com>wrote:

> I'm assuming that this is a problem in GAE but if you want to check, you
> could contribute a HttpServletRequestHandler to print out the response
> headers as set by tapestry. Contribute a filter with ordering "after:GZIP".
>
> NB. You can disable compression by setting
> SymbolConstants.GZIP_COMPRESSION_ENABLED to false.
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Tapestry-Problem-on-Google-App-Engine-in-Development-tp5716763p5716796.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to