Free Support Forum - aspose.com

Unable to create a document in word with the latest version

Hi,

I am trying to create a document object from the attached docx content, but it fails with the following stack trace. Here is the code we use to create a document.

byte [] byteArray;

ByteArrayInputStream fpByteStream = null;

fpByteStream = new ByteArrayInputStream(byteArray);
doc = new Document(fpByteStream);

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

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

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.NumberFormatException: For input string: "de883e"

at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)

at java.lang.Long.parseLong(Long.java:403)

at java.lang.Long.parseLong(Long.java:461)

at asposewobfuscated.lk.au(PalFormatter.java:369)

at com.aspose.words.acm.hP(NrxXmlUtil.java:175)

at com.aspose.words.ha.e(DocxNumberingReader.java:127)

at com.aspose.words.ha.b(DocxNumberingReader.java:41)

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

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)

... 37 more

Hi

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

The other document works fine on my side.

Best regards,

I am able to fix this by using the old version of aspose word jar dated 05/04/2011. But we still face the issue for the bullet issue on this posting <A href=" </A></P> <P>regards</P> <P>Hari</P>

Hello

Thank you for additional information. We will be sure to inform you of any developments regarding this issue.

Best regards,

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


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