You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Augusto Ribeiro Silva (Jira)" <de...@uima.apache.org> on 2020/06/16 11:47:00 UTC

[jira] [Commented] (UIMA-6245) CVD - Index out of bounds when expanding Annotation in AnnotationIndex

    [ https://issues.apache.org/jira/browse/UIMA-6245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17136566#comment-17136566 ] 

Augusto Ribeiro Silva commented on UIMA-6245:
---------------------------------------------

While updating our codebase to use UIMA v3 I stumbled in this exception while inspecting some documents in CVD. I committed a fix for the node kinds which caused me problems but by looking at the code, the other kinds should suffer from the same problem. I will gladly update the rest but I don't have any xmi document to read in CVD that triggers the other node kinds.

> CVD - Index out of bounds when expanding Annotation in AnnotationIndex
> ----------------------------------------------------------------------
>
>                 Key: UIMA-6245
>                 URL: https://issues.apache.org/jira/browse/UIMA-6245
>             Project: UIMA
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 3.1.1SDK
>            Reporter: Augusto Ribeiro Silva
>            Priority: Minor
>
> Expanding Annotations in the AnnotationIndex frame that contain the following node kinds (Slot_StrRef/Slot_HeapRef) results in a java.lang.IndexOutOfBoundsException exception. 
> {{Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:657) at java.util.ArrayList.get(ArrayList.java:433) at org.apache.uima.tools.cvd.FSTreeModel.createArrayChildren(FSTreeModel.java:316) at org.apache.uima.tools.cvd.FSNode.initChildren(FSNode.java:295) at org.apache.uima.tools.cvd.FSTreeNode.getChildCount(FSTreeNode.java:76) at org.apache.uima.tools.cvd.FSTreeModel.getChildCount(FSTreeModel.java:218) at org.apache.uima.tools.cvd.FSTreeModel.isLeaf(FSTreeModel.java:230) at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1185)}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)