You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ovidiu Hurducas <ov...@gmail.com> on 2009/09/24 01:02:30 UTC

Not in GZIP format problem

I've recently migrated an Tapestry 5.0.18 application to Tapestry version
5.1.0.5.
I have this form that isn't working anymore

<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
    <t:form>
        <t:upload t:id="file"/>
        <t:submit />
    </t:form>
</html>

I'm using Apache HttpClient 3.1 to POST a multipart form (file upload).
And the stacktrace follows:

[ERROR] TapestryModule.RequestExceptionHandler Processing of request failed
with uncaught exception: java.io.IOException: Not in GZIP format
org.apache.tapestry5.runtime.ComponentEventException: java.io.IOException:
Not in GZIP format [at classpath:com/xxx/server/web/pages/Data.tml, line 2]
    at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1098)
    at
org.apache.tapestry5.internal.services.ComponentEventRequestHandlerImpl.handle(ComponentEventRequestHandlerImpl.java:75)
    at
org.apache.tapestry5.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:42)
    at
$ComponentEventRequestHandler_123e8fdf819.handle($ComponentEventRequestHandler_123e8fdf819.java)
    at
org.apache.tapestry5.internal.services.AjaxFilter.handle(AjaxFilter.java:42)
   ................
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
    at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
    at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException:
java.io.IOException: Not in GZIP format
    at
org.apache.tapestry5.corelib.components.Form.executeStoredActions(Form.java:495)
    at
org.apache.tapestry5.corelib.components.Form._$advised$onAction(Form.java:378)
 ............
    at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:910)
    at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1081)
    ... 52 more
Caused by: java.lang.RuntimeException: java.io.IOException: Not in GZIP
format
    at
org.apache.tapestry5.internal.services.ClientDataEncoderImpl.decodeClientData(ClientDataEncoderImpl.java:62)
    at
$ClientDataEncoder_123e8fdf7e9.decodeClientData($ClientDataEncoder_123e8fdf7e9.java)
    at
org.apache.tapestry5.corelib.components.Form.executeStoredActions(Form.java:467)
    ... 62 more
Caused by: java.io.IOException: Not in GZIP format
    at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:137)
    at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:58)
    at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:68)
    at
org.apache.tapestry5.internal.services.ClientDataEncoderImpl.decodeClientData(ClientDataEncoderImpl.java:55)
    ... 64 more

This worked fine with Tapestry 5.0.18. I know about the latest GZIP
optimizations and I've tried to switch off this with
configuration.add("tapestry.gzip-compression-enabled", "false");
However this the problem remains.

Any thoughts about this?

Kind regards,
--Ovidiu

Re: Not in GZIP format problem

Posted by Howard Lewis Ship <hl...@gmail.com>.
Actually, the t:formdata is always an object stream that has been GZiped and
mime-encoded.
The GZip support added in 5.1 concerns entire requests: for pages, for
assets.

On Thu, Sep 24, 2009 at 12:44 PM, Ovidiu Hurducas <ov...@gmail.com> wrote:

