Thanks for this Ville it really helped me investigate this, still took 3 hours to track it down. I've raised TAP5-635 for this because it turned out to be related, but different - and also IMHO a valid use case. The stacktrace not appearing with compression is another issue that needs resolving, but it's minor.
> -----Original Message----- > From: Ville Virtanen [mailto:ville.virta...@cerion.fi] > Sent: 08 April 2009 12:33 > To: users@tapestry.apache.org > Subject: Re: More migration issues, 5.0.18 -> 5.1.0.2 > > > Hi, > > exatly the same problems we were having. I opened Jira issue because of > this: > > https://issues.apache.org/jira/browse/TAP5-623 > > For us the main reason was because we had > > <label for="someid" /> > > and then > > <t:if test="readmode"> > ${value} > <t:parameter name="else"> > <t:textfield t:id="someid" value="value" /> > </t:parameter> > </t:if> > > Now with T5.0.18 this worked fine, but now dies in 5.1.0.2 if it is > readmode: (label gets null for parameter) - givin only some T5 internal > stacktrace or the unsupported form of compression.. > > Hope this helps, > > - Ville > > > > Andy Blower wrote: > > > > Another day, another couple of stumbling blocks for our applications > > migration to T5.1 - I can't believe this has taken a solid week of > effort > > so far. I'm starting to wonder if we jumped the gun on moving to T5.1 > so > > soon? I do seem to be having more problems than most people on the > list, > > so maybe it's just me / our app or something. > > > > Anyway, the first issue is with our checkbox components that do an > Ajax > > call when checked or unchecked. They work fine if Gzip compression is > > switched off, but if it's enabled the Ajax.Request hits the > onException > > block with this error message "TypeError: response is null". The > server > > event handler is being called correctly and returning the correct > > JSONObject, but the responseText is empty and responseXML, > responseJSON, > > and headerJSON are all null even though the status code is 200. My > guess > > that the JSONObject is being compressed and it shouldn't be. Should I > > raise a JIRA for this, or am I mistaken here? > > > > I also have a page that works fine with T5.0.18 but breaks in > T5.1.0.2 and > > I have no idea why - curiously, if I have gzip compression I don't > see the > > stacktrace in the browser, but I get "Content Encoding Error", "The > page > > you are trying to view cannot be shown because it uses an invalid or > > unsupported form of compression." From Firefox. > > > > Here is the stack trace, in case anyone can make any sense of it: > > > > An unexpected application exception has occurred. > > > > * java.lang.NullPointerException > > * > > > org.apache.tapestry5.dom.AbstractMarkupModel.encodeQuoted(AbstractMarku > pModel.java:94) > > * org.apache.tapestry5.dom.Attribute.render(Attribute.java:69) > > * org.apache.tapestry5.dom.Element.toMarkup(Element.java:313) > > * > > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835) > > * org.apache.tapestry5.dom.Element.toMarkup(Element.java:351) > > * > > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835) > > * org.apache.tapestry5.dom.Element.toMarkup(Element.java:351) > > * > > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835) > > * org.apache.tapestry5.dom.Element.toMarkup(Element.java:351) > > * > > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835) > > * org.apache.tapestry5.dom.Element.toMarkup(Element.java:351) > > * > > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835) > > * org.apache.tapestry5.dom.Element.toMarkup(Element.java:351) > > * > > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835) > > * org.apache.tapestry5.dom.Element.toMarkup(Element.java:351) > > * > > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835) > > * org.apache.tapestry5.dom.Element.toMarkup(Element.java:351) > > * > > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835) > > * org.apache.tapestry5.dom.Element.toMarkup(Element.java:351) > > * > > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835) > > * org.apache.tapestry5.dom.Element.toMarkup(Element.java:351) > > * > > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835) > > * org.apache.tapestry5.dom.Element.toMarkup(Element.java:351) > > * > > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835) > > * org.apache.tapestry5.dom.Element.toMarkup(Element.java:351) > > * > > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835) > > * org.apache.tapestry5.dom.Element.toMarkup(Element.java:351) > > * > > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835) > > * org.apache.tapestry5.dom.Element.toMarkup(Element.java:351) > > * org.apache.tapestry5.dom.Document.toMarkup(Document.java:163) > > * org.apache.tapestry5.dom.Node.toMarkup(Node.java:80) > > * > > > org.apache.tapestry5.internal.services.MarkupWriterImpl.toMarkup(Markup > WriterImpl.java:57) > > * > > > org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderP > ageResponse(PageResponseRendererImpl.java:67) > > * > > > $PageResponseRenderer_12085541484.renderPageResponse($PageResponseRende > rer_12085541484.java) > > * > > > org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.han > dle(PageRenderRequestHandlerImpl.java:63) > > * > > > org.apache.tapestry5.services.TapestryModule$33.handle(TapestryModule.j > ava:1952) > > * > > > $PageRenderRequestHandler_12085541485.handle($PageRenderRequestHandler_ > 12085541485.java) > > * > > > $PageRenderRequestHandler_12085541478.handle($PageRenderRequestHandler_ > 12085541478.java) > > * > > > org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminato > r.handlePageRender(ComponentRequestHandlerTerminator.java:48) > > * > > > $ComponentRequestHandler_1208554147e.handlePageRender($ComponentRequest > Handler_1208554147e.java) > > * > > > org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(Pa > geRenderDispatcher.java:45) > > * > $Dispatcher_12085541480.dispatch($Dispatcher_12085541480.java) > > * > $Dispatcher_12085541472.dispatch($Dispatcher_12085541472.java) > > * > > > org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.s > ervice(TapestryModule.java:250) > > * > > > org.apache.tapestry5.internal.services.RequestErrorFilter.service(Reque > stErrorFilter.java:26) > > * > > $RequestHandler_12085541473.service($RequestHandler_12085541473.java) > > * > > > org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.j > ava:782) > > * > > $RequestHandler_12085541473.service($RequestHandler_12085541473.java) > > * > > > org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.j > ava:771) > > * > > $RequestHandler_12085541473.service($RequestHandler_12085541473.java) > > * > > > org.apache.tapestry5.internal.services.StaticFilesFilter.service(Static > FilesFilter.java:85) > > * > > $RequestHandler_12085541473.service($RequestHandler_12085541473.java) > > * > > > com.proquest.apps.corelib.AppCoreLibModule$4.service(AppCoreLibModule.j > ava:209) > > * > > $RequestFilter_1208554146f.service($RequestFilter_1208554146f.java) > > * > > $RequestHandler_12085541473.service($RequestHandler_12085541473.java) > > * > > > org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(C > heckForUpdatesFilter.java:90) > > * > > > org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(C > heckForUpdatesFilter.java:81) > > * > > > org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(Concu > rrentBarrier.java:85) > > * > > > org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(Ch > eckForUpdatesFilter.java:103) > > * > > $RequestHandler_12085541473.service($RequestHandler_12085541473.java) > > * > > $RequestHandler_1208554146b.service($RequestHandler_1208554146b.java) > > * > > > org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerT > erminator.service(TapestryModule.java:202) > > * > > > org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(Ignor > edPathsFilter.java:62) > > * > > > $HttpServletRequestFilter_1208554146a.service($HttpServletRequestFilter > _1208554146a.java) > > * > > > $HttpServletRequestHandler_1208554146d.service($HttpServletRequestHandl > er_1208554146d.java) > > * > > > org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.j > ava:730) > > * > > > $HttpServletRequestHandler_1208554146d.service($HttpServletRequestHandl > er_1208554146d.java) > > * > > > $HttpServletRequestHandler_12085541468.service($HttpServletRequestHandl > er_12085541468.java) > > * > > org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:127) > > * > > > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHa > ndler.java:1084) > > * > > > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360 > ) > > * > > > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: > 216) > > * > > > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181 > ) > > * > > > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722 > ) > > * > > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404) > > * > > > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139 > ) > > * org.mortbay.jetty.Server.handle(Server.java:324) > > * > > > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) > > * > > > org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConn > ection.java:828) > > * org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) > > * > org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) > > * > org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) > > * > > > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java > :395) > > * > > > org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.j > ava:450) > > Tapestry Framework > > Tapestry Version > > 5.1.0.2 > > > > > > > > -- > View this message in context: http://www.nabble.com/More-migration- > issues%2C-5.0.18--%3E-5.1.0.2-tp22948260p22948416.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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org