ICEmobile
  1. ICEmobile
  2. MOBI-255

ArrayIndexOutOfBounds in mobi AjaxBehavior

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 Williams
    • Fix Version/s: 1.0 Williams
    • Component/s: Faces
    • Labels:
      None
    • Environment:
      ICEmobile

      Description

      java.lang.ArrayIndexOutOfBoundsException: 3
      at org.icefaces.mobi.component.ajax.AjaxBehavior.saveState(AjaxBehavior.java:217)
      at javax.faces.component.StateHolderSaver.<init>(StateHolderSaver.java:103)
      at javax.faces.component.UIComponentBase.saveAttachedState(UIComponentBase.java:1699)
      at javax.faces.component.UIComponentBase.saveBehaviorsState(UIComponentBase.java:2095)
      at javax.faces.component.UIComponentBase.saveState(UIComponentBase.java:1531)
      at javax.faces.component.UIOutput.saveState(UIOutput.java:222)
      at javax.faces.component.UIInput.saveState(UIInput.java:1385)
      at com.sun.faces.application.view.StateManagementStrategyImpl$1.visit(StateManagementStrategyImpl.java:168)
      at com.sun.faces.component.visit.FullVisitContext.invokeVisitCallback(FullVisitContext.java:151)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1589)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
      at javax.faces.component.UIForm.visitTree(UIForm.java:335)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
      at com.sun.faces.application.view.StateManagementStrategyImpl.saveView(StateManagementStrategyImpl.java:160)
      at com.sun.faces.application.StateManagerImpl.saveView(StateManagerImpl.java:133)
      at javax.faces.application.StateManager.getViewState(StateManager.java:553)
      at org.icefaces.impl.event.FixViewState$ScriptWriter.encode(FixViewState.java:48)
      at org.icefaces.impl.event.UIOutputWriter.encodeBegin(UIOutputWriter.java:27)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:302)
      at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759)
      at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:141)
      at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:981)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:390)
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
      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:594)

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #29784 Tue Jul 03 09:43:59 MDT 2012 ted.goddard allocating full array for state saving (MOBI-255)
        Files Changed
        Commit graph MODIFY /icemobile/tags/icemobile-1.0.0.A-061412/icemobile/components/component/src/org/icefaces/mobi/component/ajax/AjaxBehavior.java
        Ted Goddard created issue -
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #29791 Tue Jul 03 12:16:24 MDT 2012 ken.fyten allocating full array for state saving (MOBI-255)
        Files Changed
        Commit graph MODIFY /icemobile/branches/icemobile-1.0.0.A/icemobile/components/component/src/org/icefaces/mobi/component/ajax/AjaxBehavior.java
        Hide
        Ted Goddard added a comment -

        Fixed by allocating array of correct size.

        Show
        Ted Goddard added a comment - Fixed by allocating array of correct size.
        Ted Goddard made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Migration made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Steve Maryka
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: