Index Out of Bounds Exception When Uploading a Word Document
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
Confluence fails to upload a Word document.
A stack trace may be thrown in the browser and/or the following appears in the
atlassian-confluence.log
:
1
2
3
4
5
6
7
8
9
10
11
12
13
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at com.aspose.words.kd.dy(Unknown Source)
at com.aspose.words.List.aF(Unknown Source)
at com.aspose.words.ListFormat.getListLevel(Unknown Source)
at com.benryan.dom.Doc2Wiki.visitParagraphStart(Doc2Wiki.java:453)
at com.aspose.words.Paragraph.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.Body.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.Section.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
Cause
The Word document may contain custom bullet points, which the Office Connector plugin cannot interpret.
Workaround
Select all of the text in your document.
Go to Format >> Bullets and Numbering.
Choose one of the default bullet or numbering types that ships with MS Word.
Save the document and attempt a new import into Confluence.
Resolution
There is currently no way to upload a Word doc containing custom bullet points into Confluence. This bug is being tracked by OFFCONN-51.
Was this helpful?