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

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 : Jar conflict .

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. Setup license
    1. Create a Document object and a DocBuilder for it
    1. Write some text ( 1 call to writeln)
    1. Save document
    1. 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: Error loading a .dot document in a j2ee application
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,

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.