> Thanks! ... it was a wrong t:formdata value. Another thing: it is working
> with and without GZIP-ing the request. Tapestry seems to handle both
> situations.
>
>
> On Thu, Sep 24, 2009 at 10:36 AM, Kalle Korhonen <
> kalle.o.korhonen@gmail.com
> > wrote:
>
> > And obviously you need to gzip the request.
> >
> > On Thu, Sep 24, 2009 at 12:32 AM, Kalle Korhonen
> > <ka...@gmail.com> wrote:
> > > From the page source, check what the value of hidden field t:formdata
> > > is and send it together with the rest of your multipart form data and
> > > it'll work. The value of t:formdata changes only if you change the
> > > form itself (add/remove fields).
> > >
> > > Kalle
> > >
> > >
> > > On Wed, Sep 23, 2009 at 4:02 PM, Ovidiu Hurducas <ov...@gmail.com>
> > wrote:
> > >> I've recently migrated an Tapestry 5.0.18 application to Tapestry
> > version
> > >> 5.1.0.5.
> > >> I have this form that isn't working anymore
> > >>
> > >> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
> > >>    <t:form>
> > >>        <t:upload t:id="file"/>
> > >>        <t:submit />
> > >>    </t:form>
> > >> </html>
> > >>
> > >> I'm using Apache HttpClient 3.1 to POST a multipart form (file
> upload).
> > >> And the stacktrace follows:
> > >>
> > >> [ERROR] TapestryModule.RequestExceptionHandler Processing of request
> > failed
> > >> with uncaught exception: java.io.IOException: Not in GZIP format
> > >> org.apache.tapestry5.runtime.ComponentEventException:
> > java.io.IOException:
> > >> Not in GZIP format [at classpath:com/xxx/server/web/pages/Data.tml,
> line
> > 2]
> > >>    at
> > >>
> >
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1098)
> > >>    at
> > >>
> >
> org.apache.tapestry5.internal.services.ComponentEventRequestHandlerImpl.handle(ComponentEventRequestHandlerImpl.java:75)
> > >>    at
> > >>
> >
> org.apache.tapestry5.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:42)
> > >>    at
> > >>
> >
> $ComponentEventRequestHandler_123e8fdf819.handle($ComponentEventRequestHandler_123e8fdf819.java)
> > >>    at
> > >>
> >
> org.apache.tapestry5.internal.services.AjaxFilter.handle(AjaxFilter.java:42)
> > >>   ................
> > >>    at
> > >>
> >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
> > >>    at
> > >>
> >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> > >>    at
> > >>
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
> > >>    at java.lang.Thread.run(Thread.java:619)
> > >> Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException:
> > >> java.io.IOException: Not in GZIP format
> > >>    at
> > >>
> >
> org.apache.tapestry5.corelib.components.Form.executeStoredActions(Form.java:495)
> > >>    at
> > >>
> >
> org.apache.tapestry5.corelib.components.Form._$advised$onAction(Form.java:378)
> > >>  ............
> > >>    at
> > >>
> >
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:910)
> > >>    at
> > >>
> >
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1081)
> > >>    ... 52 more
> > >> Caused by: java.lang.RuntimeException: java.io.IOException: Not in
> GZIP
> > >> format
> > >>    at
> > >>
> >
> org.apache.tapestry5.internal.services.ClientDataEncoderImpl.decodeClientData(ClientDataEncoderImpl.java:62)
> > >>    at
> > >>
> >
> $ClientDataEncoder_123e8fdf7e9.decodeClientData($ClientDataEncoder_123e8fdf7e9.java)
> > >>    at
> > >>
> >
> org.apache.tapestry5.corelib.components.Form.executeStoredActions(Form.java:467)
> > >>    ... 62 more
> > >> Caused by: java.io.IOException: Not in GZIP format
> > >>    at
> java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:137)
> > >>    at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:58)
> > >>    at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:68)
> > >>    at
> > >>
> >
> org.apache.tapestry5.internal.services.ClientDataEncoderImpl.decodeClientData(ClientDataEncoderImpl.java:55)
> > >>    ... 64 more
> > >>
> > >> This worked fine with Tapestry 5.0.18. I know about the latest GZIP
> > >> optimizations and I've tried to switch off this with
> > >> configuration.add("tapestry.gzip-compression-enabled", "false");
> > >> However this the problem remains.
> > >>
> > >> Any thoughts about this?
> > >>
> > >> Kind regards,
> > >> --Ovidiu
> > >>
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to learn
how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

Re: Not in GZIP format problem

Posted by Ovidiu Hurducas <ov...@gmail.com>.
Thanks! ... it was a wrong t:formdata value. Another thing: it is working
with and without GZIP-ing the request. Tapestry seems to handle both
situations.


On Thu, Sep 24, 2009 at 10:36 AM, Kalle Korhonen <kalle.o.korhonen@gmail.com
> wrote:

