ICEfaces
  1. ICEfaces
  2. ICE-9359

Running under MyFaces, dragging and dropping modal dialog sometimes results in ArrayIndexOutOfBoundsException and NCI popup

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA
    • Fix Version/s: EE-3.3.0.GA, 4.0.BETA
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      MyFaces portal
    • Assignee Priority:
      P1

      Description

      It is intermittent and seems easiest to recreate in Safari but did see it in other browsers (Chrome, IE). Using dragging and dropping the modal dialog may work find or could generate the following service side exception and then display the NCI popup.

      {noformat}
      java.lang.ArrayIndexOutOfBoundsException: -1
      at org.icefaces.ace.component.dnd.DroppableRenderer.decode(DroppableRenderer.java:65)
      at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:469)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1379)
      at org.apache.myfaces.context.servlet.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:731)
      at org.apache.myfaces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:214)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:956)
      at javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1167)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:984)
      at javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1167)
      at javax.faces.component.UIForm.visitTree(UIForm.java:354)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:984)
      at javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1167)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:984)
      at javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1167)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:984)
      at javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1167)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:984)
      at javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1167)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:984)
      at javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1167)
      at javax.faces.component.UIComponent.visitTree(UIComponent.java:984)
      at javax.faces.component.UIComponentBase.visitTree(UIComponentBase.java:1167)
      at org.apache.myfaces.context.servlet.PartialViewContextImpl.processPartialExecute(PartialViewContextImpl.java:420)
      at org.apache.myfaces.context.servlet.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:401)
      at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:88)
      at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:88)
      at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:281)
      at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:88)
      at org.icefaces.impl.context.DOMPartialViewContext.processPartial(DOMPartialViewContext.java:281)
      at javax.faces.component.UIViewRoot$ApplyRequestValuesPhaseProcessor.process(UIViewRoot.java:1488)
      at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1372)
      at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:759)
      at org.apache.myfaces.lifecycle.ApplyRequestValuesExecutor.execute(ApplyRequestValuesExecutor.java:38)
      at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:170)
      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
      at com.liferay.faces.bridge.BridgePhaseResourceImpl.execute(BridgePhaseResourceImpl.java:100)
      at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:128)
      at javax.portlet.faces.GenericFacesPortlet.serveResource(GenericFacesPortlet.java:178)
      {noformat}

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #36291 Tue Jun 18 19:02:49 MDT 2013 art.zambrano ICE-9359 added a 'scope' to the droppable and draggables to avoid allowing dropping draggables that do not belong in there when using portlets, and causing exceptions and unexpected behaviour
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/dragDrop/dataTableIntegration.xhtml
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #36289 Tue Jun 18 18:42:25 MDT 2013 art.zambrano ICE-9359 added try-catch clause to code that might cause index-out-of-bounds and parsing exceptions, and set a default value if an exception occurs
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/dnd/DroppableRenderer.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: