Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Invalid
-
Affects Version/s: EE-3.3.0.GA_P03, 4.1.1
-
Fix Version/s: EE-4.1.0.GA, EE-3.3.0.GA_P04
-
Component/s: ACE-Components
-
Labels:None
-
Environment:All
-
Assignee Priority:P2
-
Support Case References:Support Case #13773 - https://icesoft.my.salesforce.com/5007000001awTzG
Description
In this scenario, the tree nodes for the ace:tree are being built from a list of objects. When the tree is displayed an ArrayIndexOutOfBoundsException is thrown when expanding the 3rd level node.
Looking at how the list is made for the nodes, everything seems to be fine and in the place where they should be.
Partial stack trace:
04-May-2016 14:52:51.508 SEVERE [http-nio-8084-exec-12] com.sun.faces.context.AjaxExceptionHandlerImpl.handlePartialResponseError java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:368)
at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:377)
at PlanNodeImpl.getChildAt(PlanNodeImpl.java:74)
at org.icefaces.ace.model.tree.ListNodeDataModel.navToChild(ListNodeDataModel.java:127)
at org.icefaces.ace.model.tree.ListNodeDataModel.navToChild(ListNodeDataModel.java:24)
at org.icefaces.ace.component.tree.Tree.setNodeToChild(Tree.java:178)
at org.icefaces.ace.component.tree.Tree.iterateTreeLevel(Tree.java:880)
at org.icefaces.ace.component.tree.Tree.iterateTreeLevel(Tree.java:881)
at org.icefaces.ace.component.tree.Tree.iterateTreeLevel(Tree.java:881)
at org.icefaces.ace.component.tree.Tree.iterateTreeLevel(Tree.java:881)
at org.icefaces.ace.component.tree.Tree.iterate(Tree.java:822)
at org.icefaces.ace.component.tree.Tree.processValidators(Tree.java:348)
...
Looking at how the list is made for the nodes, everything seems to be fine and in the place where they should be.
Partial stack trace:
04-May-2016 14:52:51.508 SEVERE [http-nio-8084-exec-12] com.sun.faces.context.AjaxExceptionHandlerImpl.handlePartialResponseError java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:368)
at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:377)
at PlanNodeImpl.getChildAt(PlanNodeImpl.java:74)
at org.icefaces.ace.model.tree.ListNodeDataModel.navToChild(ListNodeDataModel.java:127)
at org.icefaces.ace.model.tree.ListNodeDataModel.navToChild(ListNodeDataModel.java:24)
at org.icefaces.ace.component.tree.Tree.setNodeToChild(Tree.java:178)
at org.icefaces.ace.component.tree.Tree.iterateTreeLevel(Tree.java:880)
at org.icefaces.ace.component.tree.Tree.iterateTreeLevel(Tree.java:881)
at org.icefaces.ace.component.tree.Tree.iterateTreeLevel(Tree.java:881)
at org.icefaces.ace.component.tree.Tree.iterateTreeLevel(Tree.java:881)
at org.icefaces.ace.component.tree.Tree.iterate(Tree.java:822)
at org.icefaces.ace.component.tree.Tree.processValidators(Tree.java:348)
...
Activity
Field | Original Value | New Value |
---|---|---|
Affects Version/s | 4.1.1 [ 12972 ] |
Attachment | Case13773Example.war [ 22200 ] | |
Attachment | Case13773Example.zip [ 22201 ] |
Assignee | Arturo Zambrano [ artzambrano ] | |
Fix Version/s | EE-4.1.0.GA [ 12171 ] | |
Fix Version/s | EE-3.3.0.GA_P04 [ 12270 ] | |
Assignee Priority | P2 [ 10011 ] |
Attachment | ice11024-tree_test.png [ 22204 ] |
Attachment | ice11024-tree_test_2.png [ 22205 ] |
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Invalid [ 6 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Attached test case and source code.
To reproduce the exception: