Free Support Forum - aspose.com

Aspose.Word on IBM�s Java 1.6 JRE issue

Hi support,

This is a more detailed description for the problem posted at : http://www.aspose.com/community/forums/thread/140577/jar-conflict.aspx .

We have a problem when using Aspose.Word on IBM’s Java
1.6 JRE. The problem does not occur with Sun’s 1.6 JRE.

The problem consists in a NullPointerException thrown from Aspose at random intervals. The most common place for the exception to be thrown is when saving the document but it also occurred when performing other operations.

We’ve managed to replicate the problem using a very simple test scenario:

1. 1. Setup license

2. 2. Create a Document object and a DocBuilder for it

3. 3. Write some text ( 1 call to writeln)

4. 4. Save document

5. 5. Repeat from 2

The exception usually occurs when after the 1st iteration but we’ve seen it happen on the 1st iteration too.

Note: we run the code from within Eclipse 3.3.

The output document from successful runs is attached.

Can it be something similar to the problem reported here: http://www.aspose.com/community/forums/thread/137957/error-loading-a-dot-document-in-a-j2ee-application.aspx

If so, we kindly ask for a non-optimised Aspose.Words.jar for Java 1.6

Exception code:

Caused by: java.lang.NullPointerException

at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)

at com.aspose.words.Paragraph.accept(Unknown Source)

at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)

at com.aspose.words.HeaderFooter.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)

at com.aspose.words.Document.accept(Unknown Source)

at com.aspose.words.be.a(Unknown Source)

at com.aspose.words.Document.save(Unknown Source)

at com.aspose.words.Document.save(Unknown Source)


Thank you,
Milan



Dear Milan,

I am moving your thread in Aspose.Words forum so that Aspose.Words developers can help you.

Hi Milan,

Probably it is known issue: IBM JIT conflicts with optimization of Aspose.Words jar. This issue will be fixed in the next Aspose.Words release (scheduled on September). For temporary workaround I have emailed you Aspose.Words.jdk16.jar without optimization that should work with IBM JIT. Please, check your e-mail.

Best Regards,

Hi Konstantin,

The jar sent by you solved our problem.
Thank you for the quick reply on this.

Regards,
Milan