Hi Team,
Am migrating from Jdk1.8 to jdk11, received below error in higher region and not occurring in lower region. could you please assist.
org.apache.cxf.interceptor.Fault: Could not initialize class asposewobfuscated.zzRI
at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:162) ~[cxf-core-3.5.10.jar:3.5.10]
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:128) ~[cxf-core-3.5.10.jar:3.5.10]
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:201) ~[cxf-rt-frontend-jaxrs-3.5.10.jar:3.5.10]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) [tomcat-util.jar:8.5.100]
at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class asposewobfuscated.zzRI
at asposewobfuscated.zzBW.zzZ(Unknown Source) ~[aspose-words-jdk16-18.8.0.0.jar:18.8]
... 61 more
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.InternalError: java.lang.reflect.InvocationTargetException [in thread "http-nio-8080-exec-4"]
at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:86) ~[?:?]
Code used:
public void convertFromHtml(InputStream is, OutputStream out)
throws IllegalArgumentException {
trace.info("**** start convertFromHtml ***");
HtmlLoadOptions options = new HtmlLoadOptions();
try {
Document doc = new Document(is, options);
doc.save(out, SaveFormat.PDF);
trace.info("**** end convertFromHtml ***");
} catch (Exception e) {
trace.error("Exception:" + e);
}
}
Regards
Arul