> And obviously you need to gzip the request.
>
> On Thu, Sep 24, 2009 at 12:32 AM, Kalle Korhonen
> <ka...@gmail.com> wrote:
> > From the page source, check what the value of hidden field t:formdata
> > is and send it together with the rest of your multipart form data and
> > it'll work. The value of t:formdata changes only if you change the
> > form itself (add/remove fields).
> >
> > Kalle
> >
> >
> > On Wed, Sep 23, 2009 at 4:02 PM, Ovidiu Hurducas <ov...@gmail.com>
> wrote:
> >> I've recently migrated an Tapestry 5.0.18 application to Tapestry
> version
> >> 5.1.0.5.
> >> I have this form that isn't working anymore
> >>
> >> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
> >>    <t:form>
> >>        <t:upload t:id="file"/>
> >>        <t:submit />
> >>    </t:form>
> >> </html>
> >>
> >> I'm using Apache HttpClient 3.1 to POST a multipart form (file upload).
> >> And the stacktrace follows:
> >>
> >> [ERROR] TapestryModule.RequestExceptionHandler Processing of request
> failed
> >> with uncaught exception: java.io.IOException: Not in GZIP format
> >> org.apache.tapestry5.runtime.ComponentEventException:
> java.io.IOException:
> >> Not in GZIP format [at classpath:com/xxx/server/web/pages/Data.tml, line
> 2]
> >>    at
> >>
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1098)
> >>    at
> >>
> org.apache.tapestry5.internal.services.ComponentEventRequestHandlerImpl.handle(ComponentEventRequestHandlerImpl.java:75)
> >>    at
> >>
> org.apache.tapestry5.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:42)
> >>    at
> >>
> $ComponentEventRequestHandler_123e8fdf819.handle($ComponentEventRequestHandler_123e8fdf819.java)
> >>    at
> >>
> org.apache.tapestry5.internal.services.AjaxFilter.handle(AjaxFilter.java:42)
> >>   ................
> >>    at
> >>
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
> >>    at
> >>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> >>    at
> >> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
> >>    at java.lang.Thread.run(Thread.java:619)
> >> Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException:
> >> java.io.IOException: Not in GZIP format
> >>    at
> >>
> org.apache.tapestry5.corelib.components.Form.executeStoredActions(Form.java:495)
> >>    at
> >>
> org.apache.tapestry5.corelib.components.Form._$advised$onAction(Form.java:378)
> >>  ............
> >>    at
> >>
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:910)
> >>    at
> >>
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1081)
> >>    ... 52 more
> >> Caused by: java.lang.RuntimeException: java.io.IOException: Not in GZIP
> >> format
> >>    at
> >>
> org.apache.tapestry5.internal.services.ClientDataEncoderImpl.decodeClientData(ClientDataEncoderImpl.java:62)
> >>    at
> >>
> $ClientDataEncoder_123e8fdf7e9.decodeClientData($ClientDataEncoder_123e8fdf7e9.java)
> >>    at
> >>
> org.apache.tapestry5.corelib.components.Form.executeStoredActions(Form.java:467)
> >>    ... 62 more
> >> Caused by: java.io.IOException: Not in GZIP format
> >>    at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:137)
> >>    at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:58)
> >>    at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:68)
> >>    at
> >>
> org.apache.tapestry5.internal.services.ClientDataEncoderImpl.decodeClientData(ClientDataEncoderImpl.java:55)
> >>    ... 64 more
> >>
> >> This worked fine with Tapestry 5.0.18. I know about the latest GZIP
> >> optimizations and I've tried to switch off this with
> >> configuration.add("tapestry.gzip-compression-enabled", "false");
> >> However this the problem remains.
> >>
> >> Any thoughts about this?
> >>
> >> Kind regards,
> >> --Ovidiu
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Not in GZIP format problem

Posted by Kalle Korhonen <ka...@gmail.com>.
And obviously you need to gzip the request.

On Thu, Sep 24, 2009 at 12:32 AM, Kalle Korhonen
<ka...@gmail.com> wrote:
> From the page source, check what the value of hidden field t:formdata
> is and send it together with the rest of your multipart form data and
> it'll work. The value of t:formdata changes only if you change the
> form itself (add/remove fields).
>
> Kalle
>
>
> On Wed, Sep 23, 2009 at 4:02 PM, Ovidiu Hurducas <ov...@gmail.com> wrote:
>> I've recently migrated an Tapestry 5.0.18 application to Tapestry version
>> 5.1.0.5.
>> I have this form that isn't working anymore
>>
>> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
>>    <t:form>
>>        <t:upload t:id="file"/>
>>        <t:submit />
>>    </t:form>
>> </html>
>>
>> I'm using Apache HttpClient 3.1 to POST a multipart form (file upload).
>> And the stacktrace follows:
>>
>> [ERROR] TapestryModule.RequestExceptionHandler Processing of request failed
>> with uncaught exception: java.io.IOException: Not in GZIP format
>> org.apache.tapestry5.runtime.ComponentEventException: java.io.IOException:
>> Not in GZIP format [at classpath:com/xxx/server/web/pages/Data.tml, line 2]
>>    at
>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1098)
>>    at
>> org.apache.tapestry5.internal.services.ComponentEventRequestHandlerImpl.handle(ComponentEventRequestHandlerImpl.java:75)
>>    at
>> org.apache.tapestry5.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:42)
>>    at
>> $ComponentEventRequestHandler_123e8fdf819.handle($ComponentEventRequestHandler_123e8fdf819.java)
>>    at
>> org.apache.tapestry5.internal.services.AjaxFilter.handle(AjaxFilter.java:42)
>>   ................
>>    at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
>>    at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>>    at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
>>    at java.lang.Thread.run(Thread.java:619)
>> Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException:
>> java.io.IOException: Not in GZIP format
>>    at
>> org.apache.tapestry5.corelib.components.Form.executeStoredActions(Form.java:495)
>>    at
>> org.apache.tapestry5.corelib.components.Form._$advised$onAction(Form.java:378)
>>  ............
>>    at
>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:910)
>>    at
>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1081)
>>    ... 52 more
>> Caused by: java.lang.RuntimeException: java.io.IOException: Not in GZIP
>> format
>>    at
>> org.apache.tapestry5.internal.services.ClientDataEncoderImpl.decodeClientData(ClientDataEncoderImpl.java:62)
>>    at
>> $ClientDataEncoder_123e8fdf7e9.decodeClientData($ClientDataEncoder_123e8fdf7e9.java)
>>    at
>> org.apache.tapestry5.corelib.components.Form.executeStoredActions(Form.java:467)
>>    ... 62 more
>> Caused by: java.io.IOException: Not in GZIP format
>>    at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:137)
>>    at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:58)
>>    at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:68)
>>    at
>> org.apache.tapestry5.internal.services.ClientDataEncoderImpl.decodeClientData(ClientDataEncoderImpl.java:55)
>>    ... 64 more
>>
>> This worked fine with Tapestry 5.0.18. I know about the latest GZIP
>> optimizations and I've tried to switch off this with
>> configuration.add("tapestry.gzip-compression-enabled", "false");
>> However this the problem remains.
>>
>> Any thoughts about this?
>>
>> Kind regards,
>> --Ovidiu
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Not in GZIP format problem

