When converting a .EML Email Message File to PDF using code below -
PdfConvertOptions options = new PdfConvertOptions();
options.setFormat(PdfFileType.Pdf);
FileOutputStream fo = null;
try {
fo = new FileOutputStream(new File("<File Name>"));
converter.convert(fo, options);
fo.flush();
fo.close();
} catch (Exception e) {
e.printStackTrace();
}
Receiving the Error as below -
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.groupdocs.conversion.internal.c.a.ps.internal.gJ.c (file:/E:/Program%20Files/Apache%20Software%20Foundation/Tomcat%209.0/webapps/TWS/WEB-INF/lib/groupdocs-conversion-21.7.jar) to field java.io.ByteArrayInputStream.buf
WARNING: Please consider reporting this to the maintainers of com.groupdocs.conversion.internal.c.a.ps.internal.gJ.c
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Jan 27, 2022 11:46:01 AM com.groupdocs.conversion.internal.c.a.w.internal.Ny u
SEVERE:
java.lang.UnsatisfiedLinkError: com.groupdocs.conversion.internal.c.a.w.WindowsNativeCall.readRegistryStringValues(ILjava/lang/String;)Ljava/util/Map;
at com.groupdocs.conversion.internal.c.a.w.WindowsNativeCall.readRegistryStringValues(Native Method)
at com.groupdocs.conversion.internal.c.a.w.internal.Qi.readRegistryStringValues(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.sl.b(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.abt.piA(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.abt.b(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.SystemFontSource.getFontDataInternal(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.Kn.oPU(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.Kn.oPT(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.Rs$1.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)