ICEfaces
  1. ICEfaces
  2. ICE-8798

Bean Getters getting called on none-rendered ace:dataTable

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: EE-3.2.0.GA, 3.3
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces
    • Assignee Priority:
      P1
    • Salesforce Case Reference:

      Description

      Arran: "A customer has raised an issue where they are seeing the contents of a non-active tab getters being called. I've been able to reproduce the reported behavior in an isolated test case using ICEfaces 3.2.0.

      This test consists of the default values for the tabSet and tabPane (clientSide=false, cache=none). Each tab has an h:outputText and an ace:dataTable. The behavior they are seeing is that when the first tab is rendered the getter for the list assigned to the ace:dataTable of the second tab content is called. The getter for the outputText in the second tab pane does not get called."
      1. Case11811Example.zip
        20 kB
        Arran Mccullough
      2. Case11811ExampleWAR.zip
        9.36 MB
        Arran Mccullough
      1. auction.png
        60 kB

        Activity

        Hide
        Carmen Cristurean added a comment - - edited

        Re-opening due to errors that occur when running the samples' tests in automation.
        In automation, the first test in the test suite fails because of an HTTP error 500 (see also attachment):
        HTTP Status 500 -

        type Exception report

        message

        description The server encountered an internal error () that prevented it from fulfilling this request.

        exception

        java.lang.NullPointerException
        javax.faces.component.UIViewRoot$ViewMap.clear(UIViewRoot.java:1779)
        com.sun.faces.config.InitFacesContext.release(InitFacesContext.java:239)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:577)
        note The full stack trace of the root cause is available in the Apache Tomcat/6.0.26 logs.

        In tomcat log, the error is:
        17-Dec-2012 4:14:08 PM org.apache.catalina.core.StandardWrapperValve invoke
        SEVERE: Servlet.service() for servlet Faces Servlet threw exception
        java.lang.NullPointerException
        at javax.faces.component.UIViewRoot$ViewMap.clear(UIViewRoot.java:1779)
        at com.sun.faces.config.InitFacesContext.release(InitFacesContext.java:239)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:577)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:662)

        This error is not an issue when deploying/testing manually.

        Show
        Carmen Cristurean added a comment - - edited Re-opening due to errors that occur when running the samples' tests in automation. In automation, the first test in the test suite fails because of an HTTP error 500 (see also attachment): HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException javax.faces.component.UIViewRoot$ViewMap.clear(UIViewRoot.java:1779) com.sun.faces.config.InitFacesContext.release(InitFacesContext.java:239) javax.faces.webapp.FacesServlet.service(FacesServlet.java:577) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.26 logs. In tomcat log, the error is: 17-Dec-2012 4:14:08 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet Faces Servlet threw exception java.lang.NullPointerException at javax.faces.component.UIViewRoot$ViewMap.clear(UIViewRoot.java:1779) at com.sun.faces.config.InitFacesContext.release(InitFacesContext.java:239) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:577) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) This error is not an issue when deploying/testing manually.
        Hide
        Ken Fyten added a comment -

        Note that this revision is when the failures begin in automation.

        Show
        Ken Fyten added a comment - Note that this revision is when the failures begin in automation.
        Hide
        Carmen Cristurean added a comment - - edited

        The same errors occur when running in automation the ACE tests, 3.0 Regression tests, or the tutorials' tests.

        Show
        Carmen Cristurean added a comment - - edited The same errors occur when running in automation the ACE tests, 3.0 Regression tests, or the tutorials' tests.
        Hide
        Mircea Toma added a comment -

        This NullPointerException is not caused by our code. It is most probably a Mojarra thread related issue regarding how FacesContext is setup at the application startup. The InitFacesContext implementation is used only on application startup, ICEfaces doesn't even get a chance to run. When the ViewMap is cleared it seems the current FacesContext is not set.

        Also, this exception occurred well before the last fix for ICE-8798 was checked in, see ICE-8752. I believe this last problem should be pursued as a separate JIRA case.

        Show
        Mircea Toma added a comment - This NullPointerException is not caused by our code. It is most probably a Mojarra thread related issue regarding how FacesContext is setup at the application startup. The InitFacesContext implementation is used only on application startup, ICEfaces doesn't even get a chance to run. When the ViewMap is cleared it seems the current FacesContext is not set. Also, this exception occurred well before the last fix for ICE-8798 was checked in, see ICE-8752 . I believe this last problem should be pursued as a separate JIRA case.
        Hide
        Mircea Toma added a comment -

        Created follow up issue for the NPE problem: ICE-8851

        Show
        Mircea Toma added a comment - Created follow up issue for the NPE problem: ICE-8851

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Mircea Toma
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: