We upgraded to new jar and after that we getting the below error while saving the word document as a HTML. Can you please advise?
Caused by:
java.lang.VerifyError: javax/imageio/metadata/IIOMetadata.getAsTree(Ljava/lang/String;)Lorg/w3c/dom/Node;
at asposewobfuscated.ok.a(PalBitmap.java:475)
at asposewobfuscated.ok.a(PalBitmap.java:383)
at asposewobfuscated.ok.c(PalBitmap.java:372)
at com.aspose.words.vf.a(ImageResourceWriter.java:587)
at com.aspose.words.vf.b(ImageResourceWriter.java:562)
at com.aspose.words.vf.Sk(ImageResourceWriter.java:295)
at com.aspose.words.vf.a(ImageResourceWriter.java:172)
at com.aspose.words.su.b(HtmlWriter.java:1208)
at com.aspose.words.su.a(HtmlWriter.java:1146)
at com.aspose.words.su.visitShapeStart(HtmlWriter.java:1112)
at com.aspose.words.Shape.a(Shape.java:106)
at com.aspose.words.CompositeNode.acceptCore(CompositeNode.java:631)
at com.aspose.words.Shape.accept(Shape.java:101)
at com.aspose.words.CompositeNode.acceptChildren(CompositeNode.java:667)
at com.aspose.words.CompositeNode.acceptCore(CompositeNode.java:638)
at com.aspose.words.Paragraph.accept(Paragraph.java:301)
at com.aspose.words.CompositeNode.acceptChildren(CompositeNode.java:667)
at com.aspose.words.CompositeNode.acceptCore(CompositeNode.java:638)
We tried to replace different versions of xml-apis jar with Aspose.Words jar that you have provided. But the issue is still same. Can anyone quickly look into this and tell us the exact version of xml-apis jar to be used? Attaching the complete stack trace logs.
Thanks for your inquiry. I have tested the scenario with following environments and have not faced any exception while using latest version of Aspose.Words for Java. I have used both jar files (Aspose.Words.jdk14.jar and xml-apis-1.3.03.jar). Could you please attach your “xml-apis-1.3.03.jar” file here for testing?
1) Windows 7, JDK 1.6, 1.5 and 1.4
2) Ubuntu JDK 1.6
Can you please test following code snippet at your end and let us know how it goes on your side?
Document doc = new Document(MYDir + "document-test.docx");
HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions(SaveFormat.HTML);
htmlSaveOptions.setExportTextInputFormFieldAsText(true);
htmlSaveOptions.setImagesFolder(MYDir);
doc.save(MYDir + "AsposeOut-Java.html", htmlSaveOptions);
We will prepare the required platform (Java version = 1.5.0, Java VM name = IBM J9 VM) to simulate the environment as of yours. As soon as everything is setup, we will test the issue on our end and will post the results here for your kind reference.
Can we have a quick call to discuss this out to that this high priority production issue is resolved ASAP…you share your contact details and we can call you
Thanks for sharing the details. The shared Aspose.Words jar file is very old version. Can you please test following code snippet at your end and let us know how it goes on your side? Please use the latest version of Aspose.Words for Java 11.9.0.
Document doc = new Document(MYDir + "document-test.docx");
HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions(SaveFormat.HTML);
htmlSaveOptions.setExportTextInputFormFieldAsText(true);
htmlSaveOptions.setImagesFolder(MYDir);
doc.save(MYDir + "AsposeOut-Java.html", htmlSaveOptions);
We have also used the latest version of Aspose.Words for Java 11.9.0 with that code snippet. But the issue is same.
Getting same error as shown below:
java.lang.VerifyError: javax/imageio/metadata/IIOMetadata.getAsTree(Ljava/lang/String;)Lorg/w3c/dom/Node;
at asposewobfuscated.ok.a(PalBitmap.java:475)
at asposewobfuscated.ok.a(PalBitmap.java:383)
at asposewobfuscated.ok.c(PalBitmap.java:372)
at com.aspose.words.vf.a(ImageResourceWriter.java:587)
at com.aspose.words.vf.b(ImageResourceWriter.java:562)
at com.aspose.words.vf.Sk(ImageResourceWriter.java:295)
at com.aspose.words.vf.a(ImageResourceWriter.java:172)
at com.aspose.words.su.b(HtmlWriter.java:1208)
at com.aspose.words.su.a(HtmlWriter.java:1146)
at com.aspose.words.su.visitShapeStart(HtmlWriter.java:1112)
at com.aspose.words.Shape.a(Shape.java:106)
at com.aspose.words.CompositeNode.acceptCore(CompositeNode.java:631)
at com.aspose.words.Shape.accept(Shape.java:101)
at com.aspose.words.CompositeNode.acceptChildren(CompositeNode.java:667)
at com.aspose.words.CompositeNode.acceptCore(CompositeNode.java:638)
at com.aspose.words.Paragraph.accept(Paragraph.java:301)
at com.aspose.words.CompositeNode.acceptChildren(CompositeNode.java:667)
at com.aspose.words.CompositeNode.acceptCore(CompositeNode.java:638)
Thanks for testing the code snippet. We will prepare the required platform (Java version = 1.5.0, Java VM name = IBM J9 VM, WebSphere Application Server Version 6) to simulate the environment as of yours. As soon as everything is setup, we will test the issue on our end and will post the results here for your kind reference.
Thank you for your patience and understanding.
Abhaykumar:
Also can you share your ocntact details so that we have a quick discussion ?
We only provide technical support through forums and live chat. It means that we do not provide technical support through telephone right now. For sales support, please check following link.
I have tested the scenario at Operating System Ubuntu and Apache server but have not faced any exception. Hopefully, I will prepare the required platform and share my finding with you by the end of this week.
Were you able to prepare the required platform and test this issue out…the resolution delay is causing unhappiness among the users and business wants this resolved ASAP.
Thanks for your inquiry. I have installed the WebSphere Application Server version 6.1.0.21 and facing issue while deploying application. Please see the attached image for details. Can you please share your WAR/EAR file here for testing? Please use use latest version of Aspose.Words for Java with (Aspose.Words.jdk15.jar).
Document doc = new Document(MYDir + "document-test.docx");
doc.save(MYDir + "AsposeOut.html");
We are using the latest version of Aspose Words for Java itself and also using the same code that you have provided. But the issue is still same.
Regarding the ear, we need to check with business before providing the ear.
Thanks for your feedback. Please use only following two lines of code for testing purposes and share your WAR/EAR file here for testing? You do not need to share WAR file for your complete project.
Document doc = new Document(MYDir + "document-test.docx");
doc.save(MYDir + "AsposeOut.html");
We have created an ear using which we can reproduce this issue. But its size is 59 mb. I tried to attach the ear in this forum, but it is not allowing to upload. Can you tell us how we can share this ear with your team?
Thanks sharing the details. To be able to send your document to us, please try using any free file sharing service e.g. https://skydrive.live.com/.
The EAR file size seems too big to me. The size of Jar files is less then 10mb shared at this forum link. Have you used only following code snippet with jar files (xml-apis-1.3.03.jar, struts.jar and Aspose.Words.jdk15.jar)?
Document doc = new Document(MYDir + "document-test.docx");
HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions(SaveFormat.HTML);
htmlSaveOptions.setExportTextInputFormFieldAsText(true);
htmlSaveOptions.setImagesFolder(MYDir);
doc.save(MYDir + "AsposeOut-Java.html", htmlSaveOptions);