ICEfaces
  1. ICEfaces
  2. ICE-5620

While navigating between pages by clicking commandLink, IndexOutOfBoundsException thrown on IceFaces 2.0 alpha 2

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      IntelliJ 9.0.1 on Mac, Tomcat 6, IceFaces 2.0 alpha 2

      Description

      Apr 13, 2010 2:05:19 PM org.icefaces.context.DOMPartialViewContext processPartial
      WARNING: Old DOM is null during domDiff calculation
      javax.faces.FacesException: Unexpected error restoring state for component with id j_idt3. Cause: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0.
      at com.sun.faces.application.view.StateManagementStrategyImpl$2.visit(StateManagementStrategyImpl.java:239)
      at com.sun.faces.component.visit.FullVisitContext.invokeVisitCallback(FullVisitContext.java:147)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1446)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1457)
      at com.sun.faces.application.view.StateManagementStrategyImpl.restoreView(StateManagementStrategyImpl.java:223)
      at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:177)
      at com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:131)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:430)
      at com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:143)
      at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:288)
      at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:288)
      at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:199)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
      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:637)
      Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      at java.util.ArrayList.RangeCheck(ArrayList.java:547)
      at java.util.ArrayList.get(ArrayList.java:322)
      at javax.faces.component.AttachedObjectListHolder.restoreState(AttachedObjectListHolder.java:161)
      at javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1427)
      at com.sun.faces.application.view.StateManagementStrategyImpl$2.visit(StateManagementStrategyImpl.java:231)
      ... 27 more
      1. icefacesPrototype.output
        5 kB
        Silpa Mittapalli
      2. icefacesPrototype.tar
        747 kB
        Silpa Mittapalli

        Issue Links

          Activity

          Hide
          Silpa Mittapalli added a comment -

          Attached is a sample project to recreate the issue & the output generated for a run.
          I noticed an other strangeness too. In the dataTable, i have set value="#

          {ScheduleBean.schedules}

          " & this is resulting in the call to getSchedules on ScheduleBean several times, not just once. Is this expected behavior?

          Show
          Silpa Mittapalli added a comment - Attached is a sample project to recreate the issue & the output generated for a run. I noticed an other strangeness too. In the dataTable, i have set value="# {ScheduleBean.schedules} " & this is resulting in the call to getSchedules on ScheduleBean several times, not just once. Is this expected behavior?
          Hide
          Ken Fyten added a comment -

          This is the same issue that was covered in the ICEfaces 2.0 Alpha 2 Release Notes as a Known Issue:

          Due to a bug in the Sun Mojarra JSF 2 runtime library, navigation between ICEfaces and non-ICEfaces pages is not working in this release.

          It is anticipated that the upcoming Mojarra JSF v2.0.3 release will correct this issue.

          See ICE-5157 for details.

          Show
          Ken Fyten added a comment - This is the same issue that was covered in the ICEfaces 2.0 Alpha 2 Release Notes as a Known Issue: Due to a bug in the Sun Mojarra JSF 2 runtime library, navigation between ICEfaces and non-ICEfaces pages is not working in this release. It is anticipated that the upcoming Mojarra JSF v2.0.3 release will correct this issue. See ICE-5157 for details.
          Hide
          Winston Antony added a comment -

          I am navigating from Icefaces pages to another iceface pace (whichis mix of icefaces and primefaces). I am also gettig the same error. Is this expected?

          Error msg: WARNING: Old DOM is null during domDiff calculation

          Show
          Winston Antony added a comment - I am navigating from Icefaces pages to another iceface pace (whichis mix of icefaces and primefaces). I am also gettig the same error. Is this expected? Error msg: WARNING: Old DOM is null during domDiff calculation

            People

            • Assignee:
              Unassigned
              Reporter:
              Silpa Mittapalli
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: