ICEmobile
  1. ICEmobile
  2. MOBI-919

DataView IndexOutOfBounds exception

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE 1.3.0.GA_P01
    • Fix Version/s: 1.3.1
    • Component/s: Faces
    • Labels:
      None
    • Environment:
      n/a

      Description

      The following exception is thrown when continuing to click on a DataView row:

      Oct 4, 2013 2:23:09 PM org.icefaces.impl.application.ExtendedExceptionHandler handle
      WARNING: queued exception
      javax.faces.FacesException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
              at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:257)
              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
              at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
              at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
              at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
              at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
              at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
              at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
              at com.icesoft.servlet.MultipartFilter.doFilter(MultipartFilter.java:74)
              at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
              at com.acme.filter.AuthenticationFilter.doFilterInternal(AuthenticationFilter.java:252)
              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
              at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
              at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
              at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
              at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
              at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
              at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
              at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
              at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
              at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
              at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      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 org.icemobile.model.DataViewListDataModel.getDataByIndex(DataViewListDataModel.java:44)
              at org.icefaces.mobi.component.dataview.DataView.initDetailContext(DataView.java:171)
              at org.icefaces.mobi.component.dataview.DataView.visitTree(DataView.java:83)
              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1626)
              at javax.faces.component.UIForm.visitTree(UIForm.java:371)
              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1626)
              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1626)
              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1626)
              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1626)
              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1626)
              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1626)
              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1626)
              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1626)
              at com.sun.faces.application.view.FaceletPartialStateManagementStrategy.restoreView(FaceletPartialStateManagementStra
      tegy.java:367)
              at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:138)
              at com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:123)
              at com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:569)
              at com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:141)
              at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:301)
              at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:192)
              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
              at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
              at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)

        Activity

        Hide
        Philip Breau added a comment -

        note from jc: The InboxOutOfBoundsException still occurs but only seems to occur whenever content is specified in DataViewDetails. I say that because I cannot get the error to occur in our sent page which has an empty DataViewDetails.

        Show
        Philip Breau added a comment - note from jc: The InboxOutOfBoundsException still occurs but only seems to occur whenever content is specified in DataViewDetails. I say that because I cannot get the error to occur in our sent page which has an empty DataViewDetails.
        Hide
        Philip Breau added a comment -

        Revision: 38617
        Author: philip.breau
        Date: October-17-13 1:48:38 PM
        Message:
        MOBI-919
        DataView IndexOutOfBounds exception


        Modified : /icemobile/trunk/icemobile/core/src/main/java/org/icemobile/model/DataViewListDataModel.java

        Show
        Philip Breau added a comment - Revision: 38617 Author: philip.breau Date: October-17-13 1:48:38 PM Message: MOBI-919 DataView IndexOutOfBounds exception Modified : /icemobile/trunk/icemobile/core/src/main/java/org/icemobile/model/DataViewListDataModel.java

          People

          • Assignee:
            Philip Breau
            Reporter:
            Philip Breau
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: