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

Free Support Forum - aspose.com

Issue with ASPOSE JAVA API

Hi there,

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)

Regards,

Ashish

Hi Team,

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.

Hi Team,

Please find below the server setup details:

************ Start Display Current Environment ************

WebSphere Platform 6.1 [ND 6.1.0.35 cf351044.07]

Host Operating System is Linux, version 2.6.9-89.0.11.ELsmp

Java version = 1.5.0, Java Compiler = j9jit23, Java VM name = IBM J9 VM

was.install.root = /opt/ibm/websphere/6.1.0.23-01_32/deploymentmanager

Classpath 

/opt/ibm/websphere/6.1.0.23-01_32/deploymentmanager/profiles/ccix-01_32-node/properties:/opt/ibm/websphere/6.1.0.23-01_32/deploymentmanager/properties:/opt/ibm/websphere/6.1.0.23-01_32/deploymentmanager/lib/startup.jar:/opt/ibm/websphere/6.1.0.23-01_32/deploymentmanager/lib/bootstrap.jar:/opt/ibm/websphere/6.1.0.23-01_32/deploymentmanager/lib/j2ee.jar:/opt/ibm/websphere/6.1.0.23-01_32/deploymentmanager/lib/lmproxy.jar:/opt/ibm/websphere/6.1.0.23-01_32/deploymentmanager/lib/urlprotocols.jar:/opt/ibm/websphere/6.1.0.23-01_32/deploymentmanager/deploytool/itp/batchboot.jar:/opt/ibm/websphere/6.1.0.23-01_32/deploymentmanager/deploytool/itp/batch2.jar:/opt/ibm/websphere/6.1.0.23-01_32/deploymentmanager/java/lib/tools.jar:/opt/oracle/product/current/jdbc/lib/ojdbc14.jar:/opt/oracle/product/current/jdbc/lib/orcs12.zip:/opt/oracle/product/current/jdbc/lib/nls_charset12.zip:/opt/oracle/product/current/jdbc/lib/classes12.zip:

Java Library path = /opt/ibm/websphere/6.1.0.23-01_32/deploymentmanager/java/jre/bin:/opt/ibm/websphere/6.1.0.23-01_32/deploymentmanager/bin:/auto/usrcisco-linux-rhel4.0-x86-64/packages/oracle/oracle-10.2.0.4-64/lib32:/usr/lib:/opt/ibm/websphere/6.1.0.23-01_32/deploymentmanager/lib/WMQ/java/lib

************* End Display Current Environment *************

Following jars are used:

Aspose.Words.jdk14.jar

xml-apis-1.3.03.jar

Hi Ashish,

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.

Thank you for your patience and understanding.

Hi Aspose team,

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

Regards

Abhaykumar

ICN dev team

Hi Aspose Team,

As requested, am
attaching the xml-apis-1.3.03.jar (placed in jars.zip) that we are currently
using in our application and we face the error.

I tested the code
snippet mentioned by you and the error still persists.

Note : This error
occurs when it is deployed to our development environment and is not reproducible in our local.

PFA the code that we have used in our
application.**(code-getfilecontent.txt)

Note:**In local we are using
Tomcat 6 server whereas in our development environment we are using WAS 6
server.

Regards
Suraj

Hi Ashish,

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);

Hi Aspose Team,

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,

Suraj D Vithalkar

Hi Aspose team,

Do you have a resolution ?

Also can you share your ocntact details so that we have a quick discussion ?

Regards

Abhay

Hi,

We appreciate your patience.

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.

https://forum.aspose.com/c/purchase/6

Hi Aspose Team,

Thanks. Can you tell us when this will be done?
When can we expect the solution for this? Please provide us ETA for this.

Thanks & Regards,
Suraj D Vithalkar

Hi Suraj,

We appreciate your patience.

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.

Thank you for your patience and understanding.

Hi Aspose Team,

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.

Regards
Abhay

Hi Abhay,

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");

Thanks for your cooperation.

Hi Aspose Team,

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,
Suraj

Hi Suraj,

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");

Thanks Aspose team.

We are working on creating the ear for this issue. Once this is done we will post the ear and other details here.
Thanks,
Suraj

Hi Suraj,

Thanks for your feedback. We will wait for EAR/WAR file and will investigate this issue on our side and provide you more information.

Hi Aspose team,

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,
Suraj D Vithalkar

Hi Suraj,

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);