ICEfaces
  1. ICEfaces
  2. ICE-11359

Showcase ice:dataTable > Column widths demo - Server internal error occurs

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P05
    • Fix Version/s: EE-3.3.0.GA_P05
    • Component/s: Sample Apps
    • Labels:
      None
    • Environment:
      ICEfaces EE-3.3.0 maintenance branch r51830, tomcat 7, all browsers.
    • Assignee Priority:
      P1

      Description

      ice:dataTable > Column widths demo - Server internal error occurs when pressing any of the buttons in the demo. All browsers, JSF 2.1 and 2.2, tomcat, glassfish. Not an issue with P04 release.
      Server stack trace:
      15-Aug-2017 10:47:56.747 SEVERE [http-apr-8080-exec-7] com.sun.faces.context.AjaxExceptionHandlerImpl.handlePartialResponseError java.lang.RuntimeException: The partial submit does not contain javax.faces.ViewState key.
              at org.icefaces.impl.context.DOMResponseWriter.getOldDocument(DOMResponseWriter.java:543)
              at org.icefaces.impl.context.DOMResponseWriter.getOldDocument(DOMResponseWriter.java:536)
              at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:138)
              at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:973)
              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1778)
              at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:426)
              at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286)
              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:604)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
              at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
              at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
              at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
              at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
              at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2500)
              at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2489)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
              at java.lang.Thread.run(Thread.java:745)


        Activity

        Hide
        Arturo Zambrano added a comment -

        r51836: replaced use of NavigationController.refreshPage() for NavigationController.reloadPage() in ice:dataTable > Column Widths demo

        The server error was due to the use of NavigationController.refreshPage() in all of the action listeners on that page, which we tried to get rid of in ICE-8166, but was still necessary for the purposes of the demo. I tried to modify the page to avoid calling this function, but clicking on the buttons on the page only updates the table the first 2 or 3 times, then the table is not updated any more. The only solution was to use NavigationController.reloadPage(), which doesn't cause the same server error and effectively updates the table every time the buttons are clicked. The only downside is that it could feel a little rough, since it would be similar to pressing the reload button on the browser. However, if the page is not scrolled down at all, there's no visible difference in how the demo works.

        Show
        Arturo Zambrano added a comment - r51836: replaced use of NavigationController.refreshPage() for NavigationController.reloadPage() in ice:dataTable > Column Widths demo The server error was due to the use of NavigationController.refreshPage() in all of the action listeners on that page, which we tried to get rid of in ICE-8166 , but was still necessary for the purposes of the demo. I tried to modify the page to avoid calling this function, but clicking on the buttons on the page only updates the table the first 2 or 3 times, then the table is not updated any more. The only solution was to use NavigationController.reloadPage(), which doesn't cause the same server error and effectively updates the table every time the buttons are clicked. The only downside is that it could feel a little rough, since it would be similar to pressing the reload button on the browser. However, if the page is not scrolled down at all, there's no visible difference in how the demo works.
        Hide
        Liana Munroe added a comment -

        Verified ICEfaces EE-3.3.0 maintenance branch r51839, Tomcat 8, MS Edge, IE 11, 10, 9, 8, 7, FF 53, Chrome 60.

        Show
        Liana Munroe added a comment - Verified ICEfaces EE-3.3.0 maintenance branch r51839, Tomcat 8, MS Edge, IE 11, 10, 9, 8, 7, FF 53, Chrome 60.
        Hide
        Arturo Zambrano added a comment -

        r52413: added State Persistance and Dynamic Panes demos for ace:dashboard

        Show
        Arturo Zambrano added a comment - r52413: added State Persistance and Dynamic Panes demos for ace:dashboard

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Liana Munroe
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: