We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Error loading document with equation bracket


I'm getting an error while trying to load a document (docx) with a bracket inside a mathematical equation.

Here's the stacktrace:

com.aspose.words.FileCorruptedException: The document appears to be corrupted and cannot be loaded.

at com.aspose.words.FileFormatUtil.a(FileFormatUtil.java:122)

at com.aspose.words.Document.b(Document.java:1283)

at com.aspose.words.Document.a(Document.java:1152)

at com.aspose.words.Document.(Document.java:200)

at com.aspose.words.Document.(Document.java:171)

at com.aspose.words.Document.(Document.java:166)


Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0

at java.lang.String.charAt(Unknown Source)

at com.aspose.words.acl.readChar(NrxXmlReader.java:78)

at com.aspose.words.gx.a(DocxMathReader.java:867)

at com.aspose.words.gx.a(DocxMathReader.java:236)

at com.aspose.words.gx.b(DocxMathReader.java:204)

at com.aspose.words.gx.a(DocxMathReader.java:118)

at com.aspose.words.gx.a(DocxMathReader.java:88)

at com.aspose.words.gx.m(DocxMathReader.java:59)

at com.aspose.words.gx.l(DocxMathReader.java:40)

at com.aspose.words.gv.k(DocxInlineReader.java:92)

at com.aspose.words.hc.u(DocxParaReader.java:114)

at com.aspose.words.ho.w(DocxStoryReader.java:66)

at com.aspose.words.ge.g(DocxDocumentReaderBase.java:72)

at com.aspose.words.gd.Dr(DocxDocumentReader.java:55)

at com.aspose.words.gd.Dq(DocxDocumentReader.java:34)

at com.aspose.words.ge.read(DocxDocumentReaderBase.java:46)

at com.aspose.words.hd.Dr(DocxReader.java:63)

at com.aspose.words.hd.read(DocxReader.java:54)

at com.aspose.words.Document.b(Document.java:1232)

... 9 more



Thank you for reporting this problem to us. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

Best regards,

Hi Jose,

By any chance, do you know what application was used to create the document you attached? This information will really help us to find the root-cause of the problem. Thank you for your assistance.

Best regards,

Hi Alexey,

The document was created with Microsoft Office Professional Plus 2010.

Microsoft Word version 14.0.6023.1000 (32-bit)

Hope it helps..


Hi José,

Thank you for additional information. I forwarded this information to the responsible developer.

Best regards,


The issues you have found earlier (filed as WORDSNET-5306) have been fixed in this .NET update and in this Java update.

Best regards,

The issues you have found earlier (filed as WORDSNET-5306) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.