Error while converting RTF to HTML

While converting RTF to HTML we faced following error.

14:44:03,929 INFO [stdout] (http–0.0.0.0-8080-9) com.aspose.words.FileCorruptedException: The document appears to be corrupted and cannot be loaded.
14:44:03,932 INFO [stdout] (http–0.0.0.0-8080-9) at com.aspose.words.FileFormatUtil.zzZ(Unknown Source)
14:44:03,934 INFO [stdout] (http–0.0.0.0-8080-9) at com.aspose.words.Document.zzY(Unknown Source)
14:44:03,935 INFO [stdout] (http–0.0.0.0-8080-9) at com.aspose.words.Document.zzZ(Unknown Source)
14:44:03,937 INFO [stdout] (http–0.0.0.0-8080-9) at com.aspose.words.Document.(Unknown Source)
14:44:03,939 INFO [stdout] (http–0.0.0.0-8080-9) at com.aspose.words.Document.(Unknown Source)
14:44:03,940 INFO [stdout] (http–0.0.0.0-8080-9) at com.healthfidelity.dcs.converters.HTMLConverter.initDocument(HTMLConverter.java:206)
14:44:03,942 INFO [stdout] (http–0.0.0.0-8080-9) at com.healthfidelity.dcs.converters.HTMLConverter.RTForTEXTorWORDtoHTML(HTMLConverter.java:156)
14:44:03,944 INFO [stdout] (http–0.0.0.0-8080-9) at com.healthfidelity.dcs.converters.HTMLConverter.convert(HTMLConverter.java:75)
14:44:03,946 INFO [stdout] (http–0.0.0.0-8080-9) at com.healthfidelity.dcs.services.DocumentConversionService.convertDocument(DocumentConversionService.java:47)
14:44:03,948 INFO [stdout] (http–0.0.0.0-8080-9) at com.healthfidelity.dcs.controllers.DocumentConversionController.highlightConcept(DocumentConversionController.java:488)
14:44:03,950 INFO [stdout] (http–0.0.0.0-8080-9) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
14:44:03,952 INFO [stdout] (http–0.0.0.0-8080-9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
14:44:03,953 INFO [stdout] (http–0.0.0.0-8080-9) at java.lang.reflect.Method.invoke(Unknown Source)
14:44:03,955 INFO [stdout] (http–0.0.0.0-8080-9) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:155)
14:44:03,957 INFO [stdout] (http–0.0.0.0-8080-9) at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257)
14:44:03,958 INFO [stdout] (http–0.0.0.0-8080-9) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222)
14:44:03,960 INFO [stdout] (http–0.0.0.0-8080-9) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211)
14:44:03,962 INFO [stdout] (http–0.0.0.0-8080-9) at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525)
14:44:03,964 INFO [stdout] (http–0.0.0.0-8080-9) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502)
14:44:03,967 INFO [stdout] (http–0.0.0.0-8080-9) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
14:44:03,969 INFO [stdout] (http–0.0.0.0-8080-9) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
14:44:03,972 INFO [stdout] (http–0.0.0.0-8080-9) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
14:44:03,975 INFO [stdout] (http–0.0.0.0-8080-9) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
14:44:03,978 INFO [stdout] (http–0.0.0.0-8080-9) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
14:44:03,980 INFO [stdout] (http–0.0.0.0-8080-9) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
14:44:03,983 INFO [stdout] (http–0.0.0.0-8080-9) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
14:44:03,986 INFO [stdout] (http–0.0.0.0-8080-9) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
14:44:03,989 INFO [stdout] (http–0.0.0.0-8080-9) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
14:44:03,992 INFO [stdout] (http–0.0.0.0-8080-9) at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.event(JBossWebContext.java:67)
14:44:03,995 INFO [stdout] (http–0.0.0.0-8080-9) at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.invoke(JBossWebContext.java:48)
14:44:03,998 INFO [stdout] (http–0.0.0.0-8080-9) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
14:44:04,002 INFO [stdout] (http–0.0.0.0-8080-9) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
14:44:04,004 INFO [stdout] (http–0.0.0.0-8080-9) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
14:44:04,007 INFO [stdout] (http–0.0.0.0-8080-9) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
14:44:04,010 INFO [stdout] (http–0.0.0.0-8080-9) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
14:44:04,012 INFO [stdout] (http–0.0.0.0-8080-9) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
14:44:04,015 INFO [stdout] (http–0.0.0.0-8080-9) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
14:44:04,018 INFO [stdout] (http–0.0.0.0-8080-9) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
14:44:04,021 INFO [stdout] (http–0.0.0.0-8080-9) at java.lang.Thread.run(Unknown Source)
14:44:04,022 INFO [stdout] (http–0.0.0.0-8080-9) Caused by: java.lang.NullPointerException
14:44:04,024 INFO [stdout] (http–0.0.0.0-8080-9) at com.aspose.words.zzZ8C.zzW(Unknown Source)
14:44:04,026 INFO [stdout] (http–0.0.0.0-8080-9) at com.aspose.words.zzZA6.zzX(Unknown Source)
14:44:04,028 INFO [stdout] (http–0.0.0.0-8080-9) at com.aspose.words.zzZ9H.zzX(Unknown Source)
14:44:04,030 INFO [stdout] (http–0.0.0.0-8080-9) at com.aspose.words.zzZ9Y.zzU(Unknown Source)
14:44:04,032 INFO [stdout] (http–0.0.0.0-8080-9) at com.aspose.words.zzZ9P.zzU(Unknown Source)
14:44:04,034 INFO [stdout] (http–0.0.0.0-8080-9) at com.aspose.words.zzZ8I.read(Unknown Source)
14:44:04,036 INFO [stdout] (http–0.0.0.0-8080-9) at com.aspose.words.Document.zzY(Unknown Source)
14:44:04,038 INFO [stdout] (http–0.0.0.0-8080-9) … 37 more

@subhashlengare,

Thanks for your inquiry. We will appreciate it if you please share your sample input document along with sample code, you can share resources as ZIP file. We will look into the issue and will guide you accordingly.

Here are files.
rtf-files.zip (24.3 KB)

Since HealthFidelity is going to renew the license, can we expedite ticket?

-Subhash

@subhashlengare

Thanks for sharing your source documents. We have tested RTF to HTML conversion scenario using your shared documents with Aspose.Words for Java 17.9 and we are unable to notice reported issue. We will appreciate it if you please download and try latest version of Aspose.Words for Java. Hopefully it will resolve the issue.
upmc0919_703redacted.zip (3.8 KB)

I have Aspose license and I was using 16.3.0. But when I am using 17.9 jar, I am facing error of license InvalidAsposeLicence.
Do I need to upgrade license to use latest version?

@subhashlengare

Thanks for your feedback. Yes, you need to upgrade your license to use Aspose.Words for Java 17.9. However, you may also request a 30 days temporary license to check issue with Aspose.Words for Java 17.9 and proceed for license renewal accordingly.