Tapestry
  1. Tapestry
  2. TAPESTRY-2238

Returning a Block from an Ajax form submission fails with IllegalStateException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.11
    • Fix Version/s: 5.0.11
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      When a zone is updated with a Block from an event handler in an AJAX request the result in the zone is "undefined".
      When the return value is a StreamResponse a java.lang.IllegalStateException is thrown.

      Action links still work.

      java.lang.IllegalStateException
      at org.mortbay.jetty.servlet.ServletHttpResponse.getWriter(ServletHttpResponse.java:564)
      at org.apache.tapestry.internal.services.ResponseImpl.getPrintWriter(ResponseImpl.java:47)
      at $Response_1188160d766.getPrintWriter($Response_1188160d766.java)
      at $Response_1188160d6f7.getPrintWriter($Response_1188160d6f7.java)
      at org.apache.tapestry.internal.services.JSONObjectEventResultProcessor.processResultValue(JSONObjectEventResultProcessor.java:42)
      at org.apache.tapestry.internal.services.JSONObjectEventResultProcessor.processResultValue(JSONObjectEventResultProcessor.java:1)
      at $ComponentEventResultProcessor_1188160d8ed.processResultValue($ComponentEventResultProcessor_1188160d8ed.java)
      at $ComponentEventResultProcessor_1188160d831.processResultValue($ComponentEventResultProcessor_1188160d831.java)
      at org.apache.tapestry.internal.services.AjaxComponentEventRequestHandler.handle(AjaxComponentEventRequestHandler.java:113)
      at $ComponentEventRequestHandler_1188160d8ea.handle($ComponentEventRequestHandler_1188160d8ea.java)
      at org.apache.tapestry.internal.services.AjaxFilter.handle(AjaxFilter.java:42)
      at $ComponentEventRequestHandler_1188160d8eb.handle($ComponentEventRequestHandler_1188160d8eb.java)
      at org.apache.tapestry.services.TapestryModule$40.handle(TapestryModule.java:2105)
      at $ComponentEventRequestHandler_1188160d8eb.handle($ComponentEventRequestHandler_1188160d8eb.java)
      at $ComponentEventRequestHandler_1188160d717.handle($ComponentEventRequestHandler_1188160d717.java)
      at org.apache.tapestry.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:139)
      at $Dispatcher_1188160d71a.dispatch($Dispatcher_1188160d71a.java)
      at $Dispatcher_1188160d70c.dispatch($Dispatcher_1188160d70c.java)
      at org.apache.tapestry.services.TapestryModule$13.service(TapestryModule.java:939)
      at org.apache.tapestry.integration.app1.services.AppModule$2.service(AppModule.java:89)
      at $RequestFilter_1188160d70b.service($RequestFilter_1188160d70b.java)
      at $RequestHandler_1188160d70d.service($RequestHandler_1188160d70d.java)
      at org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:42)
      at $RequestHandler_1188160d70d.service($RequestHandler_1188160d70d.java)
      at org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:550)
      at $RequestHandler_1188160d70d.service($RequestHandler_1188160d70d.java)
      at org.apache.tapestry.services.TapestryModule$2.service(TapestryModule.java:517)
      at $RequestHandler_1188160d70d.service($RequestHandler_1188160d70d.java)
      at org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:79)
      at $RequestHandler_1188160d70d.service($RequestHandler_1188160d70d.java)
      at org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93)
      at org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:1)
      at org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
      at org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106)
      at $RequestHandler_1188160d70d.service($RequestHandler_1188160d70d.java)
      at $RequestHandler_1188160d704.service($RequestHandler_1188160d704.java)
      at org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.java:919)
      at org.apache.tapestry.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
      at $HttpServletRequestFilter_1188160d703.service($HttpServletRequestFilter_1188160d703.java)
      at $HttpServletRequestHandler_1188160d705.service($HttpServletRequestHandler_1188160d705.java)
      at $HttpServletRequestHandler_1188160d702.service($HttpServletRequestHandler_1188160d702.java)
      at org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:168)
      at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
      at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
      at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
      at org.mortbay.http.HttpServer.service(HttpServer.java:909)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
      at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Ted Steen
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development