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

Free Support Forum - aspose.com

Convert to PDF fails with nullpointer exception

Dear Team,

When I try to convert the document in the attached zip file, using the code in the attached JUnit test, I get the following exception…
java.lang.NullPointerException
at asposewobfuscated.zzTW.zzZ(Unknown Source)
at asposewobfuscated.zzTN.zzZ(Unknown Source)
at asposewobfuscated.zzP5.zzT(Unknown Source)
at asposewobfuscated.zzP5.zzT(Unknown Source)
at asposewobfuscated.zz9.zzT(Unknown Source)
at asposewobfuscated.zzA.zzX(Unknown Source)
at asposewobfuscated.zzZT.zzZ(Unknown Source)
at asposewobfuscated.zzC.zzZ(Unknown Source)
at asposewobfuscated.zzG.zzZ(Unknown Source)
at asposewobfuscated.zzC.zzZ(Unknown Source)
at asposewobfuscated.zzG.zzZ(Unknown Source)
at asposewobfuscated.zzC.zzZ(Unknown Source)
at asposewobfuscated.zzG.zzZ(Unknown Source)
at asposewobfuscated.zzC.zzZ(Unknown Source)
at asposewobfuscated.zzG.zzZ(Unknown Source)
at asposewobfuscated.zzA.zzZ(Unknown Source)
at asposewobfuscated.zz0.zzZ(Unknown Source)
at asposewobfuscated.zzF9.zzZ(Unknown Source)
at asposewobfuscated.zz0.zzZ(Unknown Source)
at asposewobfuscated.zzC.zzZ(Unknown Source)
at asposewobfuscated.zzG.zzZ(Unknown Source)
at asposewobfuscated.zzC.zzZ(Unknown Source)
at asposewobfuscated.zzG.zzZ(Unknown Source)
at asposewobfuscated.zzC.zzZ(Unknown Source)
at asposewobfuscated.zz2.zzZ(Unknown Source)
at asposewobfuscated.zzC.zzZ(Unknown Source)
at asposewobfuscated.zz2.zzZ(Unknown Source)
at asposewobfuscated.zzC.zzZ(Unknown Source)
at asposewobfuscated.zzG.zzZ(Unknown Source)
at asposewobfuscated.zzC.zzZ(Unknown Source)
at asposewobfuscated.zzG.zzZ(Unknown Source)
at asposewobfuscated.zzC.zzZ(Unknown Source)
at asposewobfuscated.zzG.zzZ(Unknown Source)
at asposewobfuscated.zzC.zzZ(Unknown Source)
at asposewobfuscated.zzZU.zzZ(Unknown Source)
at com.aspose.words.zzZ6K.zzX(Unknown Source)
at com.aspose.words.zz0G.zzZ(Unknown Source)
at com.aspose.words.zz0G.zzZ(Unknown Source)
at com.aspose.words.zzZH5.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)
at org.epo.filing.docxconversion.implementation.converter.AsposeSaveAsPdfTest.convertOverlappingDrawingsToPdfRawTest(AsposeSaveAsPdfTest.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:538)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:206)

**
**

I’m using Aspose for Java 18.9. Running on Windows.

Could you please investigate if you can reproduce the issue,
Many thanks

Patrick.

overlapping.zip (871.8 KB)

@PatrickVB

Thanks for your inquiry. We have tested the scenario using the latest version of Aspose.Words for Java 19.1 and have not found the shared issue. So, please use Aspose.Words for Java 19.1.

Hi Tahir,

Thanks for your quick response.
I have upgraded to 19.1 and indeed the problem, in the isolated test case is gone.
I now have to test how 19.1 behaves in the our integrated product.

Many thanks

Patrick

@PatrickVB

Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.