Posted by Kalle Korhonen <ka...@gmail.com>.
>From the page source, check what the value of hidden field t:formdata
is and send it together with the rest of your multipart form data and
it'll work. The value of t:formdata changes only if you change the
form itself (add/remove fields).

Kalle


On Wed, Sep 23, 2009 at 4:02 PM, Ovidiu Hurducas <ov...@gmail.com> wrote:
> I've recently migrated an Tapestry 5.0.18 application to Tapestry version
> 5.1.0.5.
> I have this form that isn't working anymore
>
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
>    <t:form>
>        <t:upload t:id="file"/>
>        <t:submit />
>    </t:form>
> </html>
>
> I'm using Apache HttpClient 3.1 to POST a multipart form (file upload).
> And the stacktrace follows:
>
> [ERROR] TapestryModule.RequestExceptionHandler Processing of request failed
> with uncaught exception: java.io.IOException: Not in GZIP format
> org.apache.tapestry5.runtime.ComponentEventException: java.io.IOException:
> Not in GZIP format [at classpath:com/xxx/server/web/pages/Data.tml, line 2]
>    at
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1098)
>    at
> org.apache.tapestry5.internal.services.ComponentEventRequestHandlerImpl.handle(ComponentEventRequestHandlerImpl.java:75)
>    at
> org.apache.tapestry5.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:42)
>    at
> $ComponentEventRequestHandler_123e8fdf819.handle($ComponentEventRequestHandler_123e8fdf819.java)
>    at
> org.apache.tapestry5.internal.services.AjaxFilter.handle(AjaxFilter.java:42)
>   ................
>    at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
>    at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>    at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
>    at java.lang.Thread.run(Thread.java:619)
> Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException:
> java.io.IOException: Not in GZIP format
>    at
> org.apache.tapestry5.corelib.components.Form.executeStoredActions(Form.java:495)
>    at
> org.apache.tapestry5.corelib.components.Form._$advised$onAction(Form.java:378)
>  ............
>    at
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:910)
>    at
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1081)
>    ... 52 more
> Caused by: java.lang.RuntimeException: java.io.IOException: Not in GZIP
> format
>    at
> org.apache.tapestry5.internal.services.ClientDataEncoderImpl.decodeClientData(ClientDataEncoderImpl.java:62)
>    at
> $ClientDataEncoder_123e8fdf7e9.decodeClientData($ClientDataEncoder_123e8fdf7e9.java)
>    at
> org.apache.tapestry5.corelib.components.Form.executeStoredActions(Form.java:467)
>    ... 62 more
> Caused by: java.io.IOException: Not in GZIP format
>    at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:137)
>    at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:58)
>    at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:68)
>    at
> org.apache.tapestry5.internal.services.ClientDataEncoderImpl.decodeClientData(ClientDataEncoderImpl.java:55)
>    ... 64 more
>
> This worked fine with Tapestry 5.0.18. I know about the latest GZIP
> optimizations and I've tried to switch off this with
> configuration.add("tapestry.gzip-compression-enabled", "false");
> However this the problem remains.
>
> Any thoughts about this?
>
> Kind regards,
> --Ovidiu
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org