>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 <ovi2...@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-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org