IndexOutOfBoundsException When Trying to Display Annotated View of a File
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
In CVS some files can be checked in incorrectly and will show up as binary. Once you have fixed this issue you may get the following error when trying to view the annoted view of the file:
1
2
3
4
5
6
7
8
9
2008-02-20 09:26:19,387 ERROR [btpool0-7] org.mortbay.log sun.reflect.NativeMethodAccessorImpl-invoke0 - /browse/**removed full path**
java.lang.IndexOutOfBoundsException: toIndex = 236
at java.util.SubList.<init>(AbstractList.java:602)
at java.util.RandomAccessSubList.<init>(AbstractList.java:758)
at java.util.AbstractList.subList(AbstractList.java:468)
at com.cenqua.fisheye.cvsrep.Annotator.applyHunksToSpans(Annotator.java:112)
.....
.....
Cause
Fisheye is caching old information of the file, when it was treated as binary file in the repository.
Resolution
You will need to reindex your repository.
Was this helpful?