Error while converting RTF to HTML

While converting RTF to HTML we faced following error.

14:44:03,929 INFO [stdout] (http– com.aspose.words.FileCorruptedException: The document appears to be corrupted and cannot be loaded.
14:44:03,932 INFO [stdout] (http– at com.aspose.words.FileFormatUtil.zzZ(Unknown Source)
14:44:03,934 INFO [stdout] (http– at com.aspose.words.Document.zzY(Unknown Source)
14:44:03,935 INFO [stdout] (http– at com.aspose.words.Document.zzZ(Unknown Source)
14:44:03,937 INFO [stdout] (http– at com.aspose.words.Document.(Unknown Source)
14:44:03,939 INFO [stdout] (http– at com.aspose.words.Document.(Unknown Source)
14:44:03,940 INFO [stdout] (http– at com.healthfidelity.dcs.converters.HTMLConverter.initDocument(
14:44:03,942 INFO [stdout] (http– at com.healthfidelity.dcs.converters.HTMLConverter.RTForTEXTorWORDtoHTML(
14:44:03,944 INFO [stdout] (http– at com.healthfidelity.dcs.converters.HTMLConverter.convert(
14:44:03,946 INFO [stdout] (http– at
14:44:03,948 INFO [stdout] (http– at com.healthfidelity.dcs.controllers.DocumentConversionController.highlightConcept(
14:44:03,950 INFO [stdout] (http– at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
14:44:03,952 INFO [stdout] (http– at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
14:44:03,953 INFO [stdout] (http– at java.lang.reflect.Method.invoke(Unknown Source)
14:44:03,955 INFO [stdout] (http– at org.jboss.resteasy.core.MethodInjectorImpl.invoke(
14:44:03,957 INFO [stdout] (http– at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(
14:44:03,958 INFO [stdout] (http– at org.jboss.resteasy.core.ResourceMethod.invoke(
14:44:03,960 INFO [stdout] (http– at org.jboss.resteasy.core.ResourceMethod.invoke(
14:44:03,962 INFO [stdout] (http– at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(
14:44:03,964 INFO [stdout] (http– at org.jboss.resteasy.core.SynchronousDispatcher.invoke(
14:44:03,967 INFO [stdout] (http– at org.jboss.resteasy.core.SynchronousDispatcher.invoke(
14:44:03,969 INFO [stdout] (http– at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(
14:44:03,972 INFO [stdout] (http– at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(
14:44:03,975 INFO [stdout] (http– at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(
14:44:03,978 INFO [stdout] (http– at javax.servlet.http.HttpServlet.service(
14:44:03,980 INFO [stdout] (http– at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
14:44:03,983 INFO [stdout] (http– at org.apache.catalina.core.ApplicationFilterChain.doFilter(
14:44:03,986 INFO [stdout] (http– at org.apache.catalina.core.StandardWrapperValve.invoke(
14:44:03,989 INFO [stdout] (http– at org.apache.catalina.core.StandardContextValve.invoke(
14:44:03,992 INFO [stdout] (http– at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.event(
14:44:03,995 INFO [stdout] (http– at org.jboss.modcluster.container.jbossweb.JBossWebContext$RequestListenerValve.invoke(
14:44:03,998 INFO [stdout] (http– at
14:44:04,002 INFO [stdout] (http– at org.apache.catalina.core.StandardHostValve.invoke(
14:44:04,004 INFO [stdout] (http– at org.apache.catalina.valves.ErrorReportValve.invoke(
14:44:04,007 INFO [stdout] (http– at org.apache.catalina.core.StandardEngineValve.invoke(
14:44:04,010 INFO [stdout] (http– at org.apache.catalina.connector.CoyoteAdapter.service(
14:44:04,012 INFO [stdout] (http– at org.apache.coyote.http11.Http11Processor.process(
14:44:04,015 INFO [stdout] (http– at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
14:44:04,018 INFO [stdout] (http– at$
14:44:04,021 INFO [stdout] (http– at Source)
14:44:04,022 INFO [stdout] (http– Caused by: java.lang.NullPointerException
14:44:04,024 INFO [stdout] (http– at com.aspose.words.zzZ8C.zzW(Unknown Source)
14:44:04,026 INFO [stdout] (http– at com.aspose.words.zzZA6.zzX(Unknown Source)
14:44:04,028 INFO [stdout] (http– at com.aspose.words.zzZ9H.zzX(Unknown Source)
14:44:04,030 INFO [stdout] (http– at com.aspose.words.zzZ9Y.zzU(Unknown Source)
14:44:04,032 INFO [stdout] (http– at com.aspose.words.zzZ9P.zzU(Unknown Source)
14:44:04,034 INFO [stdout] (http– at Source)
14:44:04,036 INFO [stdout] (http– at com.aspose.words.Document.zzY(Unknown Source)
14:44:04,038 INFO [stdout] (http– … 37 more


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. (24.3 KB)

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



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. (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?


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.