org.icefaces.ace.json.JSONException: JSONArray[0] is not a number.

ICEsoft JIRA Issue Tracker | Carmen Cristurean | 2 years ago
  1. 0

    QA test app: http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Manual/listControl Test page: /listControlRepeat.jsf 1) Every second selection, drag or move of a list item within the same list or between the two lists from the listControl within iu:repeat fails to be persisted. 2) When moving items between the lists using the listControl buttons, the item to be moved fails to be rendered in the destination list until the Submit button is pressed. When the Submit button is pressed, the change is persisted only every second trial, see 1) above. Occasionally a server error is seen when submitting the form after moving items via the control buttons: Sep 10, 2014 2:09:30 PM com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError SEVERE: org.icefaces.ace.json.JSONException: JSONArray[0] is not a number. at org.icefaces.ace.json.JSONArray.getDouble(JSONArray.java:308) at org.icefaces.ace.json.JSONArray.getInt(JSONArray.java:325) at org.icefaces.ace.component.list.ListDecoder.processSelections(ListDecoder.java:49) at org.icefaces.ace.component.list.ListRenderer.decode(ListRenderer.java:74) at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:831) at org.icefaces.impl.component.UISeriesBase.processDecodes(UISeriesBase.java:523) at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:573) at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183) at org.icefaces.impl.component.UISeriesBase.visitTree(UISeriesBase.java:1041) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1700) at com.sun.faces.facelets.component.UIRepeat.visitChildren(UIRepeat.java:856) at com.sun.faces.facelets.component.UIRepeat.visitTree(UIRepeat.java:759) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1700) ............ Steps: 1) - select an item (i1) from either List1 or List2 from any listControl component -> item (i1) selected. - press "Submit Selection" button -> list item (i1) remains selected, and List1 and List2 output text is updated on page accordingly (Pass). - select another item (i2) from either List1 or List2 from the same listControl component -> item (i2) selected. - press "Submit Selection" button -> item (i2) becomes unselected, and selection moves to the previously selected item (i1); List1 and List2 output text remains unchanged (Fail). Any second selection works, and the same issue is seen if trying to move items using the listControl buttons, or drag the items within the list. 2) - select an item from any list/any listControl and press "->" or "<-" to move it to the nearby list -> item disappears from the original list, however it fails to render in the destination list. - press "Submit Selection" button -> item is rendered in the destination list. Repeating these steps will be successful only every second trial.

    ICEsoft JIRA Issue Tracker | 2 years ago | Carmen Cristurean
    org.icefaces.ace.json.JSONException: JSONArray[0] is not a number.
  2. 0

    QA test app: http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Manual/listControl Test page: /listControlRepeat.jsf 1) Every second selection, drag or move of a list item within the same list or between the two lists from the listControl within iu:repeat fails to be persisted. 2) When moving items between the lists using the listControl buttons, the item to be moved fails to be rendered in the destination list until the Submit button is pressed. When the Submit button is pressed, the change is persisted only every second trial, see 1) above. Occasionally a server error is seen when submitting the form after moving items via the control buttons: Sep 10, 2014 2:09:30 PM com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError SEVERE: org.icefaces.ace.json.JSONException: JSONArray[0] is not a number. at org.icefaces.ace.json.JSONArray.getDouble(JSONArray.java:308) at org.icefaces.ace.json.JSONArray.getInt(JSONArray.java:325) at org.icefaces.ace.component.list.ListDecoder.processSelections(ListDecoder.java:49) at org.icefaces.ace.component.list.ListRenderer.decode(ListRenderer.java:74) at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:831) at org.icefaces.impl.component.UISeriesBase.processDecodes(UISeriesBase.java:523) at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:573) at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183) at org.icefaces.impl.component.UISeriesBase.visitTree(UISeriesBase.java:1041) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1700) at com.sun.faces.facelets.component.UIRepeat.visitChildren(UIRepeat.java:856) at com.sun.faces.facelets.component.UIRepeat.visitTree(UIRepeat.java:759) at javax.faces.component.UIComponent.visitTree(UIComponent.java:1700) ............ Steps: 1) - select an item (i1) from either List1 or List2 from any listControl component -> item (i1) selected. - press "Submit Selection" button -> list item (i1) remains selected, and List1 and List2 output text is updated on page accordingly (Pass). - select another item (i2) from either List1 or List2 from the same listControl component -> item (i2) selected. - press "Submit Selection" button -> item (i2) becomes unselected, and selection moves to the previously selected item (i1); List1 and List2 output text remains unchanged (Fail). Any second selection works, and the same issue is seen if trying to move items using the listControl buttons, or drag the items within the list. 2) - select an item from any list/any listControl and press "->" or "<-" to move it to the nearby list -> item disappears from the original list, however it fails to render in the destination list. - press "Submit Selection" button -> item is rendered in the destination list. Repeating these steps will be successful only every second trial.

    ICEsoft JIRA Issue Tracker | 2 years ago | Carmen Cristurean
    org.icefaces.ace.json.JSONException: JSONArray[0] is not a number.

    Root Cause Analysis

    1. org.icefaces.ace.json.JSONException

      JSONArray[0] is not a number.

      at org.icefaces.ace.json.JSONArray.getDouble()
    2. org.icefaces.ace
      ListRenderer.decode
      1. org.icefaces.ace.json.JSONArray.getDouble(JSONArray.java:308)
      2. org.icefaces.ace.json.JSONArray.getInt(JSONArray.java:325)
      3. org.icefaces.ace.component.list.ListDecoder.processSelections(ListDecoder.java:49)
      4. org.icefaces.ace.component.list.ListRenderer.decode(ListRenderer.java:74)
      4 frames
    3. JavaEE 7
      UIComponentBase.decode
      1. javax.faces.component.UIComponentBase.decode(UIComponentBase.java:831)
      1 frame
    4. org.icefaces.impl
      UISeriesBase.processDecodes
      1. org.icefaces.impl.component.UISeriesBase.processDecodes(UISeriesBase.java:523)
      1 frame
    5. JSF
      PartialVisitContext.invokeVisitCallback
      1. com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:573)
      2. com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
      2 frames
    6. org.icefaces.impl
      UISeriesBase.visitTree
      1. org.icefaces.impl.component.UISeriesBase.visitTree(UISeriesBase.java:1041)
      1 frame
    7. JavaEE 7
      UIComponent.visitTree
      1. javax.faces.component.UIComponent.visitTree(UIComponent.java:1700)
      1 frame
    8. JSF
      UIRepeat.visitTree
      1. com.sun.faces.facelets.component.UIRepeat.visitChildren(UIRepeat.java:856)
      2. com.sun.faces.facelets.component.UIRepeat.visitTree(UIRepeat.java:759)
      2 frames
    9. JavaEE 7
      UIComponent.visitTree
      1. javax.faces.component.UIComponent.visitTree(UIComponent.java:1700)
      1